aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2006-03-09 01:22:51 +0000
committerKenichi Handa2006-03-09 01:22:51 +0000
commitf75c90a9dbaa0cbb9871a42079292627f2f07575 (patch)
tree1a6f6b75d5a16b4c4252572c083e9a56670b1bca /src
parent5503f67d904f08cd570eb2601f31ea62f5ef914c (diff)
downloademacs-f75c90a9dbaa0cbb9871a42079292627f2f07575.tar.gz
emacs-f75c90a9dbaa0cbb9871a42079292627f2f07575.zip
(produce_composition): Compare charbuf[i] instead of
args[i] against 0. (Fterminal_coding_system): Use EQ to compare Lisp objects.
Diffstat (limited to 'src')
-rw-r--r--src/coding.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/coding.c b/src/coding.c
index 05d2a06843b..3bec805fe10 100644
--- a/src/coding.c
+++ b/src/coding.c
@@ -6040,7 +6040,7 @@ produce_composition (coding, charbuf, pos)
6040 for (i = 0; i < len; i++) 6040 for (i = 0; i < len; i++)
6041 { 6041 {
6042 args[i] = make_number (charbuf[i]); 6042 args[i] = make_number (charbuf[i]);
6043 if (args[i] < 0) 6043 if (charbuf[i] < 0)
6044 return; 6044 return;
6045 } 6045 }
6046 components = (method == COMPOSITION_WITH_ALTCHARS 6046 components = (method == COMPOSITION_WITH_ALTCHARS
@@ -8247,7 +8247,7 @@ DEFUN ("terminal-coding-system",
8247 8247
8248 coding_system = CODING_ID_NAME (terminal_coding.id); 8248 coding_system = CODING_ID_NAME (terminal_coding.id);
8249 /* For backward compatibility, return nil if it is `undecided'. */ 8249 /* For backward compatibility, return nil if it is `undecided'. */
8250 return (coding_system != Qundecided ? coding_system : Qnil); 8250 return (! EQ (coding_system, Qundecided) ? coding_system : Qnil);
8251} 8251}
8252 8252
8253DEFUN ("set-keyboard-coding-system-internal", 8253DEFUN ("set-keyboard-coding-system-internal",