Commit 73cadfc1 authored by David Kastrup's avatar David Kastrup

(Fset_window_configuration): Set old_point to correct

value when new_current_buffer == current_buffer.
parent 1a590729
...@@ -4980,7 +4980,12 @@ the return value is nil. Otherwise the value is t. */) ...@@ -4980,7 +4980,12 @@ the return value is nil. Otherwise the value is t. */)
if (NILP (XBUFFER (new_current_buffer)->name)) if (NILP (XBUFFER (new_current_buffer)->name))
new_current_buffer = Qnil; new_current_buffer = Qnil;
else else
old_point = BUF_PT (XBUFFER (new_current_buffer)); {
if (XBUFFER (new_current_buffer) == current_buffer)
old_point = PT;
else
old_point = BUF_PT (XBUFFER (new_current_buffer));
}
frame = XWINDOW (SAVED_WINDOW_N (saved_windows, 0)->window)->frame; frame = XWINDOW (SAVED_WINDOW_N (saved_windows, 0)->window)->frame;
f = XFRAME (frame); f = XFRAME (frame);
......
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