diff options
| author | Alexander Gramiak | 2017-08-05 11:51:05 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2017-08-05 11:51:05 +0300 |
| commit | 8a577e9468136c7bbcb1627917c4b8c124547f6c (patch) | |
| tree | 2cfefbfe6a20b6091eae24c17ba075f3228bafec | |
| parent | 2441d0118b498dfde9144a86628bdc6974324e49 (diff) | |
| download | emacs-8a577e9468136c7bbcb1627917c4b8c124547f6c.tar.gz emacs-8a577e9468136c7bbcb1627917c4b8c124547f6c.zip | |
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)
| -rw-r--r-- | lisp/faces.el | 2 | ||||
| -rw-r--r-- | lisp/help-mode.el | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index c0c1c7b59f0..5ed11d11cef 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1454,7 +1454,7 @@ If FRAME is omitted or nil, use the selected frame." | |||
| 1454 | (setq face (list face))) | 1454 | (setq face (list face))) |
| 1455 | (with-help-window (help-buffer) | 1455 | (with-help-window (help-buffer) |
| 1456 | (with-current-buffer standard-output | 1456 | (with-current-buffer standard-output |
| 1457 | (dolist (f face) | 1457 | (dolist (f face (buffer-string)) |
| 1458 | (if (stringp f) (setq f (intern f))) | 1458 | (if (stringp f) (setq f (intern f))) |
| 1459 | ;; We may get called for anonymous faces (i.e., faces | 1459 | ;; We may get called for anonymous faces (i.e., faces |
| 1460 | ;; expressed using prop-value plists). Those can't be | 1460 | ;; expressed using prop-value plists). Those can't be |
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." | |||
| 393 | 393 | ||
| 394 | (defvar describe-symbol-backends | 394 | (defvar describe-symbol-backends |
| 395 | `((nil ,#'fboundp ,(lambda (s _b _f) (describe-function s))) | 395 | `((nil ,#'fboundp ,(lambda (s _b _f) (describe-function s))) |
| 396 | ("face" ,#'facep ,(lambda (s _b _f) (describe-face s))) | ||
| 397 | (nil | 396 | (nil |
| 398 | ,(lambda (symbol) | 397 | ,(lambda (symbol) |
| 399 | (or (and (boundp symbol) (not (keywordp symbol))) | 398 | (or (and (boundp symbol) (not (keywordp symbol))) |
| 400 | (get symbol 'variable-documentation))) | 399 | (get symbol 'variable-documentation))) |
| 401 | ,#'describe-variable))) | 400 | ,#'describe-variable) |
| 401 | ("face" ,#'facep ,(lambda (s _b _f) (describe-face s))))) | ||
| 402 | 402 | ||
| 403 | ;;;###autoload | 403 | ;;;###autoload |
| 404 | (defun help-make-xrefs (&optional buffer) | 404 | (defun help-make-xrefs (&optional buffer) |