Mercurial > emacs
comparison src/xdisp.c @ 18761:756cb4d82a49
(decode_mode_spec): Initialize and use `p' (for the termcap case).
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 12 Jul 1997 19:11:07 +0000 |
parents | 8fce2f503ea9 |
children | efc598630ee9 |
comparison
equal
deleted
inserted
replaced
18760:e558b6879b0c | 18761:756cb4d82a49 |
---|---|
4439 /* coding-system (not including end-of-line format) */ | 4439 /* coding-system (not including end-of-line format) */ |
4440 case 'Z': | 4440 case 'Z': |
4441 /* coding-system (including end-of-line type) */ | 4441 /* coding-system (including end-of-line type) */ |
4442 { | 4442 { |
4443 int eol_flag = (c == 'Z'); | 4443 int eol_flag = (c == 'Z'); |
4444 char *p; | 4444 char *p = decode_mode_spec_buf; |
4445 | 4445 |
4446 if (FRAME_TERMCAP_P (f)) | 4446 if (FRAME_TERMCAP_P (f)) |
4447 { | 4447 { |
4448 /* No need to mention EOL here--the terminal never needs | 4448 /* No need to mention EOL here--the terminal never needs |
4449 to do EOL conversion. */ | 4449 to do EOL conversion. */ |
4450 p = decode_mode_spec_coding (keyboard_coding.symbol, p, 0); | 4450 p = decode_mode_spec_coding (keyboard_coding.symbol, p, 0); |
4451 p = decode_mode_spec_coding (terminal_coding.symbol, p, 0); | 4451 p = decode_mode_spec_coding (terminal_coding.symbol, p, 0); |
4452 } | 4452 } |
4453 p = decode_mode_spec_coding (b->buffer_file_coding_system, | 4453 p = decode_mode_spec_coding (b->buffer_file_coding_system, |
4454 decode_mode_spec_buf, eol_flag); | 4454 p, eol_flag); |
4455 | 4455 |
4456 #if 0 /* This proves to be annoying; I think we can do without. -- rms. */ | 4456 #if 0 /* This proves to be annoying; I think we can do without. -- rms. */ |
4457 #ifdef subprocesses | 4457 #ifdef subprocesses |
4458 obj = Fget_buffer_process (Fcurrent_buffer ()); | 4458 obj = Fget_buffer_process (Fcurrent_buffer ()); |
4459 if (PROCESSP (obj)) | 4459 if (PROCESSP (obj)) |