aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2019-06-03 02:13:57 +0200
committerJuanma Barranquero2019-06-03 02:13:57 +0200
commit33ea72eb3c27f5ee5d76980d70ab335d7fa33db6 (patch)
treecc858ece151d785b92e2a8dce5e880e4d7c6f1dc
parente02f751e3fd4cfe8df7e21998477a55eac648575 (diff)
downloademacs-33ea72eb3c27f5ee5d76980d70ab335d7fa33db6.tar.gz
emacs-33ea72eb3c27f5ee5d76980d70ab335d7fa33db6.zip
* help-fns.el (help-fns--first-release): Do not fail if no release is found.
-rw-r--r--lisp/help-fns.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 47bbefbf010..f036a5a4cbe 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -584,7 +584,7 @@ FILE is the file where FUNCTION was probably defined."
584 "including the match data.\n"))) 584 "including the match data.\n")))
585 585
586(defun help-fns--first-release (symbol) 586(defun help-fns--first-release (symbol)
587 "Return the likely first release that defined SYMBOL." 587 "Return the likely first release that defined SYMBOL, or nil."
588 ;; Code below relies on the etc/NEWS* files. 588 ;; Code below relies on the etc/NEWS* files.
589 ;; FIXME: Maybe we should also use the */ChangeLog* files when available. 589 ;; FIXME: Maybe we should also use the */ChangeLog* files when available.
590 ;; FIXME: Maybe we should also look for announcements of the addition 590 ;; FIXME: Maybe we should also look for announcements of the addition
@@ -614,7 +614,8 @@ FILE is the file where FUNCTION was probably defined."
614 (when (or (null first) (version< version first)) 614 (when (or (null first) (version< version first))
615 (setq place (list f pos)) 615 (setq place (list f pos))
616 (setq first version))))))))) 616 (setq first version)))))))))
617 (make-text-button first nil 'type 'help-news 'help-args place) 617 (when first
618 (make-text-button first nil 'type 'help-news 'help-args place))
618 first)) 619 first))
619 620
620(add-hook 'help-fns-describe-function-functions 621(add-hook 'help-fns-describe-function-functions