Mercurial > emacs
diff lisp/help-fns.el @ 66793:c086dd3d5f44
2005-11-10 Alan Mackenzie <acm@muc.de>
* help-fns.el (describe-variable): Make C-h v work when a variable
has variable documentation yet is unbound.
author | Alan Mackenzie <acm@muc.de> |
---|---|
date | Thu, 10 Nov 2005 08:04:07 +0000 |
parents | 35ee6fbeca84 |
children | 1731ed7a115f 03934708f1e9 |
line wrap: on
line diff
--- a/lisp/help-fns.el Thu Nov 10 04:49:19 2005 +0000 +++ b/lisp/help-fns.el Thu Nov 10 08:04:07 2005 +0000 @@ -496,7 +496,11 @@ (format "Describe variable (default %s): " v) "Describe variable: ") - obarray 'boundp t nil nil + obarray + '(lambda (vv) + (or (boundp vv) + (get vv 'variable-documentation))) + t nil nil (if (symbolp v) (symbol-name v)))) (list (if (equal val "") v (intern val)))))