diff options
| author | Richard M. Stallman | 2004-09-09 14:53:37 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2004-09-09 14:53:37 +0000 |
| commit | 64b7122d05513fedddb5d7441d0659a10b18861a (patch) | |
| tree | 7bebd40aabc696b1d45bbbc6b189d86650089493 /src | |
| parent | 8bca06063696302c1a320a224c5892f2404a607c (diff) | |
| download | emacs-64b7122d05513fedddb5d7441d0659a10b18861a.tar.gz emacs-64b7122d05513fedddb5d7441d0659a10b18861a.zip | |
(decode_mode_spec): Use current buffer for most purposes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 9 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 52426939562..bdc2d2d7e20 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2004-09-09 Richard M. Stallman <rms@gnu.org> | ||
| 2 | |||
| 3 | * xdisp.c (decode_mode_spec): Use current buffer for most purposes. | ||
| 4 | |||
| 1 | 2004-09-08 Richard M. Stallman <rms@gnu.org> | 5 | 2004-09-08 Richard M. Stallman <rms@gnu.org> |
| 2 | 6 | ||
| 3 | * window.c (Fset_window_buffer): Doc fix. | 7 | * window.c (Fset_window_buffer): Doc fix. |
diff --git a/src/xdisp.c b/src/xdisp.c index 45388409fd4..496e79d194a 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -16127,7 +16127,10 @@ decode_mode_spec_coding (coding_system, buf, eol_flag) | |||
| 16127 | generated by character C. PRECISION >= 0 means don't return a | 16127 | generated by character C. PRECISION >= 0 means don't return a |
| 16128 | string longer than that value. FIELD_WIDTH > 0 means pad the | 16128 | string longer than that value. FIELD_WIDTH > 0 means pad the |
| 16129 | string returned with spaces to that value. Return 1 in *MULTIBYTE | 16129 | string returned with spaces to that value. Return 1 in *MULTIBYTE |
| 16130 | if the result is multibyte text. */ | 16130 | if the result is multibyte text. |
| 16131 | |||
| 16132 | Note we operate on the current buffer for most purposes, | ||
| 16133 | the exception being w->base_line_pos. */ | ||
| 16131 | 16134 | ||
| 16132 | static char lots_of_dashes[] = "--------------------------------------------------------------------------------------------------------------------------------------------"; | 16135 | static char lots_of_dashes[] = "--------------------------------------------------------------------------------------------------------------------------------------------"; |
| 16133 | 16136 | ||
| @@ -16141,7 +16144,7 @@ decode_mode_spec (w, c, field_width, precision, multibyte) | |||
| 16141 | Lisp_Object obj; | 16144 | Lisp_Object obj; |
| 16142 | struct frame *f = XFRAME (WINDOW_FRAME (w)); | 16145 | struct frame *f = XFRAME (WINDOW_FRAME (w)); |
| 16143 | char *decode_mode_spec_buf = f->decode_mode_spec_buffer; | 16146 | char *decode_mode_spec_buf = f->decode_mode_spec_buffer; |
| 16144 | struct buffer *b = XBUFFER (w->buffer); | 16147 | struct buffer *b = current_buffer; |
| 16145 | 16148 | ||
| 16146 | obj = Qnil; | 16149 | obj = Qnil; |
| 16147 | *multibyte = 0; | 16150 | *multibyte = 0; |
| @@ -16443,7 +16446,7 @@ decode_mode_spec (w, c, field_width, precision, multibyte) | |||
| 16443 | 16446 | ||
| 16444 | case 's': | 16447 | case 's': |
| 16445 | /* status of process */ | 16448 | /* status of process */ |
| 16446 | obj = Fget_buffer_process (w->buffer); | 16449 | obj = Fget_buffer_process (Fcurrent_buffer ()); |
| 16447 | if (NILP (obj)) | 16450 | if (NILP (obj)) |
| 16448 | return "no process"; | 16451 | return "no process"; |
| 16449 | #ifdef subprocesses | 16452 | #ifdef subprocesses |