Mercurial > emacs
comparison src/coding.c @ 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 | 7b495b311f18 |
| children | 6c41f3276340 |
comparison
equal
deleted
inserted
replaced
| 27942:5ba84cdaf79c | 27943:c2e0998057f9 |
|---|---|
| 4378 Lisp_Object obj; | 4378 Lisp_Object obj; |
| 4379 { | 4379 { |
| 4380 Lisp_Object prop; | 4380 Lisp_Object prop; |
| 4381 int start, end; | 4381 int start, end; |
| 4382 | 4382 |
| 4383 coding->composing = COMPOSITION_DISABLED; | 4383 if (coding->composing == COMPOSITION_DISABLED) |
| 4384 return; | |
| 4385 if (!coding->cmp_data) | |
| 4386 coding_allocate_composition_data (coding, from); | |
| 4384 if (!find_composition (from, to, &start, &end, &prop, obj) | 4387 if (!find_composition (from, to, &start, &end, &prop, obj) |
| 4385 || end > to) | 4388 || end > to) |
| 4386 return; | 4389 return; |
| 4387 if (start < from | 4390 if (start < from |
| 4388 && (!find_composition (end, to, &start, &end, &prop, obj) | 4391 && (!find_composition (end, to, &start, &end, &prop, obj) |
| 4389 || end > to)) | 4392 || end > to)) |
| 4390 return; | 4393 return; |
| 4391 coding->composing = COMPOSITION_NO; | 4394 coding->composing = COMPOSITION_NO; |
| 4392 coding_allocate_composition_data (coding, from); | |
| 4393 do | 4395 do |
| 4394 { | 4396 { |
| 4395 if (COMPOSITION_VALID_P (start, end, prop)) | 4397 if (COMPOSITION_VALID_P (start, end, prop)) |
| 4396 { | 4398 { |
| 4397 enum composition_method method = COMPOSITION_METHOD (prop); | 4399 enum composition_method method = COMPOSITION_METHOD (prop); |
