aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1993-08-02 07:58:13 +0000
committerRichard M. Stallman1993-08-02 07:58:13 +0000
commitef58099133e5591c06630d8064d215183eb95c8b (patch)
treecf7d24eda4910f74f0c02499bb52410b094f758c /src
parenteccf8697a79e0aa5dd98425e5cc5b2750ce5e308 (diff)
downloademacs-ef58099133e5591c06630d8064d215183eb95c8b.tar.gz
emacs-ef58099133e5591c06630d8064d215183eb95c8b.zip
(save_excursion_restore): Never make the buffer visible.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/editfns.c b/src/editfns.c
index f404732a9e7..44511f6bb9d 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -312,10 +312,15 @@ save_excursion_restore (info)
312 Fset_marker (current_buffer->mark, tem, Fcurrent_buffer ()); 312 Fset_marker (current_buffer->mark, tem, Fcurrent_buffer ());
313 unchain_marker (tem); 313 unchain_marker (tem);
314 tem = Fcdr (Fcdr (info)); 314 tem = Fcdr (Fcdr (info));
315#if 0 /* We used to make the current buffer visible in the selected window
316 if that was true previously. That avoids some anomalies.
317 But it creates others, and it wasn't documented, and it is simpler
318 and cleaner never to alter the window/buffer connections. */
315 tem1 = Fcar (tem); 319 tem1 = Fcar (tem);
316 if (!NILP (tem1) 320 if (!NILP (tem1)
317 && current_buffer != XBUFFER (XWINDOW (selected_window)->buffer)) 321 && current_buffer != XBUFFER (XWINDOW (selected_window)->buffer))
318 Fswitch_to_buffer (Fcurrent_buffer (), Qnil); 322 Fswitch_to_buffer (Fcurrent_buffer (), Qnil);
323#endif /* 0 */
319 324
320 tem1 = current_buffer->mark_active; 325 tem1 = current_buffer->mark_active;
321 current_buffer->mark_active = Fcdr (tem); 326 current_buffer->mark_active = Fcdr (tem);