diff options
| author | Gerd Moellmann | 2000-08-20 13:26:35 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-08-20 13:26:35 +0000 |
| commit | dde0101c65e67751b236d971306049b431538c61 (patch) | |
| tree | 0d6555cb5f441db887252e86894f3bbd07c62a61 | |
| parent | ae4b4ba5df169afbd7878e7c1092ecf3ff7cd61f (diff) | |
| download | emacs-dde0101c65e67751b236d971306049b431538c61.tar.gz emacs-dde0101c65e67751b236d971306049b431538c61.zip | |
(command-line): Clear realized faces after
modifying TTY color mappings.
| -rw-r--r-- | lisp/startup.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index bd2b8a6d22e..50fbe937657 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -787,7 +787,10 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 787 | (color (car colors))) | 787 | (color (car colors))) |
| 788 | (while colors | 788 | (while colors |
| 789 | (tty-color-define (car color) (cadr color) (cddr color)) | 789 | (tty-color-define (car color) (cadr color) (cddr color)) |
| 790 | (setq colors (cdr colors) color (car colors))))) | 790 | (setq colors (cdr colors) color (car colors))) |
| 791 | ;; Modifying color mappings means realized faces don't | ||
| 792 | ;; use the right colors, so clear them. | ||
| 793 | (clear-face-cache))) | ||
| 791 | 794 | ||
| 792 | ;; Load library for our terminal type. | 795 | ;; Load library for our terminal type. |
| 793 | ;; User init file can set term-file-prefix to nil to prevent this. | 796 | ;; User init file can set term-file-prefix to nil to prevent this. |