(make-face): Add new face to Face menu on creation. -- Bng
authorBoris Goldowsky <boris@gnu.org>
Thu, 20 Oct 1994 18:11:27 +0000 (18:11 +0000)
committerBoris Goldowsky <boris@gnu.org>
Thu, 20 Oct 1994 18:11:27 +0000 (18:11 +0000)
lisp/faces.el

index 56fce6f..e6e56f5 100644 (file)
@@ -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)