Commit ba973f7a authored by Gerd Moellmann's avatar Gerd Moellmann

(save_excursion_restore): Don't use XBUFFER on

a non-buffer.
parent b792ae36
2001-04-26 Gerd Moellmann <gerd@gnu.org>
* editfns.c (save_excursion_restore): Don't use XBUFFER on
a non-buffer.
2001-04-25 Gerd Moellmann <gerd@gnu.org>
* term.c (toggle_highlight): New function.
......
......@@ -848,8 +848,11 @@ save_excursion_restore (info)
tem = XCDR (info);
if (visible_p
&& !EQ (tem, selected_window)
/* This also verifies that the window is still live. */
&& XBUFFER (XWINDOW (tem)->buffer) == current_buffer)
&& (tem1 = XWINDOW (tem)->buffer,
(/* Window is live... */
BUFFERP (tem1)
/* ...and it shows the current buffer. */
&& XBUFFER (tem1) == current_buffer)))
Fset_window_point (tem, make_number (PT));
UNGCPRO;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment