diff options
| author | Richard M. Stallman | 1994-10-23 06:05:12 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1994-10-23 06:05:12 +0000 |
| commit | ee09252aa0d0048033f48bce7e735a739f645a6e (patch) | |
| tree | c5b7b0c6df0664a1cee52a90ad3d6f8c00ddb5fb | |
| parent | 368b007a35c0880372d2a5c9d04a203fbf513c82 (diff) | |
| download | emacs-ee09252aa0d0048033f48bce7e735a739f645a6e.tar.gz emacs-ee09252aa0d0048033f48bce7e735a739f645a6e.zip | |
(set-face-background): Set either stipple or color,
never both. Do this only for a specific frame, not for t.
| -rw-r--r-- | lisp/faces.el | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/faces.el b/lisp/faces.el index 675e2b54387..666a56c1640 100644 --- a/lisp/faces.el +++ b/lisp/faces.el | |||
| @@ -109,11 +109,14 @@ in that frame; otherwise change each frame." | |||
| 109 | If the optional FRAME argument is provided, change only | 109 | If the optional FRAME argument is provided, change only |
| 110 | in that frame; otherwise change each frame." | 110 | in that frame; otherwise change each frame." |
| 111 | (interactive (internal-face-interactive "background")) | 111 | (interactive (internal-face-interactive "background")) |
| 112 | (if (and frame (member color '("gray" "gray1" "gray3")) | 112 | ;; For a specific frame, use gray stipple instead of gray color |
| 113 | ;; if the display does not support a gray color. | ||
| 114 | (if (and frame (not (eq frame t)) | ||
| 115 | (member color '("gray" "gray1" "gray3")) | ||
| 113 | (not (x-display-color-p frame)) | 116 | (not (x-display-color-p frame)) |
| 114 | (not (x-display-grayscale-p frame))) | 117 | (not (x-display-grayscale-p frame))) |
| 115 | (set-face-stipple face color frame)) | 118 | (set-face-stipple face color frame) |
| 116 | (internal-set-face-1 face 'background color 5 frame)) | 119 | (internal-set-face-1 face 'background color 5 frame))) |
| 117 | 120 | ||
| 118 | (defsubst set-face-stipple (face name &optional frame) | 121 | (defsubst set-face-stipple (face name &optional frame) |
| 119 | "Change the stipple pixmap of face FACE to PIXMAP. | 122 | "Change the stipple pixmap of face FACE to PIXMAP. |