Backport 2011-03-11T00:33:57Z!lekktu@gmail.com from trunk.
authorJuanma Barranquero <lekktu@gmail.com>
Fri, 11 Mar 2011 14:05:31 +0000 (15:05 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Fri, 11 Mar 2011 14:05:31 +0000 (15:05 +0100)
* lisp/help-fns.el (describe-variable): Don't complete keywords.

lisp/ChangeLog
lisp/help-fns.el

index 6685e35..d84f98a 100644 (file)
@@ -1,3 +1,9 @@
+2011-03-11  Juanma Barranquero  <lekktu@gmail.com>
+
+       Backport revno:103622 from trunk.
+       * help-fns.el (describe-variable): Don't complete keywords.
+       Suggested by Teodor Zlatanov <tzz@lifelogs.com>.
+
 2011-03-11  Eli Zaretskii  <eliz@gnu.org>
 
        * files.el (file-ownership-preserved-p): Pass `integer' as an
index ba8565f..e0cfb70 100644 (file)
@@ -585,9 +585,10 @@ it is displayed along with the global value."
                                     "Describe variable (default %s): " v)
                                  "Describe variable: ")
                                obarray
-                               '(lambda (vv)
-                                  (or (boundp vv)
-                                      (get vv 'variable-documentation)))
+                                (lambda (vv)
+                                  (and (not (keywordp vv))
+                                       (or (boundp vv)
+                                           (get vv 'variable-documentation))))
                                t nil nil
                                (if (symbolp v) (symbol-name v))))
      (list (if (equal val "")