[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master f32280b: Don't create links to undefined commands in help--descri
From: |
Lars Ingebrigtsen |
Subject: |
master f32280b: Don't create links to undefined commands in help--describe-command |
Date: |
Sat, 13 Nov 2021 04:05:52 -0500 (EST) |
branch: master
commit f32280bfa6342090abaa9f015d4cd70fb81bbfef
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Don't create links to undefined commands in help--describe-command
* lisp/help.el (help--describe-command): Don't create links to
commands that aren't defined.
---
lisp/help.el | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/lisp/help.el b/lisp/help.el
index b2772f4..4470e6b 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -1328,9 +1328,11 @@ Return nil if the key sequence is too long."
(defun help--describe-command (definition &optional translation)
(cond ((symbolp definition)
- (insert-text-button (symbol-name definition)
- 'type 'help-function
- 'help-args (list definition))
+ (if (fboundp definition)
+ (insert-text-button (symbol-name definition)
+ 'type 'help-function
+ 'help-args (list definition))
+ (insert (symbol-name definition)))
(insert "\n"))
((or (stringp definition) (vectorp definition))
(if translation
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master f32280b: Don't create links to undefined commands in help--describe-command,
Lars Ingebrigtsen <=