Mercurial > emacs
changeset 52579:611336925095
(set_tty_color_mode): Use INTEGERP to test whether a
color mode is an integer number (it could be -1).
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Mon, 22 Sep 2003 16:03:18 +0000 |
parents | 1365e8b0efa4 |
children | ac7e8287a67e |
files | src/term.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/term.c Mon Sep 22 15:51:28 2003 +0000 +++ b/src/term.c Mon Sep 22 16:03:18 2003 +0000 @@ -2108,7 +2108,7 @@ tty_color_mode_alist = Fintern_soft (build_string ("tty-color-mode-alist"), Qnil); - if (NATNUMP (val)) + if (INTEGERP (val)) color_mode = val; else { @@ -2127,11 +2127,11 @@ current_mode = XCDR (current_mode_spec); else current_mode = Qnil; - if (NATNUMP (color_mode)) + if (INTEGERP (color_mode)) mode = XINT (color_mode); else mode = 0; /* meaning default */ - if (NATNUMP (current_mode)) + if (INTEGERP (current_mode)) old_mode = XINT (current_mode); else old_mode = 0;