aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKen Raeburn2000-04-02 02:42:12 +0000
committerKen Raeburn2000-04-02 02:42:12 +0000
commit096540869a2be7676946ef9c4ee52e5cedb5c28a (patch)
tree2a83bcd957998fad87976be477c82c975868e514 /src
parent2387b382fff2fe92236a4b457ba0067459db8c0e (diff)
downloademacs-096540869a2be7676946ef9c4ee52e5cedb5c28a.tar.gz
emacs-096540869a2be7676946ef9c4ee52e5cedb5c28a.zip
* composite.c (run_composite_function): Use NILP when checking for nil.
(syms_of_composite): Delete local var NARGS, pass an int as first argument to Fmake_hash_table.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/composite.c7
2 files changed, 8 insertions, 4 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index db9fe4caeb0..de883b830a4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -7,6 +7,11 @@
7 (make_number): Define as a function if it's not defined as a 7 (make_number): Define as a function if it's not defined as a
8 macro. 8 macro.
9 9
10 * composite.c (run_composite_function): Use NILP when checking for
11 nil.
12 (syms_of_composite): Delete local var NARGS, pass an int as first
13 argument to Fmake_hash_table.
14
10 * editfns.c (text_property_stickiness): Use NILP to test 15 * editfns.c (text_property_stickiness): Use NILP to test
11 Lisp_Object boolean value. 16 Lisp_Object boolean value.
12 (Fmessage_or_box): Don't use NILP to test int variable. 17 (Fmessage_or_box): Don't use NILP to test int variable.
diff --git a/src/composite.c b/src/composite.c
index 335fbc103cf..440bce3b41f 100644
--- a/src/composite.c
+++ b/src/composite.c
@@ -456,7 +456,7 @@ run_composition_function (from, to, prop)
456 to = end; 456 to = end;
457 if (!NILP (func)) 457 if (!NILP (func))
458 call2 (func, make_number (from), make_number (to)); 458 call2 (func, make_number (from), make_number (to));
459 else if (Ffboundp (Vcompose_chars_after_function)) 459 else if (!NILP (Ffboundp (Vcompose_chars_after_function)))
460 call2 (Vcompose_chars_after_function, 460 call2 (Vcompose_chars_after_function,
461 make_number (from), make_number (to)); 461 make_number (from), make_number (to));
462} 462}
@@ -670,7 +670,7 @@ syms_of_composite ()
670 670
671 /* Make a hash table for composition. */ 671 /* Make a hash table for composition. */
672 { 672 {
673 Lisp_Object args[6], nargs; 673 Lisp_Object args[6];
674 extern Lisp_Object QCsize; 674 extern Lisp_Object QCsize;
675 675
676 args[0] = QCtest; 676 args[0] = QCtest;
@@ -679,8 +679,7 @@ syms_of_composite ()
679 args[3] = Qnil; 679 args[3] = Qnil;
680 args[4] = QCsize; 680 args[4] = QCsize;
681 args[5] = make_number (311); 681 args[5] = make_number (311);
682 XSETINT (nargs, 6); 682 composition_hash_table = Fmake_hash_table (6, args);
683 composition_hash_table = Fmake_hash_table (nargs, args);
684 staticpro (&composition_hash_table); 683 staticpro (&composition_hash_table);
685 } 684 }
686 685