Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
9dccd7ef
Commit
9dccd7ef
authored
Jun 21, 1997
by
Richard M. Stallman
Browse files
(widget-documentation-link-action):
Use describe-function or describe-variable in simple cases.
parent
944c91b6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
lisp/wid-edit.el
lisp/wid-edit.el
+7
-1
No files found.
lisp/wid-edit.el
View file @
9dccd7ef
...
...
@@ -2637,7 +2637,13 @@ when he invoked the menu."
(
defun
widget-documentation-link-action
(
widget
&optional
event
)
"Run apropos on WIDGET's value. Ignore optional argument EVENT."
(
apropos
(
concat
"\\`"
(
regexp-quote
(
widget-get
widget
:value
))
"\\'"
)))
(
let*
((
string
(
widget-get
widget
:value
))
(
symbol
(
intern
string
)))
(
if
(
and
(
fboundp
symbol
)
(
boundp
symbol
))
(
apropos
(
concat
"\\`"
(
regexp-quote
string
)
"\\'"
))
(
if
(
fboundp
symbol
)
(
describe-function
symbol
)
(
describe-variable
symbol
)))))
(
defcustom
widget-documentation-links
t
"Add hyperlinks to documentation strings when non-nil."
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment