aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2012-03-18 22:18:01 +0800
committerChong Yidong2012-03-18 22:18:01 +0800
commit4c5779ab90f6be7862604d700f4b1dee17ba10c4 (patch)
tree02bf0a40de0c1fb52888559db5c9a43fd72d9312
parent153609342a86a37e18d6be8c8f28c96efb4d03c7 (diff)
downloademacs-4c5779ab90f6be7862604d700f4b1dee17ba10c4.tar.gz
emacs-4c5779ab90f6be7862604d700f4b1dee17ba10c4.zip
* faces.el (face-spec-reset-face): Don't run display-graphic-p if undefined.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/faces.el5
2 files changed, 9 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 06b273fa178..a6f5a5fd525 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12012-03-18 Chong Yidong <cyd@gnu.org>
2
3 * faces.el (face-spec-reset-face): Don't call display-graphic-p if
4 it is not yet defined (for temacs).
5
12012-03-18 Leo Liu <sdl.web@gmail.com> 62012-03-18 Leo Liu <sdl.web@gmail.com>
2 7
3 * net/rcirc.el (rcirc-cmd-quit): Allow quiting all servers with 8 * net/rcirc.el (rcirc-cmd-quit): Allow quiting all servers with
diff --git a/lisp/faces.el b/lisp/faces.el
index bdac3a1bb6a..34fad66ce27 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1521,7 +1521,10 @@ If SPEC is nil, return nil."
1521 (append 1521 (append
1522 '(:underline nil :overline nil :strike-through nil 1522 '(:underline nil :overline nil :strike-through nil
1523 :box nil :inverse-video nil :stipple nil :inherit nil) 1523 :box nil :inverse-video nil :stipple nil :inherit nil)
1524 (unless (display-graphic-p frame) 1524 ;; `display-graphic-p' is unavailable when running
1525 ;; temacs, prior to loading frame.el.
1526 (unless (and (fboundp 'display-graphic-p)
1527 (display-graphic-p frame))
1525 '(:family "default" :foundry "default" :width normal 1528 '(:family "default" :foundry "default" :width normal
1526 :height 1 :weight normal :slant normal 1529 :height 1 :weight normal :slant normal
1527 :foreground "unspecified-fg" 1530 :foreground "unspecified-fg"