changeset 57036:1e7c3f7f68db

(decode_mode_spec): Use current buffer for most purposes.
author Richard M. Stallman <rms@gnu.org>
date Thu, 09 Sep 2004 14:53:23 +0000
parents 0f53ff12f87c
children c1d931106039
files src/xdisp.c
diffstat 1 files changed, 6 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Thu Sep 09 11:09:00 2004 +0000
+++ b/src/xdisp.c	Thu Sep 09 14:53:23 2004 +0000
@@ -16127,7 +16127,10 @@
    generated by character C.  PRECISION >= 0 means don't return a
    string longer than that value.  FIELD_WIDTH > 0 means pad the
    string returned with spaces to that value.  Return 1 in *MULTIBYTE
-   if the result is multibyte text.  */
+   if the result is multibyte text.
+
+   Note we operate on the current buffer for most purposes,
+   the exception being w->base_line_pos.  */
 
 static char lots_of_dashes[] = "--------------------------------------------------------------------------------------------------------------------------------------------";
 
@@ -16141,7 +16144,7 @@
   Lisp_Object obj;
   struct frame *f = XFRAME (WINDOW_FRAME (w));
   char *decode_mode_spec_buf = f->decode_mode_spec_buffer;
-  struct buffer *b = XBUFFER (w->buffer);
+  struct buffer *b = current_buffer;
 
   obj = Qnil;
   *multibyte = 0;
@@ -16443,7 +16446,7 @@
 
     case 's':
       /* status of process */
-      obj = Fget_buffer_process (w->buffer);
+      obj = Fget_buffer_process (Fcurrent_buffer ());
       if (NILP (obj))
 	return "no process";
 #ifdef subprocesses