[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `C-h v' may offer too many symbols
From: |
Juanma Barranquero |
Subject: |
Re: `C-h v' may offer too many symbols |
Date: |
Thu, 10 Mar 2011 20:39:48 +0100 |
2011/3/10 Ted Zlatanov <address@hidden>:
> `C-h v' offers completion candidates like :AFTER and :border which are
> not documented and self-quoting. Is that a good idea? They don't seem
> useful to me. Maybe at least self-quoting symbols without a docstring
> should be excluded.
Yes, it is a bit silly complete keywords, which are not variables by definition.
I'm going to install this trivial fix.
Juanma
2011-03-10 Juanma Barranquero <address@hidden>
* help-fns.el (describe-variable): Don't complete keywords.
Suggested by Teodor Zlatanov <address@hidden>.
=== modified file 'lisp/help-fns.el'
--- lisp/help-fns.el 2011-02-24 08:26:25 +0000
+++ lisp/help-fns.el 2011-03-10 19:32:46 +0000
@@ -593,8 +593,9 @@
"Describe variable: ")
obarray
'(lambda (vv)
- (or (boundp vv)
- (get vv 'variable-documentation)))
+ (unless (keywordp vv)
+ (or (boundp vv)
+ (get vv 'variable-documentation))))
t nil nil
(if (symbolp v) (symbol-name v))))
(list (if (equal val "")
- `C-h v' may offer too many symbols, Ted Zlatanov, 2011/03/10
- Re: `C-h v' may offer too many symbols,
Juanma Barranquero <=
- Re: `C-h v' may offer too many symbols, Stefan Monnier, 2011/03/10
- public APIs and private ones (Re: `C-h v' may offer too many symbols), Kenichi Handa, 2011/03/10
- RE: public APIs and private ones (Re: `C-h v' may offer too manysymbols), Drew Adams, 2011/03/11
- Re: public APIs and private ones (Re: `C-h v' may offer too many symbols), Ted Zlatanov, 2011/03/11
- Re: public APIs and private ones (Re: `C-h v' may offer too many symbols), Stefan Monnier, 2011/03/11