Preliminary changes for the new window resizing code.
commitc2dde43dc7f1d67942b807148ca042aff0393c27
authorMartin Rudalics <rudalics@gmx.at>
Tue, 22 Jun 2010 13:58:35 +0000 (22 15:58 +0200)
committerMartin Rudalics <rudalics@gmx.at>
Tue, 22 Jun 2010 13:58:35 +0000 (22 15:58 +0200)
treee0b3ebdba30795f1c4ba35fbcb99f57b376640bb
parentdbd6da78650014d997dceeecaa4392fc79f6ca8b
Preliminary changes for the new window resizing code.

* frame.c (Fother_visible_frames_p): New function.
(Fwindow_frame, Fframe_root_window, Fframe_first_window)
(Fframe_selected_window, Fset_frame_selected_window): Move to
window.c.
(Factive_minibuffer_window): Move to minibuf.c.
(delete_frame): If we are not supposed to run hooks, don't run
them.  For tooltip frames neither run hooks nor update the
modeline.

* minibuf.c (Factive_minibuffer_window): Move here from frame.c.

* window.c (decode_window, decode_any_window, make_window)
(Fselected_window, Fpos_visible_in_window_p)
(select_window_norecord, select_frame_norecord): Move to more
appropriate positions within window.c.
(Fwindow_frame, Fframe_root_window, Fframe_first_window)
(Fframe_selected_window, Fset_frame_selected_window): Move here
from frame.c.
(Fwindow_parent, Fwindow_vchild, Fwindow_hchild, Fwindow_next)
(Fwindow_prev, Fwindow_use_time, window_show_other_buffer)
(Fwindow_list_1, Frun_window_configuration_change_hook): New
functions.
(Fwindow_live_p, Fselected_window, Fminibuffer_window)
(Fwindow_minibuffer_p, Fwindow_hscroll, Fwindow_point)
(Fwindow_start, Fwindow_end, Fset_window_point)
(Fset_window_dedicated_p, Fnext_window, Fprevious_window)
(Fset_window_buffer): Rewrite doc-strings.
(Fwindow_buffer): Return nil for internal window.
(Fwindow_parameters, Fwindow_parameter, Fset_window_parameter):
Internal windows may have parameters too.
(saved_window, save_window_save): Save window parameters too.
(Fset_window_configuration): Restore window parameters.  Delete
restored window if it is dedicated and its buffer is dead.  If
window cannot be deleted, reset its dedicated status.
(Fselect_window): Don't return prematurely if selected window did
not change.  Fixes the fix from 2010-06-07.
(window_loop): Use window_show_other_buffer to make sure that the
current buffer is not changed if the window gets selected when a
buffer is killed. (Bug#4654)
src/ChangeLog
src/frame.c
src/minibuf.c
src/window.c