Commit graph

276 commits

Author SHA1 Message Date
Richard M. Stallman cb8419b5e6 (window_scroll): Set opoint_byte properly. 1998-01-19 19:24:04 +00:00
Richard M. Stallman 0057b00a17 (Fspecial_display_p): Return the right value
when special-display-regexps specifies frame parameters.
1998-01-16 19:16:02 +00:00
Richard M. Stallman 596ae0cfb6 (Fselect_window): Don't set OW->pointm if OW->buffer is nil.
(Fset_window_configuration): Set old selected window's pointm.
1998-01-09 23:18:35 +00:00
Richard M. Stallman b73ea88edf (unshow_buffer): Set PT with TEMP_SET_PT_BOTH.
(Fset_window_buffer): Use set_marker_both.
(Fselect_window, Fscroll_other_window, save_window_save): Likewise.
(Fset_window_configuration): Pass p->mark itself to Fset_marker
and set_marker_restricted_both.
(temp_output_buffer_show): Use set_marker_restricted_both.
(window_scroll): Save and restore both kinds of pointers.

(Fdelete_other_windows): Rely on vmotion to give bytepos.
Use set_marker_both.  Use byte positions.
(Frecenter): Likewise.
(Fmove_to_window_line): Use set_marker_both and Fgoto_char.
1998-01-01 02:07:14 +00:00
Andreas Schwab 5e14b1fc03 Add prototypes.
(delete_window): Fix return type.
(set_window_height): Likewise.
(set_window_width): Likewise.
(change_window_height): Likewise.
1997-11-25 14:06:38 +00:00
Karl Heuer e3e041eb83 (syms_of_window): Doc fix. 1997-10-19 19:56:59 +00:00
Karl Heuer db7f721d26 (replace_buffer_in_all_windows):
Pass 1 as MINI to window_loop.
1997-10-16 00:07:02 +00:00
Karl Heuer 335406fc22 (window_scroll): When scrolling forward and point is
inside the scroll margin put point at bottom of it, not at window
start.
1997-10-15 22:18:37 +00:00
Richard M. Stallman 4caa74487c (syms_of_window): Doc fix. 1997-09-02 00:15:04 +00:00
Richard M. Stallman c6b530ed93 (set_window_height): Allow all heights > 0 for minibuffer windows.
(change_window_height): Fix one-off comparing DELTA with MAXIMUM.
1997-07-21 20:00:36 +00:00
Richard M. Stallman 046fd69c84 Fix copyright year. 1997-07-12 06:37:59 +00:00
Richard M. Stallman 34c0dab2b7 (Fcoordinates_in_window_p): Convert Fcons arguments to Lisp_Integer.
(save_window_save): Convert Fset_marker argument to Lisp_Integer.
1997-07-12 06:37:04 +00:00
Richard M. Stallman d2b352346d Include blockinput.h.
(Fset_window_configuration): Block input around frobbing the frame.
Preseve point in the current buffer if we do not switch to a different one.
1997-07-07 05:32:01 +00:00
Richard M. Stallman bccd3dd175 (temp_output_buffer_show): Copy default-directory from current buffer. 1997-06-29 00:35:28 +00:00
Richard M. Stallman 089e71e47a (Fsplit_window): Ignore FRAME_NO_SPLIT_P here.
(inhibit_frame_unsplittable): Variable deleted.
(syms_of_window): Don't set up Lisp variable.
1997-05-31 05:50:22 +00:00
Richard M. Stallman 91a78190f1 (syms_of_window): Initialize inhibit_frame_unsplittable. 1997-05-27 02:46:14 +00:00
Simon Marshall eddd51c280 frame-override-unsplittable/inhibit-frame-unsplittable name change. 1997-05-26 08:17:39 +00:00
Richard M. Stallman 62a7e6ebb4 (Fdisplay_buffer): Use B not b for interactive argument. 1997-05-26 02:41:42 +00:00
Richard M. Stallman 396a830c5e (Fset_window_configuration): Set last_selected_window
in the new selected window's new buffer.
1997-05-06 03:29:39 +00:00
Richard M. Stallman 48d9379dfe (Fdisplay_buffer): If we give up and try other frames,
look again for a window in those frames already showing BUFFER.
1997-05-03 06:12:28 +00:00
Richard M. Stallman 7d601aaaf6 (frame_allow_splitting): New variable.
(Fsplit_window): Ignore `unsplittable' if frame_allow_splitting.
(syms_of_window): Set up Lisp var.
1997-04-23 00:30:43 +00:00
Karl Heuer 296b535c36 (delete_window): Don't return value from void function.
(Fset_window_buffer, Fdisplay_buffer): Don't use Lisp_Object as integer.
1997-04-10 21:26:07 +00:00
Richard M. Stallman 543f5fb17f (Qwindow_configuration_change_hook): New variable.
(Vwindow_configuration_change_hook): New variable.
(syms_of_window): Initialize; set up Lisp var.
(delete_window): New subroutine, from Fdelete_window.
Most callers changed.
(Fdelete_window): Call Vwindow_configuration_change_functions.
(Fset_window_buffer, Fenlarge_window, Fshrink_window):
Call the Vwindow_configuration_change_functions.
(Fset_window_configuration): Likewise.
1997-04-02 03:44:32 +00:00
Richard M. Stallman 850ebd4fab (Fset_window_buffer): Increment display_count if it is an integer. 1997-03-22 04:18:04 +00:00
Karl Heuer dc91fb5dbd (change_window_height): Handle shrink as well as enlarge. 1997-03-14 17:22:11 +00:00
Karl Heuer 5a255667cc (Fpos_visible_in_window_p): Bug fix. Specify big
negative number for the argument TOHPOS of compute_motion().
We don't need to calculate to (HPOS==0), but can stop immediately
when VPOS pasts HEIGHT.
1997-02-20 06:42:13 +00:00
Richard M. Stallman db98a733f2 (change_window_height): Take size from multiple siblings,
nearest ones first, when that can be done without deleting any of them.
1997-02-08 18:34:53 +00:00
Richard M. Stallman 9317a85d0f (scroll_preserve_screen_position): New variable.
(keys_of_window): Set up Lisp var.
(window_scroll): If scroll_preserve_screen_position is 0,
behave the old way (advancing point the minimum distance).
1997-02-08 15:50:17 +00:00
Richard M. Stallman 101d160585 (window_scroll): Preserve vpos of point
if we cannot preserve the actual position of it.
Make it static.  New arg WHOLE; callers changed.
1996-12-26 21:01:10 +00:00
Richard M. Stallman 345d45b2c0 (window_scroll): Don't set w->start or w->force_start if signaling an error. 1996-12-10 23:26:48 +00:00
Geoff Voelker 0f7d64d245 (special-display-p, same-window-p): Add missing
newlines and backslashes in help strings.
1996-11-19 04:46:30 +00:00
Richard M. Stallman 0c7da84e74 (window_scroll): Handle scroll_margin
by putting point at a place that won't force recentering.
1996-11-11 00:34:50 +00:00
Richard M. Stallman 4d047f502e (Fdelete_other_windows): Set optional_new_start instead of force_start. 1996-11-10 00:26:03 +00:00
Richard M. Stallman 5c204627aa (window_loop, case GET_BUFFER_WINDOW):
Don't find any minibuffer window
except the one that is currently in use.
1996-11-06 07:38:41 +00:00
Erik Naggum a0d76c279e Reorganize function definitions so etags finds them. 1996-10-31 13:43:37 +00:00
Erik Naggum 6777ae524e (special-display-p): Doc fix. 1996-10-06 16:55:03 +00:00
Erik Naggum 4628f7a447 (Fspecial_display_p, Fsame_window_p): New functions.
(Fdisplay_buffer): Use them, instead of doing the work here.
(syms_of_window): Defsubr them.
1996-10-06 16:17:41 +00:00
Richard M. Stallman 524580a4ac (syms_of_window): Doc fixes. 1996-09-26 03:43:31 +00:00
Richard M. Stallman 111e5992df (Fwindow_edges): Use new WINDOW_RIGHT_EDGE macro.
(coordinates_in_window): Use WINDOW_LEFT_MARGIN, WINDOW_RIGHT_MARGIN,
and WINDOW_RIGHT_EDGE.  Adjust for left-side scroll bar margin.
(window_loop, Fdisplay_buffer): Use new WINDOW_FULL_WIDTH_P macro.
(window_internal_width): Window width now always includes the
scroll bar, if any.  Use WINDOW_RIGHTMOST_P and WINDOW_FULL_WIDTH_P.
1996-09-23 04:36:43 +00:00
Richard M. Stallman 3cd2152366 (Fset_window_start): Clear last_overlay_modified field.
(set_window_height, set_window_width, Fset_window_buffer)
(change_window_height, window_scroll, Fset_window_configuration):
Clear last_overlay_modified field.
(Fpos_visible_in_window_p): Test last_overlay_modified field.
1996-09-16 06:29:40 +00:00
Richard M. Stallman 86e4843672 (unshow_buffer): Clear last_selected_window slot, maybe.
(Fset_window_buffer): Set last_selected_window slot.
(Fselect_window): Set last_selected_window slot.
(delete_all_subwindows): Maybe call unshow_buffer.
1996-09-02 05:13:11 +00:00
Karl Heuer e3678b6433 Removed support for !MULTI_FRAME. 1996-09-01 21:04:32 +00:00
Karl Heuer 6ec8bbd20d Change all references from point to PT. 1996-09-01 19:15:05 +00:00
Erik Naggum fb42d95500 (Fsplit_window): Fix previous change. 1996-08-24 12:12:08 +00:00
Richard M. Stallman a59fed7e23 (Fsplit_window): Treat width just like height;
no special handling for scroll bars.
1996-08-23 06:20:58 +00:00
Karl Heuer f5ccc0ccc9 (struct save_window_data, struct saved_window): First
placeholder member is EMACS_INT, not int.
1996-07-16 06:17:37 +00:00
Richard M. Stallman e4e5971709 Whitespace and #if 0 code changes. 1996-06-10 21:01:22 +00:00
Richard M. Stallman 6ba86f3775 (Fset_window_configuration) [HAVE_WINDOW_SYSTEM]: Call
`x_set_menu_bar_lines' on MSDOS as well.
1996-06-10 21:00:11 +00:00
Richard M. Stallman 5abcf43247 (Fdisplay_buffer): Doc fix. 1996-05-30 23:09:44 +00:00
Roland McGrath 37962e6044 (display_buffer_1): Fix typo in last change. 1996-02-10 07:33:29 +00:00
Richard M. Stallman 60117126b5 (display_buffer_1): Raise the frame if already visible. 1996-02-10 07:13:00 +00:00
Richard M. Stallman 5b03d3c0a1 (Fset_window_buffer): Set buffer temporarily around running
the window-scroll-functions.
(Fset_window_buffer_unwind): New function.
(window_initialized): New variable.
(init_window_once): Set it.
1996-01-31 05:11:48 +00:00
Karl Heuer 27abb84f2a (replace_buffer_in_all_windows): Don't change selected
window, even temporarily; that has undesirable side effects.
1996-01-17 19:03:02 +00:00
Erik Naggum 3b7ad313e0 Update FSF's address in the preamble. 1996-01-15 09:18:04 +00:00
Richard M. Stallman 441a127ec2 (display_buffer_1): Don't deiconify the selected frame. 1996-01-15 05:05:20 +00:00
Erik Naggum b4d57b9deb (window_scroll): Fix typo in comment. 1996-01-12 23:39:57 +00:00
Richard M. Stallman dba06815c9 (Fset_window_buffer): Call the window-scroll-functions. 1996-01-11 17:16:12 +00:00
Erik Naggum 413430c5d8 (Fwindowp, Fwindow_live_p, Fother_window, Fenlarge_window, Fshrink_window,
Fscroll_up, Fscroll_down, Fscroll_other_window, Fscroll_left,
Fscroll_right, Frecenter, Fwindow_configuration_p): Harmonize arguments
with documentation.
1996-01-09 00:34:12 +00:00
Richard M. Stallman 7b9af7a02a (replace_buffer_in_all_windows): Only re-select old
window if it is still live.
1996-01-05 02:42:32 +00:00
Karl Heuer 5c4d25a655 (Fprevious_window, Fwindow_configuration_p): Doc fix. 1996-01-04 23:02:18 +00:00
Richard M. Stallman ff58478bbb (replace_buffer_in_all_windows): New function.
Like Freplace_buffer_in_windows but really does all frames.
1996-01-02 08:55:11 +00:00
Karl Heuer 77ae0fe324 (Fsplit_window): Rename size to size_int and chsize to size. 1995-12-21 17:14:53 +00:00
Karl Heuer c08076084e (Fsplit_window): Account for scroll bar width. 1995-12-13 03:29:28 +00:00
Richard M. Stallman d07f802a2c (Fdisplay_buffer): Always deiconify the window's frame.
(display_buffer_1): New subroutine.
1995-11-21 20:12:52 +00:00
Richard M. Stallman 76854cf2c2 (Fset_window_redisplay_end_trigger): Doc fix. 1995-11-18 16:00:22 +00:00
Richard M. Stallman 190eb26396 (Fwindow_redisplay_end_trigger): New function.
(Fset_window_redisplay_end_trigger): Likewise.
(syms_of_window): defsubr them.
1995-11-10 16:01:46 +00:00
Geoff Voelker 1f8539403b [HAVE_NTGUI] (Fset_window_configuration): Set menu bar lines.
Use HAVE_WINDOW_SYSTEM instead of testing for specific window systems.
1995-11-07 07:27:45 +00:00
Richard M. Stallman 80622eecc9 (Fdelete_other_windows): Set w->force_start. 1995-10-12 18:00:00 +00:00
Richard M. Stallman 319315f1c5 (window_display_table): Use DISP_TABLE_P. Return type
struct Lisp_Char_Table * since display tables are now char-tables.
1995-10-11 17:15:10 +00:00
Richard M. Stallman ff5e95b7c4 (Fset_window_hscroll): Don't reject args > SHORTBITS. 1995-10-05 23:44:20 +00:00
Richard M. Stallman 0a1f771ac2 (window_scroll): Always set force_start. 1995-10-03 09:09:30 +00:00
Richard M. Stallman eeb82665b2 (save_window_save): Pass the new arg to Fcopy_marker. 1995-09-01 02:01:29 +00:00
Richard M. Stallman fbdc1545c3 (Fprevious_window, Fnext_window): When minibuf = nil,
accept only the minibuffer window that is currently active.
1995-07-23 07:11:26 +00:00
Richard M. Stallman 0fea6c408f (Fwindow_start): Doc fix. 1995-07-18 22:12:31 +00:00
Richard M. Stallman 1479ef51ab (Fset_window_hscroll): Set clip_changed in the buffer.
(temp_output_buffer_show): Likewise.
1995-07-07 13:34:49 +00:00
Richard M. Stallman 3d22c388c0 (Fsplit_window): Nicer error if split size is too small. 1995-06-26 17:04:47 +00:00
Richard M. Stallman 9a7c6fc365 (Fset_window_configuration): Use do_switch_frame directly. 1995-06-16 23:28:57 +00:00
Karl Heuer 4efffd8098 (Fpos_visible_in_window_p): New arg to compute_motion. 1995-05-18 22:27:59 +00:00
Karl Heuer 6e55cbc223 (Frecenter): Fix args to vmotion (overlooked in May 13 change). 1995-05-16 02:56:20 +00:00
Karl Heuer 0383eb57df (Fdelete_other_windows): Fix args to vmotion. 1995-05-13 01:43:30 +00:00
Karl Heuer bc6c324f8f [MULTI_FRAME] (init_window_once): Set Vterminal_frame
to selected_frame.
1995-05-09 04:46:18 +00:00
Richard M. Stallman cac66e4f1d (Fdisplay_buffer): Initialize other, upper, lower. 1995-05-08 04:59:49 +00:00
Richard M. Stallman f52cca0333 (syms_of_window): Doc fix.
(temp_output_buffer_show): If we use Vtemp_buffer_show_function,
do nothing else.
1995-05-07 00:39:49 +00:00
Karl Heuer 73dc519872 (Fdisplay_buffer): Search the proper frame when the
current frame is minibuffer-only.
1995-04-13 18:06:46 +00:00
Richard M. Stallman 2cccc82349 (temp_output_buffer_show): Select the chosen window
temporarily for running temp-buffer-show-hook.
(syms_of_window): Fix typo.
1995-04-13 02:03:59 +00:00
Richard M. Stallman 1f4c5d09ee (Fnext_window, Fprevious_window): If all_frames is a frame and window
is not on that frame, return the first window on that frame.
1995-04-08 20:15:04 +00:00
Karl Heuer f8c25f1b67 Update copyright. 1995-04-07 02:21:52 +00:00
Karl Heuer 2e5ce1a042 (syms_of_window): Fix missing \n\. 1995-03-22 17:44:18 +00:00
Richard M. Stallman c63dc4a2d8 (Fdisplay_buffer): Fix prev change--return selected window. 1995-03-14 18:39:58 +00:00
Richard M. Stallman 855d862724 (Vsame_window_buffer_names, Vsame_window_regexps): New vars.
(syms_of_window): Set up Lisp vars.
(Fdisplay_buffer): Use those vars--if requested, use current window.
1995-03-11 04:40:18 +00:00
Richard M. Stallman 3548e13846 (window_loop): Handle special display buffer frames
for DELETE_BUFFER_WINDOWS as for UNSHOW_BUFFER.

(syms_of_window): Doc fixes.
1995-02-23 09:04:34 +00:00
Richard M. Stallman 29aeee7368 (Fdelete_window, set_window_height, set_window_width)
(Fsplit_window, Fset_window_configuration): Set
FRAME_WINDOW_SIZES_CHANGED to 1 in the frame being changed.
1995-02-05 08:52:26 +00:00
Richard M. Stallman a58ec57dd2 (Qtemp_buffer_show_hook): New hook.
(syms_of_window): Init and staticpro it.
(temp_output_buffer_show): Run the hook.
1995-01-18 22:13:34 +00:00
Karl Heuer 2f787aa33c (Fscroll_other_window): On small windows, scroll by 1 line. 1995-01-10 00:06:50 +00:00
Richard M. Stallman c6367666ae (temp_output_buffer_show): Use BUF_SAVE_MODIFF. 1995-01-02 06:30:49 +00:00
Richard M. Stallman 869e65bba2 (Fdisplay_buffer): Use `b' to read existing buffer name. 1994-11-22 04:50:20 +00:00
Karl Heuer da2792e0e8 (Fcurrent_window_configuration): Use allocate_vectorlike and VECSIZE.
(SAVE_WINDOW_DATA_SIZE): Macro deleted.
1994-11-16 06:17:13 +00:00
Karl Heuer cffec418d6 (make_dummy_parent, make_window): Use allocate_vectorlike and VECSIZE. 1994-11-16 05:16:42 +00:00
Karl Heuer cec4abce27 Fix indentation. 1994-11-16 03:11:59 +00:00
Karl Heuer 99da5b4efd (syms_of_window): Fix missing \n\'s. 1994-10-26 06:22:14 +00:00