Mercurial > emacs
comparison src/coding.c @ 45981:e513f55424f6
(detect_eol): Preserve coding->cmp_data.
| author | Kenichi Handa <handa@m17n.org> |
|---|---|
| date | Mon, 24 Jun 2002 00:35:59 +0000 |
| parents | cab845213388 |
| children | 5d6d01bbbe87 |
comparison
equal
deleted
inserted
replaced
| 45980:1f38d08f324b | 45981:e513f55424f6 |
|---|---|
| 4315 val = Fget (coding->symbol, Qeol_type); | 4315 val = Fget (coding->symbol, Qeol_type); |
| 4316 if (VECTORP (val) && XVECTOR (val)->size == 3) | 4316 if (VECTORP (val) && XVECTOR (val)->size == 3) |
| 4317 { | 4317 { |
| 4318 int src_multibyte = coding->src_multibyte; | 4318 int src_multibyte = coding->src_multibyte; |
| 4319 int dst_multibyte = coding->dst_multibyte; | 4319 int dst_multibyte = coding->dst_multibyte; |
| 4320 struct composition_data *cmp_data = coding->cmp_data; | |
| 4320 | 4321 |
| 4321 setup_coding_system (XVECTOR (val)->contents[eol_type], coding); | 4322 setup_coding_system (XVECTOR (val)->contents[eol_type], coding); |
| 4322 coding->src_multibyte = src_multibyte; | 4323 coding->src_multibyte = src_multibyte; |
| 4323 coding->dst_multibyte = dst_multibyte; | 4324 coding->dst_multibyte = dst_multibyte; |
| 4324 coding->heading_ascii = skip; | 4325 coding->heading_ascii = skip; |
| 4326 coding->cmp_data = cmp_data; | |
| 4325 } | 4327 } |
| 4326 } | 4328 } |
| 4327 | 4329 |
| 4328 #define CONVERSION_BUFFER_EXTRA_ROOM 256 | 4330 #define CONVERSION_BUFFER_EXTRA_ROOM 256 |
| 4329 | 4331 |
