aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2008-12-23 21:03:09 +0000
committerJuri Linkov2008-12-23 21:03:09 +0000
commit3fbb3dc480b2ad7d94d3f163da1fec423e7a4f00 (patch)
tree4519bc60b553cb8c608f02908ac4019308c43729
parent04f0aeafc96f9231a1750f9df517b7a27b93fa67 (diff)
downloademacs-3fbb3dc480b2ad7d94d3f163da1fec423e7a4f00.tar.gz
emacs-3fbb3dc480b2ad7d94d3f163da1fec423e7a4f00.zip
(Info-find-node-2): Use negative offset 2 instead of 1
for Info-point-loc since it is more correct in all cases. (Info-isearch-filter): Rename from `Info-isearch-filter-predicate'. Doc fix. (Info-mode): Replace `Info-isearch-filter-predicate' with `Info-isearch-filter'.
-rw-r--r--lisp/ChangeLog20
-rw-r--r--lisp/info.el10
2 files changed, 26 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 933c44580e6..b98edf23e15 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,23 @@
12008-12-23 Juri Linkov <juri@jurta.org>
2
3 * isearch.el (isearch-filter-predicate, isearch-search): Replace
4 `isearch-filter-invisible' with `isearch-filter-visible'.
5 (isearch-filter-visible): Renamed from
6 `isearch-filter-invisible'. Doc fix.
7
8 * dired-aux.el (dired-isearch-filenames-toggle): Use the original
9 value from `dired-isearch-filter-predicate-orig' instead of the
10 symbol `isearch-filter-invisible'. Doc fix.
11 (dired-isearch-filter-filenames): Replace
12 `isearch-filter-invisible' with `isearch-filter-visible'. Doc fix.
13
14 * info.el (Info-find-node-2): Use negative offset 2 instead of 1
15 for Info-point-loc since it is more correct in all cases.
16 (Info-isearch-filter): Rename from
17 `Info-isearch-filter-predicate'. Doc fix.
18 (Info-mode): Replace `Info-isearch-filter-predicate' with
19 `Info-isearch-filter'.
20
12008-12-23 Daiki Ueno <ueno@unixuser.org> 212008-12-23 Daiki Ueno <ueno@unixuser.org>
2 22
3 * pgg.el: Add obsolescence info. 23 * pgg.el: Add obsolescence info.
diff --git a/lisp/info.el b/lisp/info.el
index f45aa41de30..c1612abee31 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1007,7 +1007,7 @@ a case-insensitive match is tried."
1007 (delete new-history Info-history-list)))) 1007 (delete new-history Info-history-list))))
1008 (goto-char anchorpos)) 1008 (goto-char anchorpos))
1009 ((numberp Info-point-loc) 1009 ((numberp Info-point-loc)
1010 (forward-line (1- Info-point-loc)) 1010 (forward-line (- Info-point-loc 2))
1011 (setq Info-point-loc nil)) 1011 (setq Info-point-loc nil))
1012 ((stringp Info-point-loc) 1012 ((stringp Info-point-loc)
1013 (Info-find-index-name Info-point-loc) 1013 (Info-find-index-name Info-point-loc)
@@ -1855,8 +1855,10 @@ If DIRECTION is `backward', search in the reverse direction."
1855 ;; Otherwise this variable is set after first search failure. 1855 ;; Otherwise this variable is set after first search failure.
1856 (and isearch-nonincremental Info-current-node))) 1856 (and isearch-nonincremental Info-current-node)))
1857 1857
1858(defun Info-isearch-filter-predicate (beg-found found) 1858(defun Info-isearch-filter (beg-found found)
1859 "Skip invisible text, node header line and Tag Table node." 1859 "Test whether the current search hit is a visible useful text.
1860Return non-nil if the text from BEG-FOUND to FOUND is visible
1861and is not in the header line or a tag table."
1860 (save-match-data 1862 (save-match-data
1861 (let ((backward (< found beg-found))) 1863 (let ((backward (< found beg-found)))
1862 (not 1864 (not
@@ -3540,7 +3542,7 @@ Advanced commands:
3540 (set (make-local-variable 'isearch-push-state-function) 3542 (set (make-local-variable 'isearch-push-state-function)
3541 'Info-isearch-push-state) 3543 'Info-isearch-push-state)
3542 (set (make-local-variable 'isearch-filter-predicate) 3544 (set (make-local-variable 'isearch-filter-predicate)
3543 'Info-isearch-filter-predicate) 3545 'Info-isearch-filter)
3544 (set (make-local-variable 'search-whitespace-regexp) 3546 (set (make-local-variable 'search-whitespace-regexp)
3545 Info-search-whitespace-regexp) 3547 Info-search-whitespace-regexp)
3546 (set (make-local-variable 'revert-buffer-function) 3548 (set (make-local-variable 'revert-buffer-function)