summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
authorStephen Berman <stephen.berman@gmx.net>2021-03-05 14:08:17 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-03-05 14:08:17 +0100
commit57758dcbac02d3477de7f1e30d3c53a9e647b9f3 (patch)
tree72d31a3a54e86b3f5435e2f301b4c2b16ca74761 /lisp/help-fns.el
parentef61a6b636156a31a20bb4f002015e4e4611c041 (diff)
downloademacs-57758dcbac02d3477de7f1e30d3c53a9e647b9f3.tar.gz
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).
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 290bebf7e5f..01d3756bf0c 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))