changeset 27943:c2e0998057f9

(coding_save_composition): Be sure to allocate composition data area in coding even if there's no composition in the current run.
author Kenichi Handa <handa@m17n.org>
date Thu, 02 Mar 2000 06:09:15 +0000
parents 5ba84cdaf79c
children b75299f3bc4c
files src/coding.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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))