aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman2005-04-10 22:02:41 +0000
committerRichard M. Stallman2005-04-10 22:02:41 +0000
commita46c015333f5df78b768dc1a3eb8c2e304481c39 (patch)
tree026dd37edb3a4a6360e3fd97451e6e9cb4b710a7 /src
parent4f79343e097e48b6c99cc8cd042b81758307c3bb (diff)
downloademacs-a46c015333f5df78b768dc1a3eb8c2e304481c39.tar.gz
emacs-a46c015333f5df78b768dc1a3eb8c2e304481c39.zip
Comment changes.
Diffstat (limited to 'src')
-rw-r--r--src/window.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/window.c b/src/window.c
index 93495afb1a5..988b663cbba 100644
--- a/src/window.c
+++ b/src/window.c
@@ -3171,6 +3171,9 @@ selects the buffer of the selected window before each command. */)
3171 if (EQ (window, selected_window)) 3171 if (EQ (window, selected_window))
3172 return window; 3172 return window;
3173 3173
3174 /* Store the current buffer's actual point into the
3175 old selected window. It belongs to that window,
3176 and when the window is not selected, must be in the window. */
3174 if (!NILP (selected_window)) 3177 if (!NILP (selected_window))
3175 { 3178 {
3176 ow = XWINDOW (selected_window); 3179 ow = XWINDOW (selected_window);
@@ -5636,8 +5639,9 @@ the return value is nil. Otherwise the value is t. */)
5636#endif 5639#endif
5637#endif 5640#endif
5638 5641
5639 /* "Swap out" point from the selected window 5642 /* "Swap out" point from the selected window's buffer
5640 into its buffer. We do this now, before 5643 into the window itself. (Normally the pointm of the selected
5644 window holds garbage.) We do this now, before
5641 restoring the window contents, and prevent it from 5645 restoring the window contents, and prevent it from
5642 being done later on when we select a new window. */ 5646 being done later on when we select a new window. */
5643 if (! NILP (XWINDOW (selected_window)->buffer)) 5647 if (! NILP (XWINDOW (selected_window)->buffer))
@@ -5787,10 +5791,11 @@ the return value is nil. Otherwise the value is t. */)
5787 FRAME_ROOT_WINDOW (f) = data->root_window; 5791 FRAME_ROOT_WINDOW (f) = data->root_window;
5788 /* Prevent "swapping out point" in the old selected window 5792 /* Prevent "swapping out point" in the old selected window
5789 using the buffer that has been restored into it. 5793 using the buffer that has been restored into it.
5790 Use the point value from the beginning of this function 5794 We already swapped out point that from that window's old buffer. */
5791 since unshow_buffer (called from delete_all_subwindows)
5792 could have altered it. */
5793 selected_window = Qnil; 5795 selected_window = Qnil;
5796
5797 /* Arrange *not* to restore point in the buffer that was
5798 current when the window configuration was saved. */
5794 if (EQ (XWINDOW (data->current_window)->buffer, new_current_buffer)) 5799 if (EQ (XWINDOW (data->current_window)->buffer, new_current_buffer))
5795 set_marker_restricted (XWINDOW (data->current_window)->pointm, 5800 set_marker_restricted (XWINDOW (data->current_window)->pointm,
5796 make_number (old_point), 5801 make_number (old_point),