diff options
| author | Richard M. Stallman | 2003-09-30 12:38:38 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2003-09-30 12:38:38 +0000 |
| commit | 545d91d5cf07ec93cef7f31d2ad3146137027713 (patch) | |
| tree | 67c0857001dad139b2a37f4dbfcf18ed13c8c7be /src/term.c | |
| parent | 7c67c9f660052c903a555c5d205e83c274cfd80a (diff) | |
| download | emacs-545d91d5cf07ec93cef7f31d2ad3146137027713.tar.gz emacs-545d91d5cf07ec93cef7f31d2ad3146137027713.zip | |
(set_tty_color_mode): Calculate current_mode_spec regardless of value of VAL.
Diffstat (limited to 'src/term.c')
| -rw-r--r-- | src/term.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/term.c b/src/term.c index 8e4eb21c362..5c25c7419dc 100644 --- a/src/term.c +++ b/src/term.c | |||
| @@ -2120,13 +2120,15 @@ set_tty_color_mode (f, val) | |||
| 2120 | color_mode_spec = Qnil; | 2120 | color_mode_spec = Qnil; |
| 2121 | else | 2121 | else |
| 2122 | color_mode_spec = Fassq (val, XSYMBOL (tty_color_mode_alist)->value); | 2122 | color_mode_spec = Fassq (val, XSYMBOL (tty_color_mode_alist)->value); |
| 2123 | current_mode_spec = assq_no_quit (Qtty_color_mode, f->param_alist); | ||
| 2124 | 2123 | ||
| 2125 | if (CONSP (color_mode_spec)) | 2124 | if (CONSP (color_mode_spec)) |
| 2126 | color_mode = XCDR (color_mode_spec); | 2125 | color_mode = XCDR (color_mode_spec); |
| 2127 | else | 2126 | else |
| 2128 | color_mode = Qnil; | 2127 | color_mode = Qnil; |
| 2129 | } | 2128 | } |
| 2129 | |||
| 2130 | current_mode_spec = assq_no_quit (Qtty_color_mode, f->param_alist); | ||
| 2131 | |||
| 2130 | if (CONSP (current_mode_spec)) | 2132 | if (CONSP (current_mode_spec)) |
| 2131 | current_mode = XCDR (current_mode_spec); | 2133 | current_mode = XCDR (current_mode_spec); |
| 2132 | else | 2134 | else |