lisp/help-fns.el (describe-variable): Fix completion.

http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00112.html
This commit is contained in:
Juanma Barranquero 2011-04-05 00:08:01 +02:00
parent d451951a53
commit 8d17e7ca1f
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2011-04-04 Juanma Barranquero <lekktu@gmail.com>
* help-fns.el (describe-variable): Complete all variables having
documentation, including keywords.
http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00112.html
2011-04-04 Juanma Barranquero <lekktu@gmail.com>
Convert to lexical-binding.

View file

@ -635,8 +635,8 @@ it is displayed along with the global value."
"Describe variable: ")
obarray
(lambda (vv)
(or (special-variable-p vv)
(get vv 'variable-documentation)))
(or (get vv 'variable-documentation)
(not (keywordp vv))))
t nil nil
(if (symbolp v) (symbol-name v))))
(list (if (equal val "")