From: David Kastrup Date: Thu, 19 Dec 2002 16:26:29 +0000 (+0000) Subject: (Fset_window_configuration): Set old_point to correct X-Git-Tag: ttn-vms-21-2-B4~11967 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=73cadfc195d550330735b3358e1b3b45116d4df1;p=emacs.git (Fset_window_configuration): Set old_point to correct value when new_current_buffer == current_buffer. --- diff --git a/src/window.c b/src/window.c index 1c7bff2767c..db49c7afceb 100644 --- a/src/window.c +++ b/src/window.c @@ -4980,7 +4980,12 @@ the return value is nil. Otherwise the value is t. */) if (NILP (XBUFFER (new_current_buffer)->name)) new_current_buffer = Qnil; 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; f = XFRAME (frame);