diff options
| author | Juri Linkov | 2013-05-28 01:42:11 +0300 |
|---|---|---|
| committer | Juri Linkov | 2013-05-28 01:42:11 +0300 |
| commit | 66fc57e3cdc9ffc2bed7a457a39a210fcf773e98 (patch) | |
| tree | 68dc621e5e72aa29961545e7d69dd0b0d0f67d5b /lisp/info.el | |
| parent | 6ef3db10430c653e302ca5983ade6f8eaa186f85 (diff) | |
| download | emacs-66fc57e3cdc9ffc2bed7a457a39a210fcf773e98.tar.gz emacs-66fc57e3cdc9ffc2bed7a457a39a210fcf773e98.zip | |
* lisp/isearch.el (isearch-filter-predicates): Rename from `isearch-filter-predicate'.
Doc fix.
(isearch-message-prefix): Display text from the property
`isearch-message-prefix' of the currently active filters.
(isearch-search): Don't compare `isearch-filter-predicate' with
`isearch-filter-visible'. Call `run-hook-with-args-until-failure'
on `isearch-filter-predicates'. Also check `search-invisible' for t
or call `isearch-range-invisible'.
(isearch-filter-visible): Make obsolete.
(isearch-lazy-highlight-search):
Call `run-hook-with-args-until-failure' on
`isearch-filter-predicates' and use `isearch-range-invisible'.
* lisp/info.el (Info-search): Call `run-hook-with-args-until-failure' on
`isearch-filter-predicates' instead of `funcall'ing
`isearch-filter-predicate'.
(Info-mode): Set `Info-isearch-filter' to
`isearch-filter-predicates' instead of `isearch-filter-predicate'.
* lisp/dired-aux.el (dired-isearch-filter-predicate-orig): Remove variable.
(dired-isearch-filenames-toggle, dired-isearch-filenames-setup)
(dired-isearch-filenames-end): Add and remove
`dired-isearch-filter-filenames' in `isearch-filter-predicates'
instead of changing the value of `isearch-filter-predicate'.
Rebind `dired-isearch-filenames-toggle' from "\M-sf" to "\M-sff".
(dired-isearch-filter-filenames): Don't use `isearch-filter-visible'.
Put property `isearch-message-prefix' to "filename " on
`dired-isearch-filter-filenames'.
* lisp/wdired.el (wdired-change-to-wdired-mode):
Add `isearch-filter-predicates' to `wdired-isearch-filter-read-only'
locally instead of changing `isearch-filter-predicate'.
(wdired-isearch-filter-read-only): Don't use `isearch-filter-visible'.
Fixes: debbugs:11378
Diffstat (limited to 'lisp/info.el')
| -rw-r--r-- | lisp/info.el | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/lisp/info.el b/lisp/info.el index b4673731383..9dc312fc697 100644 --- a/lisp/info.el +++ b/lisp/info.el | |||
| @@ -1931,7 +1931,8 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 1931 | (point-max))) | 1931 | (point-max))) |
| 1932 | (while (and (not give-up) | 1932 | (while (and (not give-up) |
| 1933 | (or (null found) | 1933 | (or (null found) |
| 1934 | (not (funcall isearch-filter-predicate beg-found found)))) | 1934 | (not (run-hook-with-args-until-failure |
| 1935 | 'isearch-filter-predicates beg-found found)))) | ||
| 1935 | (let ((search-spaces-regexp Info-search-whitespace-regexp)) | 1936 | (let ((search-spaces-regexp Info-search-whitespace-regexp)) |
| 1936 | (if (if backward | 1937 | (if (if backward |
| 1937 | (re-search-backward regexp bound t) | 1938 | (re-search-backward regexp bound t) |
| @@ -2009,7 +2010,8 @@ If DIRECTION is `backward', search in the reverse direction." | |||
| 2009 | (setq give-up nil found nil) | 2010 | (setq give-up nil found nil) |
| 2010 | (while (and (not give-up) | 2011 | (while (and (not give-up) |
| 2011 | (or (null found) | 2012 | (or (null found) |
| 2012 | (not (funcall isearch-filter-predicate beg-found found)))) | 2013 | (not (run-hook-with-args-until-failure |
| 2014 | 'isearch-filter-predicates beg-found found)))) | ||
| 2013 | (let ((search-spaces-regexp Info-search-whitespace-regexp)) | 2015 | (let ((search-spaces-regexp Info-search-whitespace-regexp)) |
| 2014 | (if (if backward | 2016 | (if (if backward |
| 2015 | (re-search-backward regexp nil t) | 2017 | (re-search-backward regexp nil t) |
| @@ -4275,8 +4277,8 @@ Advanced commands: | |||
| 4275 | 'Info-isearch-wrap) | 4277 | 'Info-isearch-wrap) |
| 4276 | (set (make-local-variable 'isearch-push-state-function) | 4278 | (set (make-local-variable 'isearch-push-state-function) |
| 4277 | 'Info-isearch-push-state) | 4279 | 'Info-isearch-push-state) |
| 4278 | (set (make-local-variable 'isearch-filter-predicate) | 4280 | (set (make-local-variable 'isearch-filter-predicates) |
| 4279 | 'Info-isearch-filter) | 4281 | '(Info-isearch-filter)) |
| 4280 | (set (make-local-variable 'revert-buffer-function) | 4282 | (set (make-local-variable 'revert-buffer-function) |
| 4281 | 'Info-revert-buffer-function) | 4283 | 'Info-revert-buffer-function) |
| 4282 | (Info-set-mode-line) | 4284 | (Info-set-mode-line) |