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)
committerEli Zaretskii <eliz@gnu.org>
Sat, 30 Mar 2024 07:00:02 +0000 (10:00 +0300)
* 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)

lisp/info.el

index 1c6df9a6ee500e4aa0ba988e4ab4ade268f50b6a..5817737ca921281a3df54327a6943b3099e4ac30 100644 (file)
@@ -2056,7 +2056,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)