summaryrefslogtreecommitdiff
path: root/lisp/help-mode.el
diff options
context:
space:
mode:
authorAlexander Gramiak <agrambot@gmail.com>2017-08-05 11:51:05 +0300
committerEli Zaretskii <eliz@gnu.org>2017-08-05 11:51:05 +0300
commit8a577e9468136c7bbcb1627917c4b8c124547f6c (patch)
tree2cfefbfe6a20b6091eae24c17ba075f3228bafec /lisp/help-mode.el
parent2441d0118b498dfde9144a86628bdc6974324e49 (diff)
downloademacs-8a577e9468136c7bbcb1627917c4b8c124547f6c.tar.gz
Make "C-h o" show faces as well as variables
* lisp/faces.el (describe-face): Return (buffer-string). Reorder the placement of variables/faces in describe-symbol, to put more emphasis on the variable entry rather than the face. (Bug#24543)
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r--lisp/help-mode.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 3fb793e7aa5..24dfb9120bf 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -393,12 +393,12 @@ it does not already exist."
(defvar describe-symbol-backends
`((nil ,#'fboundp ,(lambda (s _b _f) (describe-function s)))
- ("face" ,#'facep ,(lambda (s _b _f) (describe-face s)))
(nil
,(lambda (symbol)
(or (and (boundp symbol) (not (keywordp symbol)))
(get symbol 'variable-documentation)))
- ,#'describe-variable)))
+ ,#'describe-variable)
+ ("face" ,#'facep ,(lambda (s _b _f) (describe-face s)))))
;;;###autoload
(defun help-make-xrefs (&optional buffer)