changeset 52681:2036a4307b6c

(set_tty_color_mode): Calculate current_mode_spec regardless of value of VAL.
author Richard M. Stallman <rms@gnu.org>
date Tue, 30 Sep 2003 12:38:38 +0000
parents 3614833210ba
children a7331078ec76
files src/term.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/term.c	Tue Sep 30 12:36:17 2003 +0000
+++ b/src/term.c	Tue Sep 30 12:38:38 2003 +0000
@@ -2120,13 +2120,15 @@
 	color_mode_spec = Qnil;
       else
 	color_mode_spec = Fassq (val, XSYMBOL (tty_color_mode_alist)->value);
-      current_mode_spec = assq_no_quit (Qtty_color_mode, f->param_alist);
 
       if (CONSP (color_mode_spec))
 	color_mode = XCDR (color_mode_spec);
       else
 	color_mode = Qnil;
     }
+
+  current_mode_spec = assq_no_quit (Qtty_color_mode, f->param_alist);
+
   if (CONSP (current_mode_spec))
     current_mode = XCDR (current_mode_spec);
   else