]> git.eshelyaron.com Git - emacs.git/commitdiff
(save_excursion_restore): Never make the buffer visible.
authorRichard M. Stallman <rms@gnu.org>
Mon, 2 Aug 1993 07:58:13 +0000 (07:58 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 2 Aug 1993 07:58:13 +0000 (07:58 +0000)
src/editfns.c

index f404732a9e75e059d1eea4b24e9ca34fe3ae2ee6..44511f6bb9d0f215aa4130c7354e6b5415cb5072 100644 (file)
@@ -312,10 +312,15 @@ save_excursion_restore (info)
   Fset_marker (current_buffer->mark, tem, Fcurrent_buffer ());
   unchain_marker (tem);
   tem = Fcdr (Fcdr (info));
+#if 0 /* We used to make the current buffer visible in the selected window
+        if that was true previously.  That avoids some anomalies.
+        But it creates others, and it wasn't documented, and it is simpler
+        and cleaner never to alter the window/buffer connections.  */
   tem1 = Fcar (tem);
   if (!NILP (tem1)
       && current_buffer != XBUFFER (XWINDOW (selected_window)->buffer))
     Fswitch_to_buffer (Fcurrent_buffer (), Qnil);
+#endif /* 0 */
 
   tem1 = current_buffer->mark_active;
   current_buffer->mark_active = Fcdr (tem);