diff options
| author | Gerd Moellmann | 1999-08-24 19:24:53 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 1999-08-24 19:24:53 +0000 |
| commit | ce7fae7db42af6978a379d87ab70ef12c2063ab7 (patch) | |
| tree | 2c0f1039d09c6da4dc829c075fbfdabb6f222b55 /src | |
| parent | 16dec16c3a559880dfecb7c27ef1770995870bc1 (diff) | |
| download | emacs-ce7fae7db42af6978a379d87ab70ef12c2063ab7.tar.gz emacs-ce7fae7db42af6978a379d87ab70ef12c2063ab7.zip | |
(Fset_window_point): Reset Vresize_mini_config.
(Fset_window_start): Ditto.
(set_window_buffer): Ditto.
Diffstat (limited to 'src')
| -rw-r--r-- | src/window.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/window.c b/src/window.c index 5cb1f9f5ce6..540112e671d 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -744,6 +744,14 @@ DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0, | |||
| 744 | else | 744 | else |
| 745 | set_marker_restricted (w->pointm, pos, w->buffer); | 745 | set_marker_restricted (w->pointm, pos, w->buffer); |
| 746 | 746 | ||
| 747 | /* If mini-window is resized, make it not restore its saved window | ||
| 748 | configuration. This function being called indicates that the | ||
| 749 | current window configuration is being changed. These changes | ||
| 750 | would be undone if resize_mini_window would restore its saved | ||
| 751 | configuration. */ | ||
| 752 | if (resize_mini_frame == XFRAME (w->frame)) | ||
| 753 | Vresize_mini_config = Qnil; | ||
| 754 | |||
| 747 | return pos; | 755 | return pos; |
| 748 | } | 756 | } |
| 749 | 757 | ||
| @@ -767,6 +775,15 @@ from overriding motion of point in order to display at this exact start.") | |||
| 767 | XSETFASTINT (w->last_overlay_modified, 0); | 775 | XSETFASTINT (w->last_overlay_modified, 0); |
| 768 | if (!EQ (window, selected_window)) | 776 | if (!EQ (window, selected_window)) |
| 769 | windows_or_buffers_changed++; | 777 | windows_or_buffers_changed++; |
| 778 | |||
| 779 | /* If mini-window is resized, make it not restore its saved window | ||
| 780 | configuration. This function being called indicates that the | ||
| 781 | current window configuration is being changed. These changes | ||
| 782 | would be undone if resize_mini_window would restore its saved | ||
| 783 | configuration. */ | ||
| 784 | if (resize_mini_frame == XFRAME (w->frame)) | ||
| 785 | Vresize_mini_config = Qnil; | ||
| 786 | |||
| 770 | return pos; | 787 | return pos; |
| 771 | } | 788 | } |
| 772 | 789 | ||
| @@ -2339,6 +2356,14 @@ set_window_buffer (window, buffer, run_hooks_p) | |||
| 2339 | 2356 | ||
| 2340 | w->buffer = buffer; | 2357 | w->buffer = buffer; |
| 2341 | 2358 | ||
| 2359 | /* If mini-window is resized, make it not restore its saved window | ||
| 2360 | configuration. This function being called indicates that the | ||
| 2361 | current window configuration is being changed. These changes | ||
| 2362 | would be undone if resize_mini_window would restore its saved | ||
| 2363 | configuration. */ | ||
| 2364 | if (resize_mini_frame == XFRAME (w->frame)) | ||
| 2365 | Vresize_mini_config = Qnil; | ||
| 2366 | |||
| 2342 | if (EQ (window, selected_window)) | 2367 | if (EQ (window, selected_window)) |
| 2343 | b->last_selected_window = window; | 2368 | b->last_selected_window = window; |
| 2344 | 2369 | ||