# HG changeset patch # User Alan Mackenzie # Date 1131609847 0 # Node ID c086dd3d5f44417ec7db65e67f32a3ea84a12929 # Parent 9a04e09eb6c96fa99012d2068b40c5b98fc32180 2005-11-10 Alan Mackenzie * help-fns.el (describe-variable): Make C-h v work when a variable has variable documentation yet is unbound. diff -r 9a04e09eb6c9 -r c086dd3d5f44 lisp/help-fns.el --- 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)))))