diff options
| author | Juanma Barranquero | 2011-04-06 03:26:46 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-04-06 03:26:46 +0200 |
| commit | 7afdcb4571269bd1175fe8f5d3aac928ce942ec0 (patch) | |
| tree | 20f8194b5bfef83a2dcbe15392b1ecfa2057a575 | |
| parent | 3b361baff2c3983b311cee075626b5c7b9591e82 (diff) | |
| download | emacs-7afdcb4571269bd1175fe8f5d3aac928ce942ec0.tar.gz emacs-7afdcb4571269bd1175fe8f5d3aac928ce942ec0.zip | |
Backport 2011-04-04T22:08:01Z!lekktu@gmail.com and 2011-04-04T22:33:12Z!lekktu@gmail.com from trunk.
* help-fns.el (describe-variable): Complete all variables having
documentation, including keywords.
http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00112.html
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/help-fns.el | 5 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 4c71d21b627..9cab908cdae 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2011-04-06 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | Backport revno:103823 and revno:103824 from trunk. | ||
| 4 | * help-fns.el (describe-variable): Complete all variables having | ||
| 5 | documentation, including keywords. | ||
| 6 | http://lists.gnu.org/archive/html/emacs-devel/2011-04/msg00112.html | ||
| 7 | |||
| 1 | 2011-03-24 Juanma Barranquero <lekktu@gmail.com> | 8 | 2011-03-24 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 9 | ||
| 3 | * vc-annotate.el (vc-annotate-show-log-revision-at-line): | 10 | * vc-annotate.el (vc-annotate-show-log-revision-at-line): |
diff --git a/lisp/help-fns.el b/lisp/help-fns.el index e0cfb7039f9..fbe87d99208 100644 --- a/lisp/help-fns.el +++ b/lisp/help-fns.el | |||
| @@ -586,9 +586,8 @@ it is displayed along with the global value." | |||
| 586 | "Describe variable: ") | 586 | "Describe variable: ") |
| 587 | obarray | 587 | obarray |
| 588 | (lambda (vv) | 588 | (lambda (vv) |
| 589 | (and (not (keywordp vv)) | 589 | (or (get vv 'variable-documentation) |
| 590 | (or (boundp vv) | 590 | (and (boundp vv) (not (keywordp vv))))) |
| 591 | (get vv 'variable-documentation)))) | ||
| 592 | t nil nil | 591 | t nil nil |
| 593 | (if (symbolp v) (symbol-name v)))) | 592 | (if (symbolp v) (symbol-name v)))) |
| 594 | (list (if (equal val "") | 593 | (list (if (equal val "") |