diff options
| author | Stefan Monnier | 2008-06-10 16:08:48 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-06-10 16:08:48 +0000 |
| commit | a1562258dcd1634303dae465232d87c6505d26d1 (patch) | |
| tree | 914320d89d7de21b7eb0895baea7336fca42dd25 /src | |
| parent | 12b139e9a83173b9461e22cc908721b2b3a04245 (diff) | |
| download | emacs-a1562258dcd1634303dae465232d87c6505d26d1.tar.gz emacs-a1562258dcd1634303dae465232d87c6505d26d1.zip | |
* window.c (Vwindow_point_insertion_type): New var.
(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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 40 | ||||
| -rw-r--r-- | src/window.c | 18 |
2 files changed, 35 insertions, 23 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index a4481d2fab7..23189ad9cf9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,21 +1,21 @@ | |||
| 1 | 2008-06-10 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * window.c (Vwindow_point_insertion_type): New var. | ||
| 4 | (set_window_buffer): Use it. | ||
| 5 | (syms_of_window): Init and export it to Lisp. | ||
| 6 | |||
| 1 | 2008-06-10 Kenichi Handa <handa@m17n.org> | 7 | 2008-06-10 Kenichi Handa <handa@m17n.org> |
| 2 | 8 | ||
| 3 | * font.h (font_intern_prop): Prototype adjusted. | 9 | * font.h (font_intern_prop): Prototype adjusted. |
| 4 | 10 | ||
| 5 | * font.c (font_intern_prop): New arg force_symbol. | 11 | * font.c (font_intern_prop): New arg force_symbol. |
| 6 | (font_parse_xlfd): Adjusted for the change of font_intern_prop. | 12 | (font_parse_xlfd, font_parse_fcname, font_parse_family_registry): |
| 7 | (font_parse_fcname): Likewise. | 13 | Adjust for the change of font_intern_prop. |
| 8 | (font_parse_family_registry): Likewise. | ||
| 9 | |||
| 10 | * ftfont.c (ftfont_pattern_entity): Adjusted for the change of | ||
| 11 | font_intern_prop. | ||
| 12 | |||
| 13 | * w32font.c (add_font_name_to_list): Adjusted for | ||
| 14 | the change of font_intern_prop. | ||
| 15 | (w32_enumfont_pattern_entity): Likewise. | ||
| 16 | (w32_registry): Likewise. | ||
| 17 | 14 | ||
| 18 | * w32uniscribe.c (add_opentype_font_name_to_list): Adjusted for | 15 | * ftfont.c (ftfont_pattern_entity): |
| 16 | * w32font.c (add_font_name_to_list, w32_enumfont_pattern_entity) | ||
| 17 | (w32_registry): | ||
| 18 | * w32uniscribe.c (add_opentype_font_name_to_list): Adjust for | ||
| 19 | the change of font_intern_prop. | 19 | the change of font_intern_prop. |
| 20 | 20 | ||
| 21 | 2008-06-09 Juanma Barranquero <lekktu@gmail.com> | 21 | 2008-06-09 Juanma Barranquero <lekktu@gmail.com> |
| @@ -24,15 +24,15 @@ | |||
| 24 | 24 | ||
| 25 | 2008-06-09 Jason Rumney <jasonr@gnu.org> | 25 | 2008-06-09 Jason Rumney <jasonr@gnu.org> |
| 26 | 26 | ||
| 27 | * w32term.c (x_make_frame_visible): Use alternate restore flags. | 27 | * w32term.c (x_make_frame_visible): Use alternate restore flags. |
| 28 | 28 | ||
| 29 | * w32menu.c (Fx_popup_menu): Unwind protect while building menu. | 29 | * w32menu.c (Fx_popup_menu): Unwind protect while building menu. |
| 30 | (parse_single_submenu): Remove. | 30 | (parse_single_submenu): Remove. |
| 31 | (digest_single_submenu): Remove. | 31 | (digest_single_submenu): Remove. |
| 32 | (syms_of_w32menu): Don't initialise variables that have moved | 32 | (syms_of_w32menu): Don't initialise variables that have moved |
| 33 | to menu.c. | 33 | to menu.c. |
| 34 | (set_frame_menubar): Sync with version in xmenu.c. | 34 | (set_frame_menubar): Sync with version in xmenu.c. |
| 35 | (w32_menu_show): Sync with xmenu_show in xmenu.c. | 35 | (w32_menu_show): Sync with xmenu_show in xmenu.c. |
| 36 | 36 | ||
| 37 | * menu.c (single_keymap_panes, push_menu_pane, push_menu_item): | 37 | * menu.c (single_keymap_panes, push_menu_pane, push_menu_item): |
| 38 | Make static again. | 38 | Make static again. |
diff --git a/src/window.c b/src/window.c index 7af0c6db711..27db0296dcf 100644 --- a/src/window.c +++ b/src/window.c | |||
| @@ -167,6 +167,10 @@ static Lisp_Object Vwindow_configuration_change_hook; | |||
| 167 | 167 | ||
| 168 | Lisp_Object Vscroll_preserve_screen_position; | 168 | Lisp_Object Vscroll_preserve_screen_position; |
| 169 | 169 | ||
| 170 | /* Non-nil means that text is inserted before window's markers. */ | ||
| 171 | |||
| 172 | Lisp_Object Vwindow_point_insertion_type; | ||
| 173 | |||
| 170 | /* Incremented by 1 whenever a window is deleted. */ | 174 | /* Incremented by 1 whenever a window is deleted. */ |
| 171 | 175 | ||
| 172 | int window_deletion_count; | 176 | int window_deletion_count; |
| @@ -3420,6 +3424,8 @@ set_window_buffer (window, buffer, run_hooks_p, keep_margins_p) | |||
| 3420 | Fset_buffer (buffer); | 3424 | Fset_buffer (buffer); |
| 3421 | } | 3425 | } |
| 3422 | 3426 | ||
| 3427 | XMARKER (w->pointm)->insertion_type = !NILP (Vwindow_point_insertion_type); | ||
| 3428 | |||
| 3423 | if (!keep_margins_p) | 3429 | if (!keep_margins_p) |
| 3424 | { | 3430 | { |
| 3425 | /* Set left and right marginal area width etc. from buffer. */ | 3431 | /* Set left and right marginal area width etc. from buffer. */ |
| @@ -3486,9 +3492,11 @@ This function runs the hook `window-scroll-functions'. */) | |||
| 3486 | else if (! EQ (tem, Qt)) /* w->buffer is t when the window | 3492 | else if (! EQ (tem, Qt)) /* w->buffer is t when the window |
| 3487 | is first being set up. */ | 3493 | is first being set up. */ |
| 3488 | { | 3494 | { |
| 3489 | if (!NILP (w->dedicated) && !EQ (tem, buffer)) | 3495 | if (!EQ (tem, buffer)) |
| 3490 | error ("Window is dedicated to `%s'", | 3496 | if (EQ (w->dedicated, Qt)) |
| 3491 | SDATA (XBUFFER (tem)->name)); | 3497 | error ("Window is dedicated to `%s'", SDATA (XBUFFER (tem)->name)); |
| 3498 | else | ||
| 3499 | w->dedicated = Qnil; | ||
| 3492 | 3500 | ||
| 3493 | unshow_buffer (w); | 3501 | unshow_buffer (w); |
| 3494 | } | 3502 | } |
| @@ -7151,6 +7159,10 @@ by full screens. | |||
| 7151 | Any other value means point always keeps its screen position. */); | 7159 | Any other value means point always keeps its screen position. */); |
| 7152 | Vscroll_preserve_screen_position = Qnil; | 7160 | Vscroll_preserve_screen_position = Qnil; |
| 7153 | 7161 | ||
| 7162 | DEFVAR_LISP ("window-point-insertion-type", &Vwindow_point_insertion_type, | ||
| 7163 | doc: /* Type of marker to use for `window-point'. */); | ||
| 7164 | Vwindow_point_insertion_type = Qnil; | ||
| 7165 | |||
| 7154 | DEFVAR_LISP ("window-configuration-change-hook", | 7166 | DEFVAR_LISP ("window-configuration-change-hook", |
| 7155 | &Vwindow_configuration_change_hook, | 7167 | &Vwindow_configuration_change_hook, |
| 7156 | doc: /* Functions to call when window configuration changes. | 7168 | doc: /* Functions to call when window configuration changes. |