diff options
| author | Karoly Lorentey | 2005-02-23 11:24:05 +0000 |
|---|---|---|
| committer | Karoly Lorentey | 2005-02-23 11:24:05 +0000 |
| commit | e6b2f88783f2c89bedcd2a761c6362fb353dc7a3 (patch) | |
| tree | 1d67d21b81f22dbc2219c9f62ae7b4882bbd9617 /src | |
| parent | a3ed96394abf826ed794282886c05db599e801df (diff) | |
| parent | dae3211dbdeab1939c610a5138f0f08839bfe3fa (diff) | |
| download | emacs-e6b2f88783f2c89bedcd2a761c6362fb353dc7a3.tar.gz emacs-e6b2f88783f2c89bedcd2a761c6362fb353dc7a3.zip | |
Merged from miles@gnu.org--gnu-2005 (patch 119)
Patches applied:
* miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-119
Update from CVS
git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-299
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 28 | ||||
| -rw-r--r-- | src/gtkutil.c | 17 | ||||
| -rw-r--r-- | src/keymap.h | 3 | ||||
| -rw-r--r-- | src/xdisp.c | 8 |
4 files changed, 33 insertions, 23 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 7c926e9b919..4cd7ef4f373 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,17 @@ | |||
| 1 | 2005-02-21 Stefan <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * keymap.h: Declare Fcurrent_active_maps, used in doc.c. | ||
| 4 | |||
| 5 | 2005-02-21 Kim F. Storm <storm@cua.dk> | ||
| 6 | |||
| 7 | * xdisp.c (move_it_vertically_backward): Eliminate two xasserts. | ||
| 8 | I think those asserts are bogus if buffer contains invisible text | ||
| 9 | or images. | ||
| 10 | |||
| 11 | 2005-02-21 David Kastrup <dak@gnu.org> | ||
| 12 | |||
| 13 | * gtkutil.c (xg_create_frame_widgets): UNBLOCK_INPUT on error. | ||
| 14 | |||
| 1 | 2005-02-20 Kim F. Storm <storm@cua.dk> | 15 | 2005-02-20 Kim F. Storm <storm@cua.dk> |
| 2 | 16 | ||
| 3 | * xdisp.c (pos_visible_p): Be sure to move to the specified | 17 | * xdisp.c (pos_visible_p): Be sure to move to the specified |
| @@ -848,13 +862,8 @@ | |||
| 848 | (install_window_handler) [TARGET_API_MAC_CARBON]: | 862 | (install_window_handler) [TARGET_API_MAC_CARBON]: |
| 849 | Register handlers for tracking/receiving drag-and-drop items. | 863 | Register handlers for tracking/receiving drag-and-drop items. |
| 850 | (do_ae_open_documents): Generate unibyte strings for filenames. | 864 | (do_ae_open_documents): Generate unibyte strings for filenames. |
| 851 | <<<<<<< ChangeLog | ||
| 852 | (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise. | ||
| 853 | Reject only non-filename items. Set event modifiers and return value. | ||
| 854 | ======= | ||
| 855 | (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise. | 865 | (mac_do_receive_drag) [TARGET_API_MAC_CARBON] : Likewise. |
| 856 | Reject only non-filename items. Set event modifiers, and return value. | 866 | Reject only non-filename items. Set event modifiers, and return value. |
| 857 | >>>>>>> 1.4187 | ||
| 858 | 867 | ||
| 859 | 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu> | 868 | 2004-12-28 Dan Nicolaescu <dann@ics.uci.edu> |
| 860 | 869 | ||
| @@ -964,12 +973,7 @@ | |||
| 964 | (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window | 973 | (x_make_frame_visible) [TARGET_API_MAC_CARBON]: Reposition window |
| 965 | if the position is neither user-specified nor program-specified. | 974 | if the position is neither user-specified nor program-specified. |
| 966 | (x_free_frame_resources): Free size_hints. | 975 | (x_free_frame_resources): Free size_hints. |
| 967 | <<<<<<< ChangeLog | ||
| 968 | (x_wm_set_size_hint): Allocate size_hints if needed. | ||
| 969 | Set size_hints. | ||
| 970 | ======= | ||
| 971 | (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints. | 976 | (x_wm_set_size_hint): Allocate size_hints if needed. Set size_hints. |
| 972 | >>>>>>> 1.4187 | ||
| 973 | (mac_clear_font_name_table): New function. | 977 | (mac_clear_font_name_table): New function. |
| 974 | (mac_do_list_fonts): Initialize font_name_table if needed. | 978 | (mac_do_list_fonts): Initialize font_name_table if needed. |
| 975 | (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT | 979 | (x_list_fonts): Don't initialize font_name_table. Add BLOCK_INPUT |
| @@ -1021,11 +1025,7 @@ | |||
| 1021 | 1025 | ||
| 1022 | 2004-12-27 Richard M. Stallman <rms@gnu.org> | 1026 | 2004-12-27 Richard M. Stallman <rms@gnu.org> |
| 1023 | 1027 | ||
| 1024 | <<<<<<< ChangeLog | ||
| 1025 | * buffer.c (Fbuffer_disable_undo): Delete (moved to simple.el). | ||
| 1026 | ======= | ||
| 1027 | * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el). | 1028 | * buffer.c (Fbuffer_disable_undo): Delete (move to simple.el). |
| 1028 | >>>>>>> 1.4187 | ||
| 1029 | (syms_of_buffer): Don't defsubr it. | 1029 | (syms_of_buffer): Don't defsubr it. |
| 1030 | 1030 | ||
| 1031 | * process.c (list_processes_1): Set undo_list instead | 1031 | * process.c (list_processes_1): Set undo_list instead |
diff --git a/src/gtkutil.c b/src/gtkutil.c index 6bf0c25f350..c291b44f5a2 100644 --- a/src/gtkutil.c +++ b/src/gtkutil.c | |||
| @@ -584,14 +584,14 @@ xg_resize_widgets (f, pixelwidth, pixelheight) | |||
| 584 | { | 584 | { |
| 585 | int mbheight = FRAME_MENUBAR_HEIGHT (f); | 585 | int mbheight = FRAME_MENUBAR_HEIGHT (f); |
| 586 | int tbheight = FRAME_TOOLBAR_HEIGHT (f); | 586 | int tbheight = FRAME_TOOLBAR_HEIGHT (f); |
| 587 | int rows = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, (pixelheight | 587 | int rows = FRAME_PIXEL_HEIGHT_TO_TEXT_LINES (f, (pixelheight |
| 588 | - mbheight - tbheight)); | 588 | - mbheight - tbheight)); |
| 589 | int columns = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, pixelwidth); | 589 | int columns = FRAME_PIXEL_WIDTH_TO_TEXT_COLS (f, pixelwidth); |
| 590 | 590 | ||
| 591 | if (FRAME_GTK_WIDGET (f) | 591 | if (FRAME_GTK_WIDGET (f) |
| 592 | && (columns != FRAME_COLS (f) | 592 | && (columns != FRAME_COLS (f) |
| 593 | || rows != FRAME_LINES (f) | 593 | || rows != FRAME_LINES (f) |
| 594 | || pixelwidth != FRAME_PIXEL_WIDTH (f) | 594 | || pixelwidth != FRAME_PIXEL_WIDTH (f) |
| 595 | || pixelheight != FRAME_PIXEL_HEIGHT (f))) | 595 | || pixelheight != FRAME_PIXEL_HEIGHT (f))) |
| 596 | { | 596 | { |
| 597 | struct x_output *x = f->output_data.x; | 597 | struct x_output *x = f->output_data.x; |
| @@ -719,6 +719,7 @@ xg_create_frame_widgets (f) | |||
| 719 | if (wvbox) gtk_widget_destroy (wvbox); | 719 | if (wvbox) gtk_widget_destroy (wvbox); |
| 720 | if (wfixed) gtk_widget_destroy (wfixed); | 720 | if (wfixed) gtk_widget_destroy (wfixed); |
| 721 | 721 | ||
| 722 | UNBLOCK_INPUT; | ||
| 722 | return 0; | 723 | return 0; |
| 723 | } | 724 | } |
| 724 | 725 | ||
| @@ -2881,7 +2882,7 @@ scroll_bar_button_cb (widget, event, user_data) | |||
| 2881 | if (xg_timer) xg_stop_timer (); | 2882 | if (xg_timer) xg_stop_timer (); |
| 2882 | bar->dragging = Qnil; | 2883 | bar->dragging = Qnil; |
| 2883 | } | 2884 | } |
| 2884 | 2885 | ||
| 2885 | return FALSE; | 2886 | return FALSE; |
| 2886 | } | 2887 | } |
| 2887 | 2888 | ||
| @@ -2945,7 +2946,7 @@ xg_create_scroll_bar (f, bar, scroll_callback, scroll_bar_name) | |||
| 2945 | event box window. */ | 2946 | event box window. */ |
| 2946 | gtk_fixed_put (GTK_FIXED (f->output_data.x->edit_widget), webox, -1, -1); | 2947 | gtk_fixed_put (GTK_FIXED (f->output_data.x->edit_widget), webox, -1, -1); |
| 2947 | gtk_container_add (GTK_CONTAINER (webox), wscroll); | 2948 | gtk_container_add (GTK_CONTAINER (webox), wscroll); |
| 2948 | 2949 | ||
| 2949 | 2950 | ||
| 2950 | /* Set the cursor to an arrow. */ | 2951 | /* Set the cursor to an arrow. */ |
| 2951 | xg_set_cursor (webox, FRAME_X_DISPLAY_INFO (f)->xg_cursor); | 2952 | xg_set_cursor (webox, FRAME_X_DISPLAY_INFO (f)->xg_cursor); |
| @@ -3270,10 +3271,10 @@ xg_tool_bar_item_expose_callback (w, event, client_data) | |||
| 3270 | 3271 | ||
| 3271 | event->area.x = max (0, event->area.x); | 3272 | event->area.x = max (0, event->area.x); |
| 3272 | event->area.y = max (0, event->area.y); | 3273 | event->area.y = max (0, event->area.y); |
| 3273 | 3274 | ||
| 3274 | event->area.width = max (width, event->area.width); | 3275 | event->area.width = max (width, event->area.width); |
| 3275 | event->area.height = max (height, event->area.height); | 3276 | event->area.height = max (height, event->area.height); |
| 3276 | 3277 | ||
| 3277 | return FALSE; | 3278 | return FALSE; |
| 3278 | } | 3279 | } |
| 3279 | 3280 | ||
| @@ -3394,7 +3395,7 @@ update_frame_tool_bar (f) | |||
| 3394 | DEFAULT_TOOL_BAR_BUTTON_MARGIN has no effect. */ | 3395 | DEFAULT_TOOL_BAR_BUTTON_MARGIN has no effect. */ |
| 3395 | hmargin = max (0, hmargin - DEFAULT_TOOL_BAR_BUTTON_MARGIN); | 3396 | hmargin = max (0, hmargin - DEFAULT_TOOL_BAR_BUTTON_MARGIN); |
| 3396 | vmargin = max (0, vmargin - DEFAULT_TOOL_BAR_BUTTON_MARGIN); | 3397 | vmargin = max (0, vmargin - DEFAULT_TOOL_BAR_BUTTON_MARGIN); |
| 3397 | 3398 | ||
| 3398 | if (! x->toolbar_widget) | 3399 | if (! x->toolbar_widget) |
| 3399 | xg_create_tool_bar (f); | 3400 | xg_create_tool_bar (f); |
| 3400 | 3401 | ||
diff --git a/src/keymap.h b/src/keymap.h index e50a62c8aa5..bec39186863 100644 --- a/src/keymap.h +++ b/src/keymap.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* Functions to manipulate keymaps. | 1 | /* Functions to manipulate keymaps. |
| 2 | Copyright (C) 2001 Free Software Foundation, Inc. | 2 | Copyright (C) 2001, 2005 Free Software Foundation, Inc. |
| 3 | 3 | ||
| 4 | This file is part of GNU Emacs. | 4 | This file is part of GNU Emacs. |
| 5 | 5 | ||
| @@ -33,6 +33,7 @@ EXFUN (Fkey_binding, 3); | |||
| 33 | EXFUN (Fkey_description, 2); | 33 | EXFUN (Fkey_description, 2); |
| 34 | EXFUN (Fsingle_key_description, 2); | 34 | EXFUN (Fsingle_key_description, 2); |
| 35 | EXFUN (Fwhere_is_internal, 5); | 35 | EXFUN (Fwhere_is_internal, 5); |
| 36 | EXFUN (Fcurrent_active_maps, 1); | ||
| 36 | extern Lisp_Object access_keymap P_ ((Lisp_Object, Lisp_Object, int, int, int)); | 37 | extern Lisp_Object access_keymap P_ ((Lisp_Object, Lisp_Object, int, int, int)); |
| 37 | extern Lisp_Object get_keyelt P_ ((Lisp_Object, int)); | 38 | extern Lisp_Object get_keyelt P_ ((Lisp_Object, int)); |
| 38 | extern Lisp_Object get_keymap P_ ((Lisp_Object, int, int)); | 39 | extern Lisp_Object get_keymap P_ ((Lisp_Object, int, int)); |
diff --git a/src/xdisp.c b/src/xdisp.c index f8f97b44b3b..c05e57cf7e1 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -6314,7 +6314,11 @@ move_it_vertically_backward (it, dy) | |||
| 6314 | value of nlines is > 0 if continuation lines were involved. */ | 6314 | value of nlines is > 0 if continuation lines were involved. */ |
| 6315 | if (nlines > 0) | 6315 | if (nlines > 0) |
| 6316 | move_it_by_lines (it, nlines, 1); | 6316 | move_it_by_lines (it, nlines, 1); |
| 6317 | #if 0 | ||
| 6318 | /* I think this assert is bogus if buffer contains | ||
| 6319 | invisible text or images. KFS. */ | ||
| 6317 | xassert (IT_CHARPOS (*it) <= start_pos); | 6320 | xassert (IT_CHARPOS (*it) <= start_pos); |
| 6321 | #endif | ||
| 6318 | } | 6322 | } |
| 6319 | else | 6323 | else |
| 6320 | { | 6324 | { |
| @@ -6363,7 +6367,11 @@ move_it_vertically_backward (it, dy) | |||
| 6363 | while (target_y >= line_bottom_y (it) && IT_CHARPOS (*it) < ZV); | 6367 | while (target_y >= line_bottom_y (it) && IT_CHARPOS (*it) < ZV); |
| 6364 | } | 6368 | } |
| 6365 | 6369 | ||
| 6370 | #if 0 | ||
| 6371 | /* I think this assert is bogus if buffer contains | ||
| 6372 | invisible text or images. KFS. */ | ||
| 6366 | xassert (IT_CHARPOS (*it) >= BEGV); | 6373 | xassert (IT_CHARPOS (*it) >= BEGV); |
| 6374 | #endif | ||
| 6367 | } | 6375 | } |
| 6368 | } | 6376 | } |
| 6369 | } | 6377 | } |