]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/help-fns.el (help-fns--first-release): Use etc/NEWS as well
authorStefan Monnier <monnier@iro.umontreal.ca>
Thu, 24 Sep 2020 22:15:39 +0000 (18:15 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Thu, 24 Sep 2020 22:15:39 +0000 (18:15 -0400)
lisp/help-fns.el

index a9943ccd7f40a3162d4f5b97558b41447e1e3142..24fb09137c2bca4a4a75cbf4ca478f0034c1cc32 100644 (file)
@@ -622,7 +622,7 @@ FILE is the file where FUNCTION was probably defined."
   ;; of the *packages* in which the function is defined.
   (let* ((name (symbol-name symbol))
          (re (concat "\\_<" (regexp-quote name) "\\_>"))
-         (news (directory-files data-directory t "\\`NEWS\\.[1-9]"))
+         (news (directory-files data-directory t "\\`NEWS\\($\\|\\.\\)"))
          (place nil)
          (first nil))
     (with-temp-buffer