summaryrefslogtreecommitdiff
path: root/lisp/help-mode.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2001-10-12 01:58:02 +0000
committerMiles Bader <miles@gnu.org>2001-10-12 01:58:02 +0000
commit07f904a3f27c8a3269c95e97ccc90fb46b1071c2 (patch)
treee79bb2892a9e2bb645a093b5c1bac9b69d2fb230 /lisp/help-mode.el
parent8940232b59e731da8c5ba1742fb467839d7d329b (diff)
downloademacs-07f904a3f27c8a3269c95e97ccc90fb46b1071c2.tar.gz
(help-customize-face): New button-type.
Diffstat (limited to 'lisp/help-mode.el')
-rw-r--r--lisp/help-mode.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/help-mode.el b/lisp/help-mode.el
index 79aa2033bc7..d42bd9ff30d 100644
--- a/lisp/help-mode.el
+++ b/lisp/help-mode.el
@@ -97,6 +97,14 @@ The format is (FUNCTION ARGS...).")
'help-echo (purecopy "mouse-2, RET: customize variable")
'action #'help-button-action)
+(define-button-type 'help-customize-face
+ 'help-function (lambda (v)
+ (if help-xref-stack
+ (pop help-xref-stack))
+ (customize-face v))
+ 'help-echo (purecopy "mouse-2, RET: customize face")
+ 'action #'help-button-action)
+
(define-button-type 'help-function-def
'help-function (lambda (fun file)
(require 'find-func)