]> git.eshelyaron.com Git - emacs.git/commitdiff
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 6685e355360d96a2c468320f7a1bd73c16800cbe..d84f98a1322b39525fb8fbd75190a32d81e4160f 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 ba8565f5e1e2fd501d3f50b3450a0fee500e11ff..e0cfb7039f93adf9ed510819aa58f191c09b531e 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 "")