aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c
diff options
context:
space:
mode:
authorGerd Moellmann2000-12-01 19:32:27 +0000
committerGerd Moellmann2000-12-01 19:32:27 +0000
commita1d58e5b6d80e4f724d0c13fffc9dc3a02194e14 (patch)
tree43f366139f6fd2ec1ef42a766a4b75b499e00ab0 /src/window.c
parent6759f8726bff2d5cb332d8af6308d9efcd39ff41 (diff)
downloademacs-a1d58e5b6d80e4f724d0c13fffc9dc3a02194e14.tar.gz
emacs-a1d58e5b6d80e4f724d0c13fffc9dc3a02194e14.zip
(struct saved_window): Add members orig_top and
orig_height. (SAVED_WINDOW_VECTOR_SIZE): Increment to 16. (save_window_save, Fset_window_configuration): Save/restore window's orig_top and orig_height.
Diffstat (limited to 'src/window.c')
-rw-r--r--src/window.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/window.c b/src/window.c
index 0362a7ab46a..676156c221b 100644
--- a/src/window.c
+++ b/src/window.c
@@ -4488,8 +4488,9 @@ struct saved_window
4488 Lisp_Object parent, prev; 4488 Lisp_Object parent, prev;
4489 Lisp_Object start_at_line_beg; 4489 Lisp_Object start_at_line_beg;
4490 Lisp_Object display_table; 4490 Lisp_Object display_table;
4491 Lisp_Object orig_top, orig_height;
4491 }; 4492 };
4492#define SAVED_WINDOW_VECTOR_SIZE 14 /* Arg to Fmake_vector */ 4493#define SAVED_WINDOW_VECTOR_SIZE 16 /* Arg to Fmake_vector */
4493 4494
4494#define SAVED_WINDOW_N(swv,n) \ 4495#define SAVED_WINDOW_N(swv,n) \
4495 ((struct saved_window *) (XVECTOR ((swv)->contents[(n)]))) 4496 ((struct saved_window *) (XVECTOR ((swv)->contents[(n)])))
@@ -4681,6 +4682,8 @@ the return value is nil. Otherwise the value is t.")
4681 w->height = p->height; 4682 w->height = p->height;
4682 w->hscroll = p->hscroll; 4683 w->hscroll = p->hscroll;
4683 w->display_table = p->display_table; 4684 w->display_table = p->display_table;
4685 w->orig_top = p->orig_top;
4686 w->orig_height = p->orig_height;
4684 XSETFASTINT (w->last_modified, 0); 4687 XSETFASTINT (w->last_modified, 0);
4685 XSETFASTINT (w->last_overlay_modified, 0); 4688 XSETFASTINT (w->last_overlay_modified, 0);
4686 4689
@@ -4946,6 +4949,8 @@ save_window_save (window, vector, i)
4946 p->height = w->height; 4949 p->height = w->height;
4947 p->hscroll = w->hscroll; 4950 p->hscroll = w->hscroll;
4948 p->display_table = w->display_table; 4951 p->display_table = w->display_table;
4952 p->orig_top = w->orig_top;
4953 p->orig_height = w->orig_height;
4949 if (!NILP (w->buffer)) 4954 if (!NILP (w->buffer))
4950 { 4955 {
4951 /* Save w's value of point in the window configuration. 4956 /* Save w's value of point in the window configuration.
@@ -5043,8 +5048,7 @@ redirection (see `redirect-frame-focus').")
5043 for (i = 0; i < n_windows; i++) 5048 for (i = 0; i < n_windows; i++)
5044 XVECTOR (tem)->contents[i] 5049 XVECTOR (tem)->contents[i]
5045 = Fmake_vector (make_number (SAVED_WINDOW_VECTOR_SIZE), Qnil); 5050 = Fmake_vector (make_number (SAVED_WINDOW_VECTOR_SIZE), Qnil);
5046 save_window_save (FRAME_ROOT_WINDOW (f), 5051 save_window_save (FRAME_ROOT_WINDOW (f), XVECTOR (tem), 0);
5047 XVECTOR (tem), 0);
5048 XSETWINDOW_CONFIGURATION (tem, data); 5052 XSETWINDOW_CONFIGURATION (tem, data);
5049 return (tem); 5053 return (tem);
5050} 5054}