aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1997-05-31 05:37:34 +0000
committerRichard M. Stallman1997-05-31 05:37:34 +0000
commit60a719b0b1fcadb382a4d9b8ec2bd1fd712fdf52 (patch)
tree2cfcb9c7d6d6bc1ebedcb6374d35a2e00de35e4f
parentdcdcce1a92796cb7b78f2ed50b66b2b907079b51 (diff)
downloademacs-60a719b0b1fcadb382a4d9b8ec2bd1fd712fdf52.tar.gz
emacs-60a719b0b1fcadb382a4d9b8ec2bd1fd712fdf52.zip
(make-face): Call make-face-internal only if defined.
(internal-set-face-1): Call set-face-attribute-internal only if it is defined.
-rw-r--r--lisp/faces.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 27092e18c17..8c6c09176ad 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -403,7 +403,9 @@ If NAME is already a face, it is simply returned."
403 (if (eq name 'inverse-video) 403 (if (eq name 'inverse-video)
404 (or (eq value (aref internal-face index)) 404 (or (eq value (aref internal-face index))
405 (invert-face face frame)) 405 (invert-face face frame))
406 (set-face-attribute-internal (face-id face) name value frame))) 406 (if (fboundp 'set-face-attribute-internal)
407 (set-face-attribute-internal (face-id face)
408 name value frame))))
407 (aset internal-face index value))))) 409 (aset internal-face index value)))))
408 410
409 411
@@ -474,7 +476,8 @@ If the face already exists, it is unmodified."
474 (let* ((frames (frame-list)) 476 (let* ((frames (frame-list))
475 (inhibit-quit t) 477 (inhibit-quit t)
476 (id (internal-next-face-id))) 478 (id (internal-next-face-id)))
477 (make-face-internal id) 479 (if (fboundp 'make-face-internal)
480 (make-face-internal id))
478 (aset face 2 id) 481 (aset face 2 id)
479 (while frames 482 (while frames
480 (set-frame-face-alist (car frames) 483 (set-frame-face-alist (car frames)