aboutsummaryrefslogtreecommitdiffstats
path: root/src/window.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * xterm.c (syms_of_xterm):Dan Nicolaescu2009-11-061-9/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * xselect.c (syms_of_xselect): * xmenu.c (syms_of_xmenu): * xfns.c (syms_of_xfns): * xfaces.c (syms_of_xfaces): * xdisp.c (syms_of_xdisp): * window.c (syms_of_window): * w32fns.c (syms_of_w32fns): * undo.c (syms_of_undo): * textprop.c (syms_of_textprop): * terminal.c (syms_of_terminal): * syntax.c (syms_of_syntax): * sound.c (syms_of_sound): * search.c (syms_of_search): * print.c (syms_of_print): * minibuf.c (syms_of_minibuf): * macros.c (syms_of_macros): * keymap.c (syms_of_keymap, initial_define_key) (initial_define_lispy_key): * keyboard.c (syms_of_keyboard): * insdel.c (syms_of_insdel): * image.c (syms_of_image): * fringe.c (syms_of_fringe): * frame.c (syms_of_frame): * fontset.c (syms_of_fontset): * fns.c (syms_of_fns): * fns.c (syms_of_fns): * fileio.c (syms_of_fileio): * fileio.c (syms_of_fileio): * eval.c (syms_of_eval): * doc.c (syms_of_doc): * dispnew.c (syms_of_display): * dired.c (syms_of_dired): * dbusbind.c (syms_of_dbusbind): * data.c (syms_of_data): * composite.c (syms_of_composite): * coding.c (syms_of_coding): * cmds.c (syms_of_cmds): * charset.c (define_charset_internal, syms_of_character): * ccl.c (syms_of_ccl): * category.c (syms_of_category, init_category_once): * casetab.c (syms_of_casetab): * casefiddle.c (syms_of_casefiddle): * callint.c (syms_of_callint): * bytecode.c (syms_of_bytecode): * buffer.c (keys_of_buffer, syms_of_buffer): * alloc.c (syms_of_alloc): * process.c (syms_of_process, init_process): * lread.c (syms_of_lread, init_obarray): * font.c (build_style_table): * emacs.c (syms_of_emacs, main): Replace calls to intern with intern_c_string, calls to make_pure_string with make_pure_c_string. Use pure_cons instead of Fcons. * process.c (socket_options): Make it const. (set_socket_option, init_process): Use a const pointer. * lread.c (intern_c_string): New function. (defvar_kboard, defvar_lisp, defvar_lisp_nopro, defvar_bool) (defvar_int): Uset it. Make the name const char*. * font.c (struct table_entry): Remove unused member. Make NAMES constant. (weight_table, slant_table, width_table): Make constant. * emacs.c (struct standard_args): Make name and longname constant.
* * window.c (grow_mini_window): Comment out "delta >= 0" assertion.Juanma Barranquero2009-10-261-2/+5
| | | | | For delta < 0, skip check that only makes sense when the mini-window is going to be enlarged. (Bug#4534)
* * window.c (Fwindow_edges, Fwindow_pixel_edges)Chong Yidong2009-10-231-21/+31
| | | | | (Fwindow_inside_edges, Fwindow_inside_pixel_edges): Doc fix (Bug#4775).
* * alloc.c: Do not define struct catchtag.Dan Nicolaescu2009-10-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * eval.c: Move struct catchtag definition ... * lisp.h: ... here. * image.c: Move png.h #include earlier to avoid warnings. * xterm.c: * xsmfns.c: * xselect.c: * xrdb.c: * xmenu.c: * xftfont.c: * xfont.c: * xfns.c: * xfaces.c: * xdisp.c: * window.c: * widget.c: * w32xfns.c: * w32uniscribe.c: * w32term.c: * w32select.c: * w32reg.c: * w32proc.c: * w32menu.c: * w32inevt.c: * w32heap.c: * w32font.c: * w32fns.c: * w32console.c: * w32.c: * w16select.c: * vm-limit.c: * unexsol.c: * unexec.c: * unexcw.c: * unexaix.c: * undo.c: * tparam.c: * textprop.c: * terminfo.c: * terminal.c: * termcap.c: * term.c: * syntax.c: * sound.c: * sheap.c: * search.c: * scroll.c: * region-cache.c: * regex.c: * ralloc.c: * process.c: * print.c: * msdos.c: * minibuf.c: * menu.c: * marker.c: * macros.c: * keymap.c: * keyboard.c: * intervals.c: * insdel.c: * indent.c: * gtkutil.c: * ftxfont.c: * ftfont.c: * fringe.c: * frame.c: * fontset.c: * font.c: * fns.c: * floatfns.c: * filelock.c: * fileio.c: * emacs.c: * editfns.c: * dosfns.c: * doprnt.c: * doc.c: * dispnew.c: * dired.c: * dbusbind.c: * data.c: * composite.c: * coding.c: * cmds.c: * cm.c: * chartab.c: * charset.c: * character.c: * ccl.c: * category.c: * casetab.c: * casefiddle.c: * callproc.c: * callint.c: * bytecode.c: * buffer.c: * atimer.c: Include setjmp.h. (Bug#4643) * xlwmenu.c: * lwlib.c: * lwlib-utils.c: * lwlib-Xm.c: * lwlib-Xlw.c: * lwlib-Xaw.c: Include setjmp.h.
* * window.c (Fdelete_window): Check WINDOW argument. (Bug#4618)Juanma Barranquero2009-10-031-0/+3
|
* Add the `recenter-redisplay' variable, and make `recenter' use it.Miles Bader2009-06-231-11/+35
| | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-1604
* Add 2009 to copyright years.Glenn Morris2009-01-081-1/+1
|
* Minor doc fix.Chong Yidong2008-12-301-2/+2
|
* * frame.c (delete_frame): New function derived fromMartin Rudalics2008-12-221-3/+3
| | | | | | | | | | | | | | Fdelete_frame to handle Qnoelisp value for FORCE argument. Delete last frame iff FORCE equals Qnoelisp. (Bug#1450) (Fdelete_frame): Call delete_frame. Remove line from doc-string saying that FORCE non-nil doesn't run `delete-frame-functions'. * frame.h: Extern delete_frame. * window.c (window_loop): * terminal.c (delete_terminal): * xterm.c (x_connection_closed): * xfns.c (Fx_hide_tip): * w32fns.c (Fx_hide_tip): Call delete_frame instead of Fdelete_frame.
* (coordinates_in_window): Don't returnMartin Rudalics2008-11-201-1/+5
| | | | | ON_VERTICAL_BORDER for the rightmost position of a mode/header line when the window is not the rightmost one. (Bug#1372)
* (window_loop): In DELETE_BUFFER_WINDOWS case, resetMartin Rudalics2008-11-141-0/+2
| | | | | dedicated status of window before attempting to display another buffer in it.
* (select_frame_norecord): New function.Martin Rudalics2008-11-021-6/+16
| | | | | | | | (run_window_configuration_change_hook): Use it and call Fselect_frame with NORECORD set. (Fselect_window): Pass NORECORD to Fselect_frame. (Fset_window_configuration): Handle NORECORD argument in call of do_switch_frame.
* (Fnext_window, Fprevious_window): Rewrite doc-string.Martin Rudalics2008-10-311-54/+57
| | | | | (Fother_window): Rename argument and rewrite doc-string. (select_window_norecord): Fix return value. (Bug#1276)
* (Fwindow_height, Fdelete_window, set_window_buffer)Martin Rudalics2008-10-291-6/+12
| | | | (Fwindow_text_height): Clarify doc-strings.
* * window.c (Fwindowp, Fwindow_live_p, Fwindow_minibuffer_p)Juanma Barranquero2008-10-281-7/+7
| | | | | (Fcoordinates_in_window_p, Fscroll_left, Fscroll_right): Fix typos in docstrings.
* (Fwindow_dedicated_p, Fset_window_dedicated_p)Martin Rudalics2008-10-271-18/+29
| | | | | (Fset_window_buffer): Explain in doc-string that a window can be "strongly" dedicated to its buffer.
* (Fset_window_buffer): Undo 2008-10-18 change to re-instateStefan Monnier2008-10-261-2/+5
| | | | the distinction between non-nil and non-t value of `dedicated'.
* (Fget_buffer_window, Fdelete_windows_on, Freplace_buffer_in_windows):Martin Rudalics2008-10-251-43/+65
| | | | Make buffer argument optional and rename to buffer_or_name.
* (Fwindow_dedicated_p, Fset_window_dedicated_p): Reword doc-string.Martin Rudalics2008-10-221-14/+19
| | | | | | (Fset_window_parameter): Use NILP. (Fscroll_up, Fscroll_down, Fminibuffer_selected_window) (Frecenter): Use "selected" instead of "current" window in doc-strings.
* (Fwindow_dedicated_p, Fset_window_dedicated_p):Martin Rudalics2008-10-191-24/+32
| | | | | | | Mention kill-buffer in doc-string. (Fset_window_buffer): Reinsert tem check removed in last commit. (Fenlarge_window, Fshrink_window): Have argument names and doc-string follow Elisp manual more closely.
* (Fwindow_width, Fset_window_start)Martin Rudalics2008-10-181-51/+65
| | | | | | | | | | (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter) (Fdelete_windows_on, Freplace_buffer_in_windows): Make doc-strings follow code and Elisp manual more closely. (Fwindow_dedicated_p): Make window argument optional. (Fset_window_dedicated_p): Rename argument "arg" to "flag". (Fset_window_buffer): Respect any non-nil dedicated value for window. Rename "buffer" argument to "buffer_or_name".
* (Fsplit_window): Rename arg horflag to horizontal.Martin Rudalics2008-10-171-11/+10
|
* (Fselect_window): Don't update window_select_count andMartin Rudalics2008-09-151-6/+10
| | | | use_time when norecord is not nil.
* (set_window_buffer): Always preserve current-buffer.Stefan Monnier2008-09-121-15/+3
|
* * s/ms-w32.h (MULTI_KBOARD): Remove.Dan Nicolaescu2008-07-311-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | * xterm.c: * xselect.c: * xfns.c: * window.c: * w32term.c: * w32fns.c: * terminal.c: * termhooks.h: * term.c: * sysdep.c: * keyboard.h: * keyboard.c: * frame.h: * frame.c: * frame.c: Remove references to MULTI_KBOARD, it is now the default. * config.in: Regenerate. * config.nt (MULTI_KBOARD): Remove. * configure.in (MULTI_KBOARD): Remove.
* Remove support for Mac Carbon.Dan Nicolaescu2008-07-271-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mactoolbox.c: * macterm.h: * macterm.c: * macselect.c: * macmenu.c: * macgui.h: * macfns.c: * mac.c: Remove file. * s/darwin.h: * m/intel386.h: * xfaces.c: * xdisp.c: * window.c: * tparam.c: * termhooks.h: * termcap.c: * term.c: * syssignal.h: * sysselect.h: * sysdep.c: * process.c: * lread.c: * lisp.h: * keyboard.c: * image.c: * fringe.c: * frame.h: * frame.c: * fontset.c: * font.h: * font.c: * fns.c: * fileio.c: * emacs.c: * dispnew.c: * dispextern.h: * config.in: * atimer.c: * Makefile.in: Remove code for Carbon * erc.el: Remove code for Carbon. Remove support for Mac Carbon. * term/mac-win.el: Remove file * international/mule-cmds.el: * version.el: * startup.el: * simple.el: * mwheel.el: * mouse.el: * loadup.el: * isearch.el: * info.el: * frame.el: * faces.el: * disp-table.el: * cus-start.el: * cus-face.el: * cus-edit.el: * Makefile.in: Remove code for Carbon. Remove support for Mac Carbon. * makefile.w32-in: * emacsclient.c: Remove code for Carbon. * PROBLEMS: * MACHINES: Remove mentions of Mac Carbon. * ns-emacs.texi: * faq.texi: Remove mentions of Mac Carbon. * os.texi: * frames.texi: * display.texi: Remove mentions of Mac Carbon. * xresources.texi: Remove mentions of Mac Carbon. * make-tarball.txt: * admin.el: * FOR-RELEASE: * CPP-DEFINES: Remove mentions of Mac Carbon. Remove support for Mac Carbon. * mac: Remove directory. * make-dist: * configure.in: * README: * Makefile.in: * INSTALL: Remove code for Carbon. * configure: Regenerate.
* merging Emacs.app (NeXTstep port)Adrian Robert2008-07-151-0/+3
|
* American English spelling fix.Glenn Morris2008-06-271-1/+1
|
* * window.c (Vwindow_point_insertion_type): New var.Stefan Monnier2008-06-101-3/+15
| | | | | | | | | | | | | | | | | (set_window_buffer): Use it. (syms_of_window): Init and export it to Lisp. * progmodes/compile.el (compilation-mode): Set window-point-insertion-type. (compilation-filter): Don't use insert-before-markers any more. * emacs-lisp/trace.el (trace-make-advice): Set window-point-insertion-type in the trace buffer. * startup.el (normal-top-level): Set window-point-insertion-type in *Messages*. * net/telnet.el (telnet-mode): Set window-point-insertion-type. (telnet-filter): Don't use insert-before-markers any more. * comint.el (comint-mode): Set window-point-insertion-type. (comint-output-filter): Don't use insert-before-markers any more. * button.el (make-text-button): Allow `start' to be a string.
* * window.el (display-buffer-function, special-display-p)Stefan Monnier2008-06-051-537/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (special-display-buffer-names, special-display-regexps) (special-display-function, same-window-p, same-window-buffer-names) (same-window-regexps, pop-up-frames, display-buffer-reuse-frames) (pop-up-frame-function, pop-up-windows) (split-window-preferred-function, split-height-threshold) (split-width-threshold, window--splittable-p) (window--try-to-split-window, window--frame-usable-p) (even-window-heights, window--even-window-heights) (window--display-buffer-1, window--display-buffer-2, display-buffer) (pop-to-buffer): Move from window.c and buffer.c. (split-window-preferred-horizontally): Remove. * cus-start.el: Remove corresponding declarations. * window.c (pop_up_windows, pop_up_frames) (display_buffer_reuse_frames, Vpop_up_frame_function) (Vdisplay_buffer_function, Veven_window_heights) (Vspecial_display_buffer_names, Vspecial_display_regexps) (Vspecial_display_function, Vsame_window_buffer_names) (Vsame_window_regexps, split_height_threshold) (Vsplit_window_preferred_function): Move those vars to window.el. (display_buffer_1, Fspecial_display_p, Fsame_window_p) (Fdisplay_buffer): Move those functions to window.el. (syms_of_window): Remove corresponding declarations. (display_buffer): New function. (temp_output_buffer_show, Fother_window_for_scrolling): Use it. * dispnew.c (Flast_nonminibuf_frame): New function. * buffer.c (Fpop_to_buffer): Move to window.el.
* * window.c (window_scroll_pixel_based_preserve_x)Stefan Monnier2008-06-051-16/+41
| | | | | | | | | | | | (window_scroll_preserve_hpos, window_scroll_preserve_vpos): New vars. (window_scroll_pixel_based, window_scroll_line_based): Use them to preserve column positions. (syms_of_window): Initialize them. * indent.c (Fvertical_motion): Extend first arg to allow passing an (HPOS . VPOS) pair. * xdisp.c (move_it_in_display_line_to): Improve the type of its args. (move_it_in_display_line): New wrapper. * dispextern.h (move_it_in_display_line): Declare.
* (Fwindow_parameter): Return VALUE, not (PARAMETER . VALUE).Juanma Barranquero2008-06-051-5/+7
| | | | | (Fwindow_parameters): Return copy of parameter alist. Doc fix. (Fset_window_parameter): Return VALUE, not parameter alist. Doc fix.
* (Fset_window_parameter): Doc fix.Juanma Barranquero2008-06-041-8/+5
| | | | (Fwindow_parameters, Fwindow_parameter): Remove redundant check.
* (Fwindow_parameters, Fwindow_parameter, Fset_window_parameter): New defuns.Juanma Barranquero2008-06-041-1/+52
| | | | | (syms_of_window): Defsubr the new defuns. (make_window): Initialize window_parameters to nil.
* Make "xfree (NULL)" a no-op; remove useless if-before-xfree.Jim Meyering2008-06-021-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | * src/alloc.c (xfree): Return right away for a NULL arg. * src/lread.c (nosuffix): Remove now-useless if-before-xfree tests. * src/gtkutil.c (xg_gtk_scroll_destroy): Likewise. * src/mac.c (create_apple_event_from_event_ref): Likewise. (create_apple_event_from_drag_ref, cfstring_create_normalized): Likewise. * src/doprnt.c (doprnt1): Likewise. * src/frame.c (frame): Likewise. * src/keyboard.c (wipe_kboard): Likewise. * src/macterm.c (x_free_frame_resources, xlfdpat_destroy, XFreePixmap): (init_font_name_table, mac_unload_font, x_delete_display): Likewise. * src/term.c (tty_default_color_capabilities, maybe_fatal) (delete_tty): Likewise. * src/w16select.c (string): Likewise. * src/w32.c (w32_get_resource, SET_ENV_BUF_SIZE): Likewise. * src/w32bdf.c (w32_free_bdf_font): Likewise. * src/w32fns.c (w32_unload_font): Likewise. * src/w32font.c (w32font_close): Likewise. * src/window.c (size_window): Likewise. * src/xselect.c (receive_incremental_selection): Likewise. * src/xterm.c (x_free_frame_resources, x_delete_display): Likewise. * src/mactoolbox.c (create_apple_event_from_drag_ref): Likewise. * src/w32.c (stat): Likewise.
* Switch to recommended form of GPLv3 permissions notice.Glenn Morris2008-05-141-6/+4
|
* (make_window): Initialize resize_proportionally.Martin Rudalics2008-05-011-233/+208
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (enlarge_window): Temporarily set resize_proportionally to make sure that shrink_windows does scale the window proportionally. (shrink_windows): When window has resize_proportionally set try to shrink it proportionally by stealing from other windows. (struct saved_window, Fset_window_configuration) (compare_window_configurations): Handle resize_proportionally. (WINDOW_TOTAL_SIZE): New macro. (window_min_size, shrink_windows, size_window): Use it. (check_min_window_sizes): Removed. Invalid values of window-min-height|width are handled by window_min_size_2 now. (size_window, Fsplit_window, enlarge_window) (adjust_window_trailing_edge, grow_mini_window): Don't call check_min_window_sizes. (window_min_size_2, window_min_size_1, window_min_size): New argument safe_p for retrieving "safe" minimum sizes. (Fdisplay_buffer, Fsplit_window, enlarge_window): (adjust_window_trailing_edge, grow_mini_window): Adjust arguments of window_min_size... functions. (shrink_windows): Argument min_size removed. New argument safe_p allows shrinking windows to their safe minimum sizes. Calculate minimum size and decide whether a window shall be deleted for each window individually. (size_window): When nodelete_p equals 2, tell shrink_windows to delete windows only if their new minimum size is no more safe. (shrink_window_lowest_first): Call window_min_size_1 to make sure to preserve modeline of bottom-most window when resizing the minibuffer. (Fset_window_configuration, Fcurrent_window_configuration) (compare_window_configurations): Do not handle window-min-height|width any more. (syms_of_window): Clarify window-min-height|width doc-strings.
* (Fscroll_up, Fscroll_down, Fscroll_left)Chong Yidong2008-04-021-4/+4
| | | | (Fscroll_right): Add ^ interactive spec.
* (Fdisplay_buffer): Reinitialize tem to nil.Juri Linkov2008-03-311-0/+1
|
* (Fdisplay_buffer): Move call toJuri Linkov2008-03-291-18/+27
| | | | | | | | | | Vsplit_window_preferred_function out of conditions that check if window is eligible for vertical splitting. When Vsplit_window_preferred_function is non-nil, call it and use its non-nil return value as window. Otherwise, continue doing vertical splitting using Fsplit_window with arg horflag=nil. (syms_of_window) <Vsplit_window_preferred_function>: Change the default value from `split-window' to nil.
* (run_funs): New fun.Stefan Monnier2008-03-191-9/+48
| | | | | (run_window_configuration_change_hook): Use it to run the buffer-local and the global part of the hook.
* (Fdelete_window, Fadjust_window_trailing_edge):Stefan Monnier2008-02-251-21/+17
| | | | | | | Handle a nil arg. Use run_window_configuration_change_hook. (delete_window, adjust_window_trailing_edge): Don't handle nil any more. (Fenlarge_window, Fshrink_window, Fset_window_configuration): Use run_window_configuration_change_hook.
* Merge from emacs--devo--0Miles Bader2008-01-301-14/+43
|\ | | | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
| * * window.c (run_window_configuration_change_hook): New function.Stefan Monnier2008-01-281-4/+20
| | | | | | | | | | | | | | Code extracted from set_window_buffer. Set the selected frame. (set_window_buffer): Use it. * window.h (run_window_configuration_change_hook): Declare. * dispnew.c (change_frame_size_1): Use it instead of set-window-buffer.
| * (set_window_buffer): Don't unnecessarily reset hscroll andStefan Monnier2008-01-191-10/+23
| | | | | | | | vscroll if we're setting window-buffer to the value it already has.
* | Merge from emacs--devo--0Miles Bader2008-01-091-1/+2
|\ \ | |/ | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-312
| * Merge from emacs--rel--22Miles Bader2008-01-081-1/+2
| |\ | | | | | | | | | Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
| | * Add 2008 to copyright years.Glenn Morris2008-01-081-1/+2
| | |
| | * (window_min_size_2): Don't count header-line.Martin Rudalics2007-10-261-5/+7
| | |
* | | Merge from emacs--devo--0Miles Bader2007-12-061-31/+35
|\ \ \ | |/ / | | | | | | Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-294