]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid errors in Info-search-case-sensitively in DIR buffers
authorEli Zaretskii <eliz@gnu.org>
Sat, 30 Mar 2024 07:00:02 +0000 (10:00 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 30 Mar 2024 19:36:38 +0000 (20:36 +0100)
* lisp/info.el (Info-search): Don't run the "try other subfiles"
code if there are no subfiles.  This happens, for example, in DIR
files.  (Bug#70058)

(cherry picked from commit 946d4aad1dfb244352dfd0845a8bc3078fe9bca4)

lisp/info.el

index 176bc9c003317666c3716d34b648b52a0cb8aa75..1e478cdbee9821fdec03b7bd0bd4ce0e32d09825 100644 (file)
@@ -2174,7 +2174,7 @@ If DIRECTION is `backward', search in the reverse direction."
                       (re-search-forward regexp nil t))
               (signal 'user-search-failed (list regexp))))))
 
-      (if (and bound (not found))
+      (if (and (or bound (not Info-current-subfile)) (not found))
           (signal 'user-search-failed (list regexp)))
 
       (unless (or found bound)