summaryrefslogtreecommitdiff
path: root/lisp/help-mode.el
diff options
context:
space:
mode:
authorJesper Harder <harder@ifa.au.dk>2004-04-05 12:09:53 +0000
committerJesper Harder <harder@ifa.au.dk>2004-04-05 12:09:53 +0000
commit843e9356587302dee7b723fd6b13f1ab4f126f9e (patch)
treedb7f36fec44b5adab23e8340125ad738d726a716 /lisp/help-mode.el
parent12d7d7a17ad25525fcc210e59eb4d844f8563fd5 (diff)
downloademacs-843e9356587302dee7b723fd6b13f1ab4f126f9e.tar.gz
(help-make-xrefs): Recognize aliased variable with
inherited docstring.
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r--lisp/help-mode.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 032509b9614..a2a121a89e9 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -374,8 +374,14 @@ that."
(help-xref-button 8 'help-symbol sym))
((and
(boundp sym)
- (documentation-property sym
- 'variable-documentation))
+ (or
+ (documentation-property
+ sym 'variable-documentation)
+ (condition-case nil
+ (documentation-property
+ (indirect-variable sym)
+ 'variable-documentation)
+ (cyclic-variable-indirection nil))))
(help-xref-button 8 'help-variable sym))
((fboundp sym)
(help-xref-button 8 'help-function sym)))))))