summaryrefslogtreecommitdiff
path: root/lisp/faces.el
diff options
context:
space:
mode:
authorBoris Goldowsky <boris@gnu.org>1994-10-20 18:11:27 +0000
committerBoris Goldowsky <boris@gnu.org>1994-10-20 18:11:27 +0000
commit33af44e8448e9c6f0de668ed5251c483d3cf9ca0 (patch)
treea94b094409efcc23113d2f1b1093bc97ab022bbc /lisp/faces.el
parent25b469073399f28ff15289f8e304c9bdfa91865b (diff)
downloademacs-33af44e8448e9c6f0de668ed5251c483d3cf9ca0.tar.gz
(make-face): Add new face to Face menu on creation. -- Bng
Diffstat (limited to 'lisp/faces.el')
-rw-r--r--lisp/faces.el3
1 files changed, 3 insertions, 0 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 56fce6ffc70..e6e56f55647 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -273,6 +273,9 @@ If the face already exists, it is unmodified."
;; when making a face after frames already exist
(if (eq window-system 'x)
(make-face-x-resource-internal face))
+ ;; add to menu
+ (if (fboundp 'facemenu-add-new-face)
+ (facemenu-add-new-face name))
face))
name)