diff src/window.c @ 108896:4a42850741ad

* window.el (pop-to-buffer): Remove the conditional that compares new-window and old-window, so it will reselect the selected window unconditionally. http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00078.html * window.c (Fselect_window): Move `record_buffer' up to the beginning of this function, so the buffer gets recorded even if the selected window does not change. http://lists.gnu.org/archive/html/emacs-devel/2010-06/msg00137.html
author Juri Linkov <juri@jurta.org>
date Mon, 07 Jun 2010 21:28:02 +0300
parents d7b161b7a686
children 580a6ea34172
line wrap: on
line diff
--- a/src/window.c	Mon Jun 07 12:35:57 2010 +0200
+++ b/src/window.c	Mon Jun 07 21:28:02 2010 +0300
@@ -3611,6 +3611,7 @@
     {
       ++window_select_count;
       XSETFASTINT (w->use_time, window_select_count);
+      record_buffer (w->buffer);
     }
 
   if (EQ (window, selected_window))
@@ -3646,8 +3647,6 @@
 
   selected_window = window;
 
-  if (NILP (norecord))
-    record_buffer (w->buffer);
   Fset_buffer (w->buffer);
 
   XBUFFER (w->buffer)->last_selected_window = window;