]> code.delx.au - gnu-emacs/commitdiff
* faces.el (face-spec-reset-face): Don't run display-graphic-p if undefined.
authorChong Yidong <cyd@gnu.org>
Sun, 18 Mar 2012 14:18:01 +0000 (22:18 +0800)
committerChong Yidong <cyd@gnu.org>
Sun, 18 Mar 2012 14:18:01 +0000 (22:18 +0800)
lisp/ChangeLog
lisp/faces.el

index 06b273fa178ae26600a96b31e047f1bd5062fa58..a6f5a5fd525df1567e67b86267d42fdee8119116 100644 (file)
@@ -1,3 +1,8 @@
+2012-03-18  Chong Yidong  <cyd@gnu.org>
+
+       * faces.el (face-spec-reset-face): Don't call display-graphic-p if
+       it is not yet defined (for temacs).
+
 2012-03-18  Leo Liu  <sdl.web@gmail.com>
 
        * net/rcirc.el (rcirc-cmd-quit): Allow quiting all servers with
index bdac3a1bb6a106c49af363b9f9d8942c417d9722..34fad66ce278cb69590784a13883d7bc6913e8b3 100644 (file)
@@ -1521,7 +1521,10 @@ If SPEC is nil, return nil."
             (append
              '(:underline nil :overline nil :strike-through nil
                :box nil :inverse-video nil :stipple nil :inherit nil)
-             (unless (display-graphic-p frame)
+             ;; `display-graphic-p' is unavailable when running
+             ;; temacs, prior to loading frame.el.
+             (unless (and (fboundp 'display-graphic-p)
+                          (display-graphic-p frame))
                '(:family "default" :foundry "default" :width normal
                  :height 1 :weight normal :slant normal
                  :foreground "unspecified-fg"