diff options
| author | Miles Bader | 2001-02-13 02:03:58 +0000 |
|---|---|---|
| committer | Miles Bader | 2001-02-13 02:03:58 +0000 |
| commit | 78ad1cd532c8da14bb582a56221eb0e17c052855 (patch) | |
| tree | f660396688ffd0fd6eb0e373283e3930a11d56f6 | |
| parent | 115209ba83c968ad905cccec0e1c49b4c3c26ed4 (diff) | |
| download | emacs-78ad1cd532c8da14bb582a56221eb0e17c052855.tar.gz emacs-78ad1cd532c8da14bb582a56221eb0e17c052855.zip | |
(set-face-background, set-face-foreground)
(set-face-stipple): Treat a value of nil as being `unspecified'.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/faces.el | 8 |
2 files changed, 9 insertions, 4 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 5b07a0d6a72..ed9ea59cdbd 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2001-02-13 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * faces.el (set-face-background, set-face-foreground) | ||
| 4 | (set-face-stipple): Treat a value of nil as being `unspecified'. | ||
| 5 | |||
| 1 | 2001-02-12 Dave Love <d.love@dl.ac.uk> | 6 | 2001-02-12 Dave Love <d.love@dl.ac.uk> |
| 2 | 7 | ||
| 3 | * international/latin1-disp.el: Doc fixes. | 8 | * international/latin1-disp.el: Doc fixes. |
diff --git a/lisp/faces.el b/lisp/faces.el index b1336af6cc7..dd319eb7601 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; faces.el --- Lisp faces | 1 | ;;; faces.el --- Lisp faces |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000 | 3 | ;; Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001 |
| 4 | ;; Free Software Foundation, Inc. | 4 | ;; Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; This file is part of GNU Emacs. | 6 | ;; This file is part of GNU Emacs. |
| @@ -648,7 +648,7 @@ and `:slant'. When called interactively, prompt for the face and font." | |||
| 648 | FRAME nil or not specified means change face on all frames. | 648 | FRAME nil or not specified means change face on all frames. |
| 649 | When called interactively, prompt for the face and color." | 649 | When called interactively, prompt for the face and color." |
| 650 | (interactive (read-face-and-attribute :background)) | 650 | (interactive (read-face-and-attribute :background)) |
| 651 | (set-face-attribute face frame :background color)) | 651 | (set-face-attribute face frame :background (or color 'unspecified))) |
| 652 | 652 | ||
| 653 | 653 | ||
| 654 | (defun set-face-foreground (face color &optional frame) | 654 | (defun set-face-foreground (face color &optional frame) |
| @@ -656,7 +656,7 @@ When called interactively, prompt for the face and color." | |||
| 656 | FRAME nil or not specified means change face on all frames. | 656 | FRAME nil or not specified means change face on all frames. |
| 657 | When called interactively, prompt for the face and color." | 657 | When called interactively, prompt for the face and color." |
| 658 | (interactive (read-face-and-attribute :foreground)) | 658 | (interactive (read-face-and-attribute :foreground)) |
| 659 | (set-face-attribute face frame :foreground color)) | 659 | (set-face-attribute face frame :foreground (or color 'unspecified))) |
| 660 | 660 | ||
| 661 | 661 | ||
| 662 | (defun set-face-stipple (face stipple &optional frame) | 662 | (defun set-face-stipple (face stipple &optional frame) |
| @@ -669,7 +669,7 @@ Alternatively, STIPPLE may be a list of the form (WIDTH HEIGHT DATA) | |||
| 669 | where WIDTH and HEIGHT are the size in pixels, | 669 | where WIDTH and HEIGHT are the size in pixels, |
| 670 | and DATA is a string, containing the raw bits of the bitmap." | 670 | and DATA is a string, containing the raw bits of the bitmap." |
| 671 | (interactive (read-face-and-attribute :stipple)) | 671 | (interactive (read-face-and-attribute :stipple)) |
| 672 | (set-face-attribute face frame :stipple stipple)) | 672 | (set-face-attribute face frame :stipple (or stipple 'unspecified))) |
| 673 | 673 | ||
| 674 | 674 | ||
| 675 | (defun set-face-underline (face underline &optional frame) | 675 | (defun set-face-underline (face underline &optional frame) |