aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2003-09-22 16:03:18 +0000
committerEli Zaretskii2003-09-22 16:03:18 +0000
commit9ac61a89356de9af2e8cc53f7264156386220e41 (patch)
tree88482c961848400598880054602825044a3ec2ea /src
parent8fe7d8c8bd50e644112afd8a3d7dd6fca7412f38 (diff)
downloademacs-9ac61a89356de9af2e8cc53f7264156386220e41.tar.gz
emacs-9ac61a89356de9af2e8cc53f7264156386220e41.zip
(set_tty_color_mode): Use INTEGERP to test whether a
color mode is an integer number (it could be -1).
Diffstat (limited to 'src')
-rw-r--r--src/term.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/term.c b/src/term.c
index 1f4ceaec627..dba6b0e4a52 100644
--- a/src/term.c
+++ b/src/term.c
@@ -2108,7 +2108,7 @@ set_tty_color_mode (f, val)
2108 tty_color_mode_alist = Fintern_soft (build_string ("tty-color-mode-alist"), 2108 tty_color_mode_alist = Fintern_soft (build_string ("tty-color-mode-alist"),
2109 Qnil); 2109 Qnil);
2110 2110
2111 if (NATNUMP (val)) 2111 if (INTEGERP (val))
2112 color_mode = val; 2112 color_mode = val;
2113 else 2113 else
2114 { 2114 {
@@ -2127,11 +2127,11 @@ set_tty_color_mode (f, val)
2127 current_mode = XCDR (current_mode_spec); 2127 current_mode = XCDR (current_mode_spec);
2128 else 2128 else
2129 current_mode = Qnil; 2129 current_mode = Qnil;
2130 if (NATNUMP (color_mode)) 2130 if (INTEGERP (color_mode))
2131 mode = XINT (color_mode); 2131 mode = XINT (color_mode);
2132 else 2132 else
2133 mode = 0; /* meaning default */ 2133 mode = 0; /* meaning default */
2134 if (NATNUMP (current_mode)) 2134 if (INTEGERP (current_mode))
2135 old_mode = XINT (current_mode); 2135 old_mode = XINT (current_mode);
2136 else 2136 else
2137 old_mode = 0; 2137 old_mode = 0;