diff options
| -rw-r--r-- | lisp/faces.el | 7 |
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) |