changeset 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 9a04e09eb6c9
children 7d81ad6c62ef
files lisp/help-fns.el
diffstat 1 files changed, 5 insertions(+), 1 deletions(-) [+]
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)))))