branch: elpa/flx commit a792c2c5f1cb04d66b09f7503d4fd84b6e39cbe7 Author: Le Wang <le.w...@agworld.com.au> Commit: Le Wang <le.w...@agworld.com.au>
change advice to before, fix comments --- flx-ido.el | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/flx-ido.el b/flx-ido.el index 9ae2cc98d3..5a61a12abc 100644 --- a/flx-ido.el +++ b/flx-ido.el @@ -13,7 +13,7 @@ ;; Version: 0.2 ;; Last-Updated: ;; By: -;; Update #: 57 +;; Update #: 60 ;; URL: ;; Keywords: ;; Compatibility: @@ -185,13 +185,10 @@ item, in which case, the ending items are deleted." ad-do-it) -(defadvice ido-read-internal (around flx-ido-reset-hash activate) - "Clear flx narrowed hash beforehand. - -Remove flx properties after." +(defadvice ido-read-internal (before flx-ido-reset-hash activate) + "Clear flx narrowed hash beforehand." (when flx-ido-mode - (clrhash flx-ido-narrowed-matches-hash)) - ad-do-it) + (clrhash flx-ido-narrowed-matches-hash))) (defadvice ido-restrict-to-matches (before flx-ido-reset-hash activate) "Clear flx narrowed hash."