diff options
author | Lars Ingebrigtsen <larsi@gnus.org> | 2019-07-14 18:50:23 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2019-07-14 18:50:27 +0200 |
commit | 783eca57159065ea575622b74e1446853f31621a (patch) | |
tree | d5740a4135fb11301213a45cafcba9457b9ccc3d /lisp/faces.el | |
parent | ac57c5093829ee09084c562bbbc1c412179be13d (diff) | |
download | emacs-783eca57159065ea575622b74e1446853f31621a.tar.gz emacs-783eca57159065ea575622b74e1446853f31621a.tar.bz2 emacs-783eca57159065ea575622b74e1446853f31621a.zip |
Make describe-face also output the version information
* lisp/help-fns.el (describe-variable-custom-version-info): Allow
taking a type as an optional input, so this can be used for faces,
too (bug#30527).
* lisp/faces.el (describe-face): Use this to output the version
information.
Diffstat (limited to 'lisp/faces.el')
-rw-r--r-- | lisp/faces.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index f9e8c6c58b8..5193c216d0a 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -1416,6 +1416,8 @@ argument, prompt for a regular expression using `read-regexp'." (dolist (face (face-list)) (copy-face face face frame disp-frame))))) +(declare-function describe-variable-custom-version-info "help-fns" + (variable &optional type)) (defun describe-face (face &optional frame) "Display the properties of face FACE on FRAME. @@ -1428,6 +1430,7 @@ If FRAME is omitted or nil, use the selected frame." (interactive (list (read-face-name "Describe face" (or (face-at-point t) 'default) t))) + (require 'help-fns) (let* ((attrs '((:family . "Family") (:foundry . "Foundry") (:width . "Width") @@ -1524,7 +1527,12 @@ If FRAME is omitted or nil, use the selected frame." (re-search-backward ": \\([^:]+\\)" nil t) (help-xref-button 1 'help-face attr))) (insert "\n"))))) - (terpri))))))) + (terpri) + (let ((version-info (describe-variable-custom-version-info + f 'face))) + (when version-info + (insert version-info) + (terpri))))))))) ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |