diff options
| author | Chong Yidong | 2012-03-18 22:18:01 +0800 |
|---|---|---|
| committer | Chong Yidong | 2012-03-18 22:18:01 +0800 |
| commit | 4c5779ab90f6be7862604d700f4b1dee17ba10c4 (patch) | |
| tree | 02bf0a40de0c1fb52888559db5c9a43fd72d9312 | |
| parent | 153609342a86a37e18d6be8c8f28c96efb4d03c7 (diff) | |
| download | emacs-4c5779ab90f6be7862604d700f4b1dee17ba10c4.tar.gz emacs-4c5779ab90f6be7862604d700f4b1dee17ba10c4.zip | |
* faces.el (face-spec-reset-face): Don't run display-graphic-p if undefined.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/faces.el | 5 |
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 @@ | |||
| 1 | 2012-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 | |||
| 1 | 2012-03-18 Leo Liu <sdl.web@gmail.com> | 6 | 2012-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" |