From: Eli Zaretskii Date: Sat, 30 Mar 2024 07:00:02 +0000 (+0300) Subject: Avoid errors in Info-search-case-sensitively in DIR buffers X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=da32b84c25b2dd43489a724c5319f3f1e3dc0def;p=emacs.git 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) (cherry picked from commit 946d4aad1dfb244352dfd0845a8bc3078fe9bca4) --- diff --git a/lisp/info.el b/lisp/info.el index 176bc9c0033..1e478cdbee9 100644 --- a/lisp/info.el +++ b/lisp/info.el @@ -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)