]> git.eshelyaron.com Git - emacs.git/commitdiff
Restrict the version guesser to top-level headings
authorStephen Berman <stephen.berman@gmx.net>
Fri, 5 Mar 2021 13:08:17 +0000 (14:08 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 5 Mar 2021 13:08:17 +0000 (14:08 +0100)
* 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

index 290bebf7e5fe465f5e91a1781b64d475fec31469..01d3756bf0c71d315ce38cd04fa7a5ae564cd11e 100644 (file)
@@ -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))