# HG changeset patch # User Kenichi Handa # Date 951977355 0 # Node ID c2e0998057f9a74cccfba30d13eb58c1faaa0a36 # Parent 5ba84cdaf79c8332815e1438eb59c6da819078fb (coding_save_composition): Be sure to allocate composition data area in coding even if there's no composition in the current run. diff -r 5ba84cdaf79c -r c2e0998057f9 src/coding.c --- a/src/coding.c Thu Mar 02 06:08:38 2000 +0000 +++ b/src/coding.c Thu Mar 02 06:09:15 2000 +0000 @@ -4380,7 +4380,10 @@ Lisp_Object prop; int start, end; - coding->composing = COMPOSITION_DISABLED; + if (coding->composing == COMPOSITION_DISABLED) + return; + if (!coding->cmp_data) + coding_allocate_composition_data (coding, from); if (!find_composition (from, to, &start, &end, &prop, obj) || end > to) return; @@ -4389,7 +4392,6 @@ || end > to)) return; coding->composing = COMPOSITION_NO; - coding_allocate_composition_data (coding, from); do { if (COMPOSITION_VALID_P (start, end, prop))