diff options
| author | Karl Heuer | 1995-11-05 04:40:19 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-11-05 04:40:19 +0000 |
| commit | 80e01c1954489383a446de2f68cfa7bc34b39a1c (patch) | |
| tree | c3fb79ec6ba5c8629786e2e19325c31c4f29e4c4 | |
| parent | 414873705016d237a424bea0c2bb0b44fe0b8724 (diff) | |
| download | emacs-80e01c1954489383a446de2f68cfa7bc34b39a1c.tar.gz emacs-80e01c1954489383a446de2f68cfa7bc34b39a1c.zip | |
(makefile-define-space-face): Don't make face if non-X.
| -rw-r--r-- | lisp/progmodes/make-mode.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index c40cf7beee9..51e2651fc4b 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | ;;; makefile.el --- makefile editing commands for Emacs | 1 | ;;; make-mode.el --- makefile editing commands for Emacs |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1992, 1994 Free Software Foundation, Inc. | 3 | ;; Copyright (C) 1992, 1994 Free Software Foundation, Inc. |
| 4 | 4 | ||
| @@ -1362,7 +1362,8 @@ Uses `makefile-use-curly-braces-for-macros-p'." | |||
| 1362 | (nreverse alist))) | 1362 | (nreverse alist))) |
| 1363 | 1363 | ||
| 1364 | (defun makefile-define-space-face () | 1364 | (defun makefile-define-space-face () |
| 1365 | (make-face 'makefile-space-face) | 1365 | (if (eq window-system 'x) |
| 1366 | (make-face 'makefile-space-face)) | ||
| 1366 | (or (face-differs-from-default-p 'makefile-space-face) | 1367 | (or (face-differs-from-default-p 'makefile-space-face) |
| 1367 | (let* ((params (frame-parameters)) | 1368 | (let* ((params (frame-parameters)) |
| 1368 | (light-bg (cdr (assq 'background-mode params))) | 1369 | (light-bg (cdr (assq 'background-mode params))) |
| @@ -1376,4 +1377,4 @@ Uses `makefile-use-curly-braces-for-macros-p'." | |||
| 1376 | "hotpink")))) | 1377 | "hotpink")))) |
| 1377 | (set-face-background 'makefile-space-face bg-color)))) | 1378 | (set-face-background 'makefile-space-face bg-color)))) |
| 1378 | 1379 | ||
| 1379 | ;;; makefile.el ends here | 1380 | ;;; make-mode.el ends here |