diff options
| author | Gerd Moellmann | 2001-10-18 09:55:37 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-10-18 09:55:37 +0000 |
| commit | d0035f7a52ea876d6dce3fe56bf9bd8ca0c1e76b (patch) | |
| tree | 9a19ac969c23a8e306ba9ba7165ad9ddc5cbd164 | |
| parent | d8055bfc8f4883f2bfc217b448cba1461252db27 (diff) | |
| download | emacs-d0035f7a52ea876d6dce3fe56bf9bd8ca0c1e76b.tar.gz emacs-d0035f7a52ea876d6dce3fe56bf9bd8ca0c1e76b.zip | |
(hilit-lookup-face-create): Call
set-face-font only if display-graphic-p.
(toplevel): Remove references to window-system.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/obsolete/hilit19.el | 10 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7f34380075c..05234eb6624 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2001-10-18 Gerd Moellmann <gerd@gnu.org> | ||
| 2 | |||
| 3 | * obsolete/hilit19.el (hilit-lookup-face-create): Call | ||
| 4 | set-face-font only if display-graphic-p. | ||
| 5 | (toplevel): Remove references to window-system. | ||
| 6 | |||
| 1 | 2001-10-18 Miles Bader <miles@gnu.org> | 7 | 2001-10-18 Miles Bader <miles@gnu.org> |
| 2 | 8 | ||
| 3 | * simple.el (what-line): Avoid problems with field properties. | 9 | * simple.el (what-line): Avoid problems with field properties. |
diff --git a/lisp/obsolete/hilit19.el b/lisp/obsolete/hilit19.el index 0adcb88a678..e70045e641e 100644 --- a/lisp/obsolete/hilit19.el +++ b/lisp/obsolete/hilit19.el | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | ;;; hilit19.el --- customizable highlighting for Emacs 19 | 1 | ;;; hilit19.el --- customizable highlighting for Emacs 19 |
| 2 | 2 | ||
| 3 | ;; Copyright (c) 1993, 1994 Free Software Foundation, Inc. | 3 | ;; Copyright (c) 1993, 1994, 2001 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | ;; Author: Jonathan Stigelman <stig@hackvan.com> | 5 | ;; Author: Jonathan Stigelman <stig@hackvan.com> |
| 6 | ;; Maintainer: FSF | 6 | ;; Maintainer: FSF |
| @@ -635,7 +635,8 @@ See the documentation for hilit-translate and hilit-face-translation-table." | |||
| 635 | ;; we wanted, but ignore errors making the face bold or italic | 635 | ;; we wanted, but ignore errors making the face bold or italic |
| 636 | ;; if the font isn't available, there's nothing to do about it... | 636 | ;; if the font isn't available, there's nothing to do about it... |
| 637 | (progn | 637 | (progn |
| 638 | (set-face-font face basefont frame) | 638 | (when (display-graphic-p frame) |
| 639 | (set-face-font face basefont frame)) | ||
| 639 | (set-face-underline-p face (string-match "underline" fn)) | 640 | (set-face-underline-p face (string-match "underline" fn)) |
| 640 | (if (string-match ".*bold" fn) | 641 | (if (string-match ".*bold" fn) |
| 641 | ;; make face bold in all frames | 642 | ;; make face bold in all frames |
| @@ -945,7 +946,6 @@ the entire buffer is forced." | |||
| 945 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | 946 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
| 946 | 947 | ||
| 947 | (and (not hilit-inhibit-rebinding) | 948 | (and (not hilit-inhibit-rebinding) |
| 948 | window-system | ||
| 949 | (progn | 949 | (progn |
| 950 | (substitute-key-definition 'yank 'hilit-yank | 950 | (substitute-key-definition 'yank 'hilit-yank |
| 951 | (current-global-map)) | 951 | (current-global-map)) |
| @@ -956,13 +956,11 @@ the entire buffer is forced." | |||
| 956 | 956 | ||
| 957 | (global-set-key [?\C-\S-l] 'hilit-repaint-command) | 957 | (global-set-key [?\C-\S-l] 'hilit-repaint-command) |
| 958 | 958 | ||
| 959 | (and window-system | 959 | (add-hook 'find-file-hooks 'hilit-find-file-hook t) |
| 960 | (add-hook 'find-file-hooks 'hilit-find-file-hook t)) | ||
| 961 | 960 | ||
| 962 | (eval-when-compile (require 'gnus)) ; no compilation gripes | 961 | (eval-when-compile (require 'gnus)) ; no compilation gripes |
| 963 | 962 | ||
| 964 | (and (not hilit-inhibit-hooks) | 963 | (and (not hilit-inhibit-hooks) |
| 965 | window-system | ||
| 966 | (condition-case c | 964 | (condition-case c |
| 967 | (progn | 965 | (progn |
| 968 | 966 | ||