emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: `C-h v' may offer too many symbols


From: Stefan Monnier
Subject: Re: `C-h v' may offer too many symbols
Date: Thu, 10 Mar 2011 21:10:35 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

> Yes, it is a bit silly complete keywords, which are not variables by
> definition.  I'm going to install this trivial fix.

Sounds good.  FWIW, here's a patch I have pending for the lexbind branch
(where special-variable-p is t only for vars that have been defvar'd
or defconst'd).


        Stefan


=== modified file 'lisp/help-fns.el'
--- lisp/help-fns.el    2011-03-06 21:22:16 +0000
+++ lisp/help-fns.el    2011-03-11 02:07:37 +0000
@@ -618,8 +618,8 @@
                                     "Describe variable (default %s): " v)
                                  "Describe variable: ")
                                obarray
-                               '(lambda (vv)
-                                  (or (boundp vv)
+                               (lambda (vv)
+                                  (or (special-variable-p vv)
                                       (get vv 'variable-documentation)))
                                t nil nil
                                (if (symbolp v) (symbol-name v))))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]