• Stefan Monnier's avatar
    Revert introduction of isearch-filter-predicates. · dc6c0eda
    Stefan Monnier authored
    Rely on add-function instead.
    * lisp/loadup.el: Preload nadvice.
    * lisp/isearch.el (isearch-filter-predicates): Rename it back to
    isearch-filter-predicate.
    (isearch-message-prefix): Use advice-function-mapc and advice
    properties to get the isearch-message-prefix.
    (isearch-search, isearch-lazy-highlight-search): Revert to funcall
    instead of run-hook-with-args-until-failure.
    (isearch-filter-visible): Not obsolete any more.
    * lisp/replace.el (perform-replace): Revert to funcall
    instead of run-hook-with-args-until-failure.
    * lisp/wdired.el (wdired-change-to-wdired-mode): Use add-function.
    * lisp/dired-aux.el (dired-isearch-filenames-mode): Rename from
    dired-isearch-filenames-toggle; make it into a proper minor mode.
    Use add/remove-function.
    (dired-isearch-filenames-setup, dired-isearch-filenames-end):
    Call the minor-mode rather than add/remove-hook.
    (dired-isearch-filter-filenames):
    Remove isearch-message-prefix property.
    * lisp/info.el (Info--search-loop): New function, extracted from Info-search.
    Funcall isearch-filter-predicate instead of
    run-hook-with-args-until-failure isearch-filter-predicates.
    (Info-search): Use it.
    (Info-mode): Use isearch-filter-predicate instead of
    isearch-filter-predicates.
    * src/lisp.mk (lisp): Add nadvice.elc.
    * lib-src/makefile.w32-in (lisp2): Add nadvice.elc.
    
    Fixes: debbugs:14714
    dc6c0eda
replace.el 88.7 KB