aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2011-12-02 12:45:44 +0200
committerJuri Linkov2011-12-02 12:45:44 +0200
commitcb0a02ea733562a3965f7e734dff0a8f98572fcb (patch)
tree5bf8107df54e03d042fc61c352137bc81fa71a1c
parentdd782f24e539366700a3cbe535d430f24a13052a (diff)
downloademacs-cb0a02ea733562a3965f7e734dff0a8f98572fcb.tar.gz
emacs-cb0a02ea733562a3965f7e734dff0a8f98572fcb.zip
* lisp/info.el (Info-search): Display "end of manual" when Isearch
reaches the end of single-file Info manual. Fixes: debbugs:9918
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/info.el16
2 files changed, 14 insertions, 7 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b5b3eb0231d..fc32133f3f8 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12011-12-02 Juri Linkov <juri@jurta.org>
2
3 * info.el (Info-search): Display "end of manual" when Isearch
4 reaches the end of single-file Info manual. (Bug#9918)
5
12011-12-02 Eli Zaretskii <eliz@gnu.org> 62011-12-02 Eli Zaretskii <eliz@gnu.org>
2 7
3 * isearch.el (isearch-message-prefix): Run the input method part 8 * isearch.el (isearch-message-prefix): Run the input method part
diff --git a/lisp/info.el b/lisp/info.el
index 02f84a54af9..c1dae66bea2 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -1769,12 +1769,14 @@ If DIRECTION is `backward', search in the reverse direction."
1769 ;; If no subfiles, give error now. 1769 ;; If no subfiles, give error now.
1770 (if give-up 1770 (if give-up
1771 (if (null Info-current-subfile) 1771 (if (null Info-current-subfile)
1772 (let ((search-spaces-regexp 1772 (if isearch-mode
1773 (if (or (not isearch-mode) isearch-regexp) 1773 (signal 'search-failed (list regexp "end of manual"))
1774 Info-search-whitespace-regexp))) 1774 (let ((search-spaces-regexp
1775 (if backward 1775 (if (or (not isearch-mode) isearch-regexp)
1776 (re-search-backward regexp) 1776 Info-search-whitespace-regexp)))
1777 (re-search-forward regexp))) 1777 (if backward
1778 (re-search-backward regexp)
1779 (re-search-forward regexp))))
1778 (setq found nil))) 1780 (setq found nil)))
1779 1781
1780 (if (and bound (not found)) 1782 (if (and bound (not found))
@@ -1845,7 +1847,7 @@ If DIRECTION is `backward', search in the reverse direction."
1845 (if found 1847 (if found
1846 (message "") 1848 (message "")
1847 (signal 'search-failed (if isearch-mode 1849 (signal 'search-failed (if isearch-mode
1848 (list regexp "end of the manual") 1850 (list regexp "end of manual")
1849 (list regexp))))) 1851 (list regexp)))))
1850 (if (not found) 1852 (if (not found)
1851 (progn (Info-read-subfile osubfile) 1853 (progn (Info-read-subfile osubfile)