emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/buffer.c,v


From: Richard M. Stallman
Subject: [Emacs-diffs] Changes to emacs/src/buffer.c,v
Date: Fri, 25 Aug 2006 21:10:26 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Richard M. Stallman <rms>       06/08/25 21:10:26

Index: buffer.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/buffer.c,v
retrieving revision 1.508
retrieving revision 1.509
diff -u -b -r1.508 -r1.509
--- buffer.c    24 Aug 2006 20:40:53 -0000      1.508
+++ buffer.c    25 Aug 2006 21:10:26 -0000      1.509
@@ -1685,10 +1685,15 @@
 
   if (EQ (buffer, Fwindow_buffer (selected_window)))
     {
-      if (NILP (norecord)  && !EQ (buffer, XCDR (XCAR (Vbuffer_alist))))
+      /* Basically a NOP.  Avoid signalling an error in the case where
+        the selected window is dedicated, or a minibuffer.  */
+
+      /* But do put this buffer at the front of the buffer list,
+        unless that has been inhibited.  Note that even if
+        BUFFER is at the front of the main buffer-list already,
+        we still want to move it to the front of the frame's buffer list.  */
+      if (NILP (norecord))
        record_buffer (buffer);
-      /* Basically a NOP.  Avoid signalling an error if the selected window
-        is dedicated, or a minibuffer, ...  */
       return Fset_buffer (buffer);
     }
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]