bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#9918: 24.0.90; lazy-highlighting in Info mode


From: Juri Linkov
Subject: bug#9918: 24.0.90; lazy-highlighting in Info mode
Date: Thu, 01 Dec 2011 09:45:33 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.91 (x86_64-pc-linux-gnu)

> I propose also to fix the clarity and unambiguousness of final messages

I noticed that "end of manual" is displayed only in multi-file
Info manuals.  To display it in a single-file Info manual,
the following patch is necessary as well:

=== modified file 'lisp/info.el'
--- lisp/info.el        2011-11-23 07:03:56 +0000
+++ lisp/info.el        2011-12-01 07:45:18 +0000
@@ -1769,12 +1774,14 @@ (defun Info-search (regexp &optional bou
       ;; If no subfiles, give error now.
       (if give-up
          (if (null Info-current-subfile)
-             (let ((search-spaces-regexp
-                    (if (or (not isearch-mode) isearch-regexp)
-                        Info-search-whitespace-regexp)))
-               (if backward
-                   (re-search-backward regexp)
-                 (re-search-forward regexp)))
+             (if isearch-mode
+                 (signal 'search-failed (list regexp "end of manual"))
+               (let ((search-spaces-regexp
+                      (if (or (not isearch-mode) isearch-regexp)
+                          Info-search-whitespace-regexp)))
+                 (if backward
+                     (re-search-backward regexp)
+                   (re-search-forward regexp))))
            (setq found nil)))
 
       (if (and bound (not found))






reply via email to

[Prev in Thread] Current Thread [Next in Thread]