emacs-diffs
[Top][All Lists]
Advanced

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

master 57758dc: Restrict the version guesser to top-level headings


From: Lars Ingebrigtsen
Subject: master 57758dc: Restrict the version guesser to top-level headings
Date: Fri, 5 Mar 2021 08:08:37 -0500 (EST)

branch: master
commit 57758dcbac02d3477de7f1e30d3c53a9e647b9f3
Author: Stephen Berman <stephen.berman@gmx.net>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    Restrict the version guesser to top-level headings
    
    * lisp/help-fns.el (help-fns--first-release): Restrict the version
    guesser to top-level section -- looking in all headings leads to
    false positives (bug#46889).
---
 lisp/help-fns.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 290bebf..01d3756b 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -668,7 +668,7 @@ FILE is the file where FUNCTION was probably defined."
               ;; Almost all entries are of the form "* ... in Emacs NN.MM."
               ;; but there are also a few in the form "* Emacs NN.MM is a bug
               ;; fix release ...".
-              (if (not (re-search-backward "^\\*.* Emacs \\([0-9.]+[0-9]\\)"
+              (if (not (re-search-backward "^\\* .* Emacs \\([0-9.]+[0-9]\\)"
                                            nil t))
                   (message "Ref found in non-versioned section in %S"
                            (file-name-nondirectory f))



reply via email to

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