Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
ef580991
Commit
ef580991
authored
Aug 02, 1993
by
Richard M. Stallman
Browse files
(save_excursion_restore): Never make the buffer visible.
parent
eccf8697
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
src/editfns.c
src/editfns.c
+5
-0
No files found.
src/editfns.c
View file @
ef580991
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment