Commit 794b75c7 authored by Stefan Monnier's avatar Stefan Monnier

* src/window.c (Fmove_to_window_line): Avoid abort when called in a buffer

different from selected-window's.
parent 58bdfa4c
2010-12-26 Stefan Monnier <monnier@iro.umontreal.ca>
* window.c (Fmove_to_window_line): Avoid abort when called in a buffer
different from selected-window's.
2010-12-25 Eli Zaretskii <eliz@gnu.org>
* keyboard.c (parse_menu_item): Prepend " " to the key sequence
......
......@@ -5856,6 +5856,12 @@ zero means top of window, negative means relative to bottom of window. */)
int this_scroll_margin;
#endif
if (!(BUFFERP (w->buffer)
&& XBUFFER (w->buffer) == current_buffer))
/* This test is needed to make sure PT/PT_BYTE make sense in w->buffer
when passed below to set_marker_both. */
error ("move-to-window-line called from unrelated buffer");
window = selected_window;
start = marker_position (w->start);
if (start < BEGV || start > ZV)
......
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