Revert introduction of isearch-filter-predicates.
commitdc6c0edad789a8aab129ae12b8f064d0e912cca7
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 5 Aug 2013 18:05:46 +0000 (5 14:05 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 5 Aug 2013 18:05:46 +0000 (5 14:05 -0400)
treec1a48c60a90799f3a05b7db15ac66bd2111bd78e
parent98a428c15ad48f8579b00b68aae6a89b34238b12
Revert introduction of isearch-filter-predicates.
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
13 files changed:
lib-src/ChangeLog
lib-src/makefile.w32-in
lisp/ChangeLog
lisp/dired-aux.el
lisp/dired.el
lisp/info.el
lisp/isearch.el
lisp/loadup.el
lisp/replace.el
lisp/wdired.el
src/ChangeLog
src/frame.c
src/lisp.mk