aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (displayed_window_lines): Change buffers if necessary.Gerd Moellmann2000-10-301-2/+18
| | | | Fix computation of displayed lines.
* (Fpos_visible_in_window_p):Miles Bader2000-10-271-9/+11
| | | | Make POS default to WINDOW's point, not the current buffer's point.
* (size_window): Compute size difference from sum of oldGerd Moellmann2000-10-261-10/+14
| | | | child window sizes instead of from parent's size.
* (pos_fully_visible_p): Removed.Gerd Moellmann2000-10-251-62/+18
| | | | | (Fpos_visible_in_window_p): Use pos_visible_p to determine if position is visible and/or fully visible.
* (size_window): Prevent setting window's width orGerd Moellmann2000-10-241-5/+6
| | | | height to a negative value (esp. with XSETFASTINT).
* (Fdisplay_buffer): Fix doc.Kenichi Handa2000-10-241-1/+1
|
* (window_scroll_pixel_based, window_scroll_line_based):Miles Bader2000-10-231-2/+2
| | | | | Pass nil for FULLY argument to Fpos_visible_in_window_p to maintain old behavior.
* Initial check-in: changes for building Emacs under Mac OS.Andrew Choi2000-10-221-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2000-10-23 Andrew Choi <akochoi@i-cable.com> * dispextern.h [macintosh]: Include macgui.h instead of macterm.h. * dispnew.c [macintosh]: Include macterm.h. (init_display) [macintosh]: initialization for window system. * emacs.c (main) [macintosh]: Call syms_of_textprop, syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm, syms_of_search, x_term_init, and init_keyboard before calling init_window_once. Also, call syms_of_xmenu. * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of default fontset to Monaco. * frame.c [macintosh]: Include macterm.h. Remove declarations of NewMacWindow and DisposeMacWindow. (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame instead of calling NewMacWindow and setting fields of f->output_data.mac directly. Call init_frame_faces. (Fdelete_frame) [macintosh]: Remove unused code. (Fmodify_frame_parameters) [macintosh]: Call x_set_frame_parameters instead of mac_set_frame_parameters. * frame.h [macintosh]: Define menu_bar_lines field in struct frame. Define FRAME_EXTERNAL_MENU_BAR macro. * keyboard.c [macintosh]: Include macterm.h. (kbd_buffer_get_event) [macintosh]: Generate delete_window_event and menu_bar_activate_event type events as for X and NT. (make_lispy_event) [macintosh]: Construct lisp events of type MENU_BAR_EVENT as for X and NT. * sysdep.c [macintosh]: Remove declaration for sys_signal. Include stdlib.h. Remove definition of Vx_bitmap_file_path. (sys_subshell) [macintosh]: Remove definition entirely. (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and Vwindow_system_version here. Remove initialization of Vx_bitmap_file_path. (read_input_waiting): Correct the number of parameters passed to read_socket_hook. Move all Macintosh functions to mac/mac.c. * term.c [macintosh]: Include macterm.h. * window.c [macintosh]: Include macterm.h. * xdisp.c [macintosh]: Include macterm.h. Declare set_frame_menubar and pending_menu_activation. (echo_area_display) [macintosh]: Do not return if terminal frame is the selected frame. (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f). Allow only the selected frame to set menu bar. (redisplay_window) [macintosh]: Obtain menu bar to redisplay by calling FRAME_EXTERNAL_MENU_BAR (f). (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f). * xfaces.c [macintosh]: Include macterm.h. Define x_display_info and check_x. Declare XCreateGC. Define x_create_gc and x_free_gc. Initialize font_sort_order. (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT, but call x_list_fonts instead of w32_list_fonts. (Finternal_face_x_get_resource) [macintosh]: Do not call display_x_get_resource. (prepare_face_for_display) [macintosh]: Set xgcv.font. (realize_x_face) [macintosh]: Load the font if it is specified in ATTRS. (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt. * cus-edit.el (custom-button-face): Use 3D look for mac. (custom-button-pressed-face): Likewise. * faces.el (set-face-attributes-from-resources): Handle mac frames in the same way as x and w32 frames. (face-valid-attribute-values): Likewise. (read-face-attribute): Likewise. (defined-colors): Likewise. (color-defined-p): Likewise. (color-values): Likewise. (display-grayscale-p): Likewise. (face-set-after-frame-default): Likewise. (mode-line): Same default face as for x and w32. (tool-bar): Likewise. * frame.el: Remove call to frame-notice-user-settings at end of the file. * info.el (Info-fontify-node): make underlines invisible for mac as for x, pc, and w32 frame types. * term/mac-win.el: New file.
* (pos_fully_visible_in_window_p):Miles Bader2000-10-211-9/+64
| | | | | | | | | New function. (Fpos_visible_in_window_p): Add FULLY argument. Use pos_fully_visible_in_window_p. (window_scroll_pixel_based, window_scroll_line_based): Update calls to Fpos_visible_in_window_p.
* (coordinates_in_window): Fix detection of vertical lineEli Zaretskii2000-10-121-2/+5
| | | | on character terminals.
* (freeze_window_starts): Construct last argument forGerd Moellmann2000-09-261-1/+1
| | | | foreach_window differently.
* Avoid some more compiler warnings.Gerd Moellmann2000-09-211-0/+5
|
* (window_loop) <GET_LARGEST_WINDOW>: Fix bug makingGerd Moellmann2000-09-051-9/+9
| | | | get-largest-window always return nil.
* Include keyboard.h before frame.h.Andrew Innes2000-08-221-1/+1
|
* Fix embedded comment.Dave Love2000-08-141-2/+2
| | | | (syms_of_window): Fix doc string.
* (Fwindow_end): Rewritten to not use Fvertical_motion,Gerd Moellmann2000-08-101-13/+13
| | | | because that function doesn't cope with variable-height lines.
* (display_buffer_reuse_frames): New variable.Gerd Moellmann2000-08-021-6/+18
| | | | | | | (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse frames displaying BUFFER. (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
* (window_display_table): Cleaned up.Gerd Moellmann2000-07-251-13/+14
|
* (foreach_window_1): Fix typo reversing an if-condition.Gerd Moellmann2000-07-211-2/+2
|
* (foreach_window): Instead of a fake variable argumentGerd Moellmann2000-07-211-41/+50
| | | | | | | | | | | | list, take one USER_DATA argument. (foreach_window_1): Likewise, and call callback functions with two args, the window and USER_DATA. (struct check_window_data): New struct. (check_window_containing): Use it. (window_from_coordinates): Set up a struct check_window_data for foreach_window. (add_window_to_list, freeze_window_start): Change parameters according to new calling convention.
* (Fwindow_list): Declare arg `window'.Dave Love2000-07-181-1/+1
|
* (window_loop): Add missing gcpro1 local variable.Gerd Moellmann2000-07-061-0/+1
|
* (Fwindow_list): Reverse list at the end.Gerd Moellmann2000-07-061-144/+132
| | | | | | (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil means allow windows on OWINDOW's frame, only. (window_loop): Simplified; use Fwindow_list.
* (delete_all_subwindows): Reset Vwindow_list.Gerd Moellmann2000-07-051-0/+2
|
* (add_window_to_list): Add parameter LIST.Gerd Moellmann2000-07-051-7/+20
| | | | | | | (window_list): Order list so that, for each frame, windows are in canonical order, and so that frames appear in the list in the order given by Vframe_list. (next_window): Reverse the handling of NEXT_P.
* (Vwindow_list): New variable.Gerd Moellmann2000-07-041-289/+352
| | | | | | | | | | | | | | | | | | | (make_window, delete_window): Set Vwindow_list to nil. (check_window_containing): New function. (window_from_coordinates): Rewritten. (add_window_to_list, window_list, candidate_window_p) (decode_next_window_args, next_window): New functions. (Fnext_window, Fprevious_window): Rewritten in terms of next_window. (Fwindow_list): New function. (Fother_window): Cleaned up. (foreach_window): Add a longer "variable argument list". Let callback function return 0 to indicate that cycling over windows should stop. (foreach_window_1): Likewise. (freeze_window_start): Return int. (init_window): New function. (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
* (displayed_window_lines): Take empty lines atGerd Moellmann2000-06-071-1/+12
| | | | the bottom of a window into account.
* (displayed_window_lines): New function.Gerd Moellmann2000-06-071-14/+34
| | | | | (Fmove_to_window_line): Use displayed_window_lines to determine the number of lines to move, instead of using the window's height.
* (coordinates_in_window): Subtract 1 when computing right_x.Eli Zaretskii2000-05-151-2/+4
|
* (freeze_window_start): Check that minibuffer scroll window isn't nil beforeKen Raeburn2000-04-261-0/+1
| | | | extracting the window structure pointer from it.
* (compare_window_configurations): Signal an errorGerd Moellmann2000-04-041-0/+5
| | | | if parameters C1 or C2 aren't window configurations.
* * window.c (CURBEG, CURSIZE): Don't overload lisp object lvaluesKen Raeburn2000-04-011-13/+14
| | | | | | | | | with int lvalues via casts; instead, just yield lisp object lvalues. (enlarge_window): Variable sizep now points to Lisp_Object. Use proper accessor macros. (shrink_window_lowest_first): w->top is Lisp_Object; use XINT. (grow_mini_window): Fix typo getting int value of root->height.
* * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW, XSUBR, XBUFFER):Ken Raeburn2000-03-301-3/+6
| | | | | | | | | | | | | | | | | | Verify correct object type before returning pointer, using eassert. * frame.h (XFRAME): Likewise. * buffer.c (Frename_buffer, Fset_buffer_multibyte, swap_out_buffer_local_variables, Fmove_overlay): Don't apply XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type. * data.c (set_internal): Likewise. * dispextern.h (WINDOW_WANTS_MODELINE_P, WINDOW_WANTS_HEADER_LINE_P): Likewise. * fileio.c (auto_save_1): Likewise. * insdel.c (check_markers): Likewise. * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise. * undo.c (record_insert): Likewise. * vmsproc.c (child_sig): Likewise. * window.c (unshow_buffer, window_loop): Likewise. * xterm.c (x_erase_phys_cursor): Likewise.
* (Fsave_window_excursion): Doc fix.Gerd Moellmann2000-03-121-0/+1
|
* (coordinates_in_window): UseGerd Moellmann2000-03-051-2/+2
| | | | | FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of FRAME_INTERNAL_BORDER_WIDTH.
* [MSDOS]: Include msdos.h (for the definition of FRAME_INTERNAL_BORDER_WIDTH).Eli Zaretskii2000-03-021-0/+3
|
* (select_window_1): If selected_window is nil,Gerd Moellmann2000-02-251-9/+28
| | | | | | | | don't "swap out" the buffer's point. (Fset_window_configuration): Set selected_window to nil before calling Fselect_window. (unshow_buffer): Don't set point in buffer from window's point if another more recently selected window also shows the buffer.
* (coordinates_in_window): Take frame's internal border widthGerd Moellmann2000-02-251-2/+4
| | | | into account.
* (Fset_window_buffer): Set WINDOW to the windowGerd Moellmann2000-02-251-0/+1
| | | | after decoding.
* (Fsave_window_excursion): Doc fix.Gerd Moellmann2000-02-151-1/+0
|
* [WINDOWSNT]: Include w32term.h.Andrew Innes2000-02-061-0/+3
|
* (Fset_window_margins): Don't make interactive. Doc fix.Dave Love2000-02-011-2/+2
|
* (Frecenter): Clear all caches of compositions.Kenichi Handa1999-12-151-0/+5
|
* (delete_window): Block input for the time windowGerd Moellmann1999-12-071-3/+6
| | | | matrices are being changed.
* (Fwindow_end): Don't call temp_set_pt_both withGerd Moellmann1999-11-281-2/+15
| | | | out of range position.
* more XCAR/XCDR/XFLOAT_DATA uses, to help isolete lisp engineKen Raeburn1999-10-251-2/+2
|
* (Fnext_window): Add a QUIT in the loop.Gerd Moellmann1999-10-231-0/+2
|
* (enum save_restore_action): New.Gerd Moellmann1999-10-161-21/+59
| | | | | | | | | | (save_restore_orig_size): Change parameter list. Add functionality to check for valid orig_top and orig_height members in a window tree. (grow_mini_window): Call save_restore_orig_size with new parameter list. (shrink_mini_window): Restore old window sizes only if old size information is valid in all windows in a window tree.
* (enlarge_window): Add window parameter instead of usingGerd Moellmann1999-09-231-16/+18
| | | | | | | | | selected_window. (Fdisplay_buffer): Call it with window parameter instead of setting selected_window. (Fenlarge_window, Fshrink_window): Ditto. (shrink_mini_window): If there is no recorded height and position info, resize mini-window to height 1.
* (window_min_size): Add parameter ignore_fixed_p.Gerd Moellmann1999-09-231-22/+218
| | | | | | | | | | | | (change_window_height): Call window_min_size with new parameter. (shrink_window_lowest_first, save_restore_orig_size, grow_mini_window, shrink_mini_window): New. (make_window, replace_window): Initialize orig_top and orig_height. (enlarge_window): Renamed from change_window_height. Make it static. (Fdisplay_buffer, Fenlage_window, Fshrink_window): Call enlarge_window instead of change_window_height.