1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00

Avoid errors in Info-search-case-sensitively in DIR buffers

* 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)
This commit is contained in:
Eli Zaretskii 2024-03-30 10:00:02 +03:00
parent fbf6830299
commit 946d4aad1d

View File

@ -2056,7 +2056,7 @@ If DIRECTION is `backward', search in the reverse direction."
(re-search-forward regexp nil t)) (re-search-forward regexp nil t))
(signal 'user-search-failed (list regexp)))))) (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))) (signal 'user-search-failed (list regexp)))
(unless (or found bound) (unless (or found bound)