aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (Fdisplay_buffer): If pop_up_frames, pass t to Fget_buffer_window.Richard M. Stallman1993-12-231-1/+3
|
* (window_loop, case DELETE_BUFFER_WINDOWS):Richard M. Stallman1993-11-211-1/+2
| | | | Select a new buffer only if w is selected window.
* (Fdelete_windows_on): Fix DEFUN to allow optional second arg to appear.Brian Fox1993-09-221-1/+1
|
* Include <config.h> instead of "config.h".Roland McGrath1993-09-101-1/+1
|
* (enum window_loop): Delete final comma.Richard M. Stallman1993-08-111-1/+1
|
* (Frecenter): Preserve point in the buffer we change it in.Richard M. Stallman1993-08-111-3/+10
|
* * window.c (check_frame_size): Include the menu bar height in theJim Blandy1993-07-301-2/+6
| | | | minimum frame height.
* (Fset_window_buffer): Clear window_end_{pos,valid}.Richard M. Stallman1993-07-261-2/+8
|
* * window.c [not MULTI_FRAME] (Fdelete_windows_on): Set FRAMEJim Blandy1993-07-181-6/+36
| | | | | | | | | | | | argument to Qt, instead of trying to typecheck it. * window.c (Fdelete_windows_on): New optional argument FRAME; if nil, delete windows on all frames. If t, delete windows on the selected frame only. If a frame, delete windows on that frame only. * window.c (Fnext_window, Fprevious_window): Put these docstrings in comments; the strings are too long for some C compilers.
* Don't let the 'B' interactive spec default to buffers viewed inJim Blandy1993-06-171-11/+5
| | | | | | | | | | | any visible frame. * buffer.c (Fother_buffer): Pass Qt as the second argument to Fget_buffer_window. * window.c (window_loop): In GET_BUFFER_WINDOW case, ignore non-visible frames. (Fget_buffer_window): Change doc string to mention that passing Qt for the FRAME argument returns windows on visible frames only. (Qvisible): Removed.
* Don't let the 'B' interactive spec default to buffers viewed inJim Blandy1993-06-171-10/+18
| | | | | | | | | | | | | any visible frame. * buffer.c (Fother_buffer): Pass Qvisible as the second argument to Fget_buffer_window. * window.c (Qvisible): New symbol. (window_loop): In GET_BUFFER_WINDOW case, if frames is Qvisible, ignore non-visible frames. (Fget_buffer_window): Expand doc string to mention that Qvisible is an interesting value for FRAME argument. (syms_of_window): Init and staticpro Qvisible. * lisp.h (Qvisible): New declaration.
* * window.c (check_frame_size): Allow minibuffer-only frames to beJim Blandy1993-06-161-3/+2
| | | | one line high.
* (Fdelete_window): Handle deleting a parent of the selected window.Richard M. Stallman1993-06-141-3/+16
| | | | | (Fdelete_window): Mostly undo last change which made `frame' a FRAME_PTR. Don't initialize `frame' in the declaration.
* (Fdelete_window): Make `frame' a FRAME_PTR and use as such.Richard M. Stallman1993-06-121-3/+3
|
* * window.c (Fprevious_window): Use FRAME_HAS_MINIBUF_P to decideJim Blandy1993-06-121-2/+3
| | | | | if the frame has a minibuffer; FRAME_MINIBUF_WINDOW points to the surrogate on minibufferless frames, not nil.
* * window.c (Fprevious_window): Typo.Jim Blandy1993-06-111-1/+1
|
* (Fscroll_left): Make argument optional.Richard M. Stallman1993-06-101-3/+13
| | | | | | | (Fscroll_right): Ditto. (Fprevious_window): When changing frames, use the new frame's minibuffer if any.
* (Fset_window_configuration): If a window is supposedRichard M. Stallman1993-06-071-6/+3
| | | | | | | to have a buffer, always give it one. (syms_of_window): Always defvar pop-up-frames and pop-up-frame-function.
* (Fset_window_buffer): Set window's force_start to Qnil.Richard M. Stallman1993-05-311-0/+1
|
* (window_loop, case GET_LRU_WINDOW): Get frame's width properly.Richard M. Stallman1993-05-271-1/+1
|
* Updated copyright years.Jim Blandy1993-05-221-1/+1
|
* * window.c (window-dedicated-p): Doc fix.Jim Blandy1993-05-181-1/+1
|
* (Vmouse_event): Var deleted.Richard M. Stallman1993-05-081-18/+0
| | | | (syms_of_window): Don't make it Lisp var.
* (Fdisplay_buffer): Add space to prompt.Richard M. Stallman1993-05-041-1/+1
|
* (Fset-window-buffer): Set horizontal-scrolling on a window to zero whenEric S. Raymond1993-04-251-0/+1
| | | | we connect it to a new buffer.
* (Fselect_window): Use Fhandle_switch_frame.Richard M. Stallman1993-03-211-8/+7
| | | | (Fset_window_configuration): Likewise.
* Rename `live-window-p' to `window-live-p', for consistency withJim Blandy1993-03-161-5/+5
| | | | | | | `frame-live-p'. * window.c (Fwindow_live_p): Renamed from Flive_window_p. * lisp.h (CHECK_LIVE_WINDOW): Change to use Qwindow_live_p. (Qwindow_live_p): Extern declaration renamed fom Qlive_window_p.
* (Fdelete_other_windows): Handle FRAME_MENU_BAR_LINES.Richard M. Stallman1993-03-151-2/+2
|
* Use the term `scroll bar', instead of `scrollbar'.Jim Blandy1993-03-021-9/+9
| | | | | | * alloc.c, frame.c, frame.h, indent.c, keyboard.c, keyboard.h, lisp.h, term.c, termhooks.h, window.c, window.h, xdisp.c, xfns.c, xterm.c, xterm.h: Terminology changed.
* * keyboard.c (recursive_edit_1, command_loop_1): Pass the properJim Blandy1993-02-221-2/+2
| | | | | | | | | number of arguments to unbind_to. * lread.c (Feval_buffer): Same. * window.c (Fscroll_other_window): Same. * window.c (Fset_window_configuration): Pass the proper number of arguments to Fselect_frame.
* * window.c (Fscroll_left, Fscroll_right): Don't forget to applyJim Blandy1993-01-301-2/+2
| | | | XWINDOW to selected_window before passing it to window_internal_width.
* JimB's changes since January 18thJim Blandy1993-01-261-12/+36
|
* (Fdisplay_buffer): Doc fix.Roland McGrath1993-01-191-1/+1
|
* (Fwindow_at): Doc fix.Richard M. Stallman1993-01-141-6/+6
|
* * window.c (window_internal_width): New function, which accountsJim Blandy1993-01-141-42/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | for scrollbars if present. * lisp.h (window_internal_height, window_internal_width): Add extern declarations for these. * dispnew.c (direct_output_for_insert, direct_output_forward_char, buffer_posn_from_coords): Use window_internal_width instead of writing out its definition. * indent.c (compute_motion): Doc fix; mention scrollbars and window_internal_width. (pos_tab_offset, Fvertical_motion): Use window_internal_width instead of writing it out. * window.c (Fpos_visible_in_window_p, Fwindow_width, Fscroll_left, Fscroll_right): Same. * xdisp.c (redisplay, try_window, try_window_id, display_text_line): Same. * termhooks.h (mouse_position_hook): Doc fix. (set_vertical_scrollbar_hook): This doesn't return anything any more, and doesn't take a struct scrollbar * argument any more. (condemn_scrollbars_hook, redeem_scrollbar_hook, judge_scrollbars_hook): Doc fixes. * term.c (mouse_position_hook): Doc fix. (set_vertical_scrollbar_hook): This doesn't return anything any more. Doc fixes. * keyboard.c (kbd_buffer_get_event): Receive the scrollbar's window from *mouse_position_hook and pass it to make_lispy_movement, instead of working with a pointer to a struct scrollbar. (make_lispy_event): We don't need a window_from_scrollbar function anymore; we are given the window directly in *EVENT. Unify the code which generates text-area mouse clicks and scrollbar clicks; use the same code to distinguish clicks from drags on the scrollbar as in the text area. Distinguish clicks from drags by storing a copy of the lispy position list returned as part of the event. (button_down_location): Make this a lisp vector, rather than an array of random structures. (struct mouse_position): Remove this; it's been replaced by a lisp list. (make_lispy_movement): Accept the scrollbar's window as a parameter, rather than the scrollbar itself. If FRAME is zero, assume that the other arguments are garbage. (syms_of_keyboard): No need to staticpro each window of button_down_location now; just initialize and staticpro it. * window.c (window_from_scrollbar): Function deleted; no longer needed. * xdisp.c (redisplay_window): Just pass the window to set_vertical_scrollbar hook; don't pass the scrollbar object too. * xterm.c (XTmouse_position): Don't return a pointer to the scrollbar for scrollbar motion; instead, return the scrollbar's window.
* * keyboard.c (Qscrollbar_movement, Qvertical_scrollbar,Jim Blandy1992-12-241-1/+32
| | | | | | | | | | | | | | | | Qabove_handle, Qhandle, Qbelow_handle): New symbols. (make_lispy_event): New code to build scrollbar clicks. (make_lispy_movement): New code to handle scrollbar movement. (head_table): Include Qscrollbar_movement in the event heads. (syms_of_keyboard): Init and staticpro Qvertical_scrollbar, Qabove_handle, Qhandle, and Qbelow_handle. * keyboard.h (Qscrollbar_movement): Declare this along with the other event types. * lisp.h (Qvertical_scrollbar): Declare this. * window.c (window_from_scrollbar): New function. * window.c (Fset_window_configuration): Don't restore the frame's focus redirection if the target frame is now dead.
* * window.c (Fset_window_configuration): If we're restoring theJim Blandy1992-12-121-135/+147
| | | | | | | | | | | | | configuration of a dead frame, don't bother rebuilding its window tree, restoring its focus redirection, or temporarily resizing it to fit the saved window configuration. If the frame which was selected when the configuration was captured is now dead, don't try to select it. * frame.c (Fdelete_frame): Delete all the windows in the frame's window tree, using delete_all_subwindows. * window.c (delete_all_subwindows): Don't make this static anymore.
* * window.c (Fset_window_configuration): Protect call toJim Blandy1992-11-071-0/+4
| | | | | | Fselect_frame with a #ifdef MULTI_FRAME. [not MULTI_FRAME] (Fcurrent_window_configuration): Don't bother setting the window configuration's selected_frame member.
* * window.c (Fwindow_width, Fset_window_hscroll): Use accessors onJim Blandy1992-10-311-10/+10
| | | | | | | w->width, w->left, w->hscroll, and arguments. (replace_window): Use EQ, not ==. (Fdelete_window): p->top and p->left are not C integers. (Fnext_window, Fprevious_window): Use EQ, not ==.
* * window.c: Try to deal coherently with deleted windows:Jim Blandy1992-10-191-26/+79
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * (Flive_window_p): New function. (Qlive_window_p): New variable, to name it in type errors. (syms_of_window): Defsubr Slive_window_p, init and staticpro Qlive_window_p. (decode_window): Use CHECK_LIVE_WINDOW instead of CHECK_WINDOW; the only thing a user should be able to do to a dead window is check its type. (Fcoordinates_in_window_p, Fnext_window, Fprevious_window, Fdelete_other_windows, Fselect_window, Fsplit_window, Fscroll_other_window): Use CHECK_LIVE_WINDOW instead of CHECK_WINDOW. (Fdelete_window): If WINDOW is a deleted window, do nothing; there's no harm in allowing people to delete deleted windows. Delete all of WINDOW's subwindows, too. (delete_all_subwindows): Set the buffer, vchild, and hchild of the windows we delete all to nil. * window.c (Fwindow_minibuffer_p): Make the WINDOW argument optional, like all the other window-querying functions. * window.c (Fpos_visible_in_window_p): Use decode_window to handle the WINDOW argument, instead of writing out that function's code. * window.c (check_frame_size): Don't define this extern; that doesn't mean anything. * window.c (Fdelete_window): Choose an alternative when we delete any frame's selected window, not just when we delete the selected frame's selected window.
* (window_loop): Pass 2nd arg to Fother_buffer.Richard M. Stallman1992-10-061-2/+2
|
* Doc fix.Richard M. Stallman1992-10-051-1/+1
|
* * window.c (SAVE_WINDOW_DATA_SIZE): Define this using sizeof,Jim Blandy1992-10-031-2/+9
| | | | | | | | instead of just saying it's 7; that way, we won't get screwed if we add members to struct save_window_data. * window.c (Fset_window_configuration): The pointer to the saved window data is called `data', not just `d'.
* * window.c (struct save_window_data): Save the currently selectedJim Blandy1992-10-031-30/+42
| | | | | | | | | | | | | | | | | | frame, too. (Fset_window_configuration): Restore the frame's selected window using Fselect_window, and then restore the selected frame using Fselect_frame. (Fcurrent_window_configuration): Record the currently selected frame. Update docstring to describe the information now recorded. * window.c (Fset_window_configuration): Clean up the way we save and restore the frame's size. * window.c (struct save_window_data): Add a member called focus_frame, to save and restore the screen's focus frame. (Fset_window_configuration): Redirect the frame's focus as indicated in the window configuration. (Fcurrent_window_configuration): Record the frame's current focus.
* * window.c (Fset_window_configuration): Don't select the frameJim Blandy1992-09-301-0/+9
| | | | | | | just because we restored its configuration. * window.c (Fset_window_configuration): Don't forget to set the frame's selected window when we can't call Fselect_window.
* * window.c (delete_all_subwindows): Save the window's buffer inJim Blandy1992-09-281-3/+13
| | | | | | | | | | | | its `height' field; we may need to know the window's old buffer once we have restored it from a window configuration. Fset_window_configuration): When we restore a window, if its `height' field is a buffer, restore its `buffer' field from that. This allows us to leave the window's buffer unchanged if the buffer recorded in the configuration is dead. * window.c (delete_all_subwindows): Removed unused variable named "count".
* * window.c (minibuffer_window): Accept an optional FRAME argument;Jim Blandy1992-09-131-11/+29
| | | | | | | | | | | | | if specified, return the minibuffer used by that frame. * window.c (Fset_window_configuration): Don't signal an error if the frame size saved in the window configuration doesn't match the frame's current size; instead, temporarily resize the frame while installing the window configuration. This is important because using the minibuffer saves and restores the current window configuration, and you don't want to signal an error just because the user resized the frame while using the minibuffer.
* * window.c (coordinates_in_window): Do not assume that allJim Blandy1992-08-291-11/+12
| | | | | | | | | | | | | | | | | | one-line windows are the minibuffer, or that all minibuffers are one line high. Use MINI_WINDOW_P. * window.c (change_window_height): If the size of the window will shrink below the minimum, this code would only try to delete it if it had a parent. Well, even if the window doesn't have a parent, you want Fdelete_window to signal an error, since you're trying to resize one of the undeleteable windows into nothingness. So call Fdelete_window even if the window doesn't have a parent. * window.c (MINSIZE): Add kludge so that the minibuffer is always allowed to shrink to one line in height. (MINSIZE, CURBEG, CURSIZE): Change these so that their argument are always Lisp_Objects, not struct window *'s. (change_window_height): Changed accordingly.
* * window.c (Fset_window_configuration): Removed #if 0'd code whichJim Blandy1992-08-191-17/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | assumes that minibuf_window is on the same frame as the window configuration. Removed special case for windows whose prevs point to themselves. * window.c (Fset_window_configuration): Rename the argument from ARG to CONFIGURATION, so it matches the docstring. The make-docfile program cares. * window.c [MULTI_FRAME] (syms_of_window): Don't staticpro minibuf_window; the frame list will take care of it. * window.c (window_loop): This used to keep track of the first window processed and wait until we came back around to it. Sadly, this doesn't work if that window gets deleted. So instead, use Fprevious_window to find the last window to process, and loop until we've done that one. * window.c [not MULTI_FRAME] (init_window_once): Don't forget to set the `mini_p' flag on the new minibuffer window to t. * window.c (Fwindow_at): Don't check the type of the frame argument. * window.c [not MULTI_FRAME] (window_loop): Set frame to zero, instead of trying to decode it. * window.c (init_window_once): Initialize minibuf_window before FRAME_ROOT_WINDOW, so the latter actually points to something.
* * window.c (window_loop): This used to keep track of the firstJim Blandy1992-08-141-9/+34
| | | | | | | | | | | | | | | | | | | window processed and wait until we came back around to it. Sadly, this doesn't work if that window gets deleted. So instead, use Fprevious_window to find the last window to process, and loop until we've done that one. * window.c [not MULTI_FRAME] (init_window_once): Don't forget to set the `mini_p' flag on the new minibuffer window to t. * window.c (Fwindow_at): Don't check the type of the frame argument. * window.c [not MULTI_FRAME] (window_loop): Set frame to zero, instead of trying to decode it. * window.c (init_window_once): Initialize minibuf_window before FRAME_ROOT_WINDOW, so the latter actually points to something.