From: Dave Love Date: Wed, 3 Jul 2002 22:14:32 +0000 (+0000) Subject: (decode_mode_spec_coding): Use CHARACTERP. X-Git-Tag: emacs-pretest-23.0.90~8295^2~1864^2~593 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c732cc73bac471a23c12a03f76de63038d0a0a03;p=emacs.git (decode_mode_spec_coding): Use CHARACTERP. --- diff --git a/src/xdisp.c b/src/xdisp.c index a35145cf381..6c9b2709e9c 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -13988,8 +13988,7 @@ decode_mode_spec_coding (coding_system, buf, eol_flag) eol_str = XSTRING (eoltype)->data; eol_str_len = XSTRING (eoltype)->size; } - else if (INTEGERP (eoltype) - && CHAR_VALID_P (XINT (eoltype), 0)) + else if (CHARACTERP (eoltype)) { eol_str = (unsigned char *) alloca (MAX_MULTIBYTE_LENGTH); eol_str_len = CHAR_STRING (XINT (eoltype), eol_str);