diff options
| -rw-r--r-- | lisp/wid-edit.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/wid-edit.el b/lisp/wid-edit.el index ec9fdcdc596..898ad25924d 100644 --- a/lisp/wid-edit.el +++ b/lisp/wid-edit.el | |||
| @@ -2636,10 +2636,11 @@ when he invoked the menu." | |||
| 2636 | (concat "Describe the `" (widget-get widget :value) "' symbol.")) | 2636 | (concat "Describe the `" (widget-get widget :value) "' symbol.")) |
| 2637 | 2637 | ||
| 2638 | (defun widget-documentation-link-action (widget &optional event) | 2638 | (defun widget-documentation-link-action (widget &optional event) |
| 2639 | "Run apropos on WIDGET's value. Ignore optional argument EVENT." | 2639 | "Display documentation for WIDGET's value. Ignore optional argument EVENT." |
| 2640 | (let* ((string (widget-get widget :value)) | 2640 | (let* ((string (widget-get widget :value)) |
| 2641 | (symbol (intern string))) | 2641 | (symbol (intern string))) |
| 2642 | (if (and (fboundp symbol) (boundp symbol)) | 2642 | (if (and (fboundp symbol) (boundp symbol)) |
| 2643 | ;; If there are two doc strings, give the user a way to pick one. | ||
| 2643 | (apropos (concat "\\`" (regexp-quote string) "\\'")) | 2644 | (apropos (concat "\\`" (regexp-quote string) "\\'")) |
| 2644 | (if (fboundp symbol) | 2645 | (if (fboundp symbol) |
| 2645 | (describe-function symbol) | 2646 | (describe-function symbol) |