lisp/help-fns.el (describe-variable): Fix completion.
authorJuanma Barranquero <lekktu@gmail.com>
Mon, 4 Apr 2011 22:08:01 +0000 (00:08 +0200)
committerJuanma Barranquero <lekktu@gmail.com>
Mon, 4 Apr 2011 22:08:01 +0000 (00:08 +0200)
http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00112.html

lisp/ChangeLog
lisp/help-fns.el

index 142e6bc..8c978e2 100644 (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.
index 71316c1..0876b34 100644 (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 "")