1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-04 19:10:37 -08:00
Commit graph

20489 commits

Author SHA1 Message Date
Jan Djärv
90f2e16b15 * xfns.c (Fx_uses_old_gtk_dialog): New function.
* gtkutil.c (xg_uses_old_file_dialog): New function.
(xg_get_file_name): Use xg_uses_old_file_dialog.

* gtkutil.h: Declare xg_uses_old_file_dialog.
2005-12-23 11:34:13 +00:00
Richard M. Stallman
0ee01fffb7 *** empty log message *** 2005-12-23 02:45:09 +00:00
Richard M. Stallman
d130d1298b (xmenu_show): Call inhibit_garbage_collection. 2005-12-22 23:30:36 +00:00
YAMAMOTO Mitsuharu
b73e4d84e0 (mac_per_char_metric): Add prototype.
(x_per_char_metric) [USE_CG_TEXT_DRAWING]: Remove prototype.
(mac_query_char_extents): New function.
(x_per_char_metric): Use it.
(XLoadQueryFont): Likewise.  Consolidate min/max_bounds calculations.
[USE_CG_TEXT_DRAWING] (mac_draw_string_cg): Use
mac_per_char_metric instead of x_per_char_metric.
(mac_text_extents_16): New function.
(mac_compute_glyph_string_overhangs): Use it.
(mac_unload_font): Free member `bounds' in struct MacFontStruct.
2005-12-22 08:17:30 +00:00
YAMAMOTO Mitsuharu
06505fd848 (XCharStruct): Remove member `valid_p'.
(STORE_XCHARSTRUCT): Don't set member `valid_p'.
(XCharStructRow): New typedef.
(XCHARSTRUCTROW_CHAR_VALID_P, XCHARSTRUCTROW_SET_CHAR_VALID): New
macros.
(struct MacFontStruct): Add member `bounds'.  Remove member
`per_char'.  All uses for QuichDraw Text fonts are changed to
`bounds.per_char'.  ATSUI font bounds are represented as an array
`bounds.rows' of XCharStructRow's, each of which consists of a
bitmap of valid entries and an array of char bounds.
2005-12-22 08:17:01 +00:00
YAMAMOTO Mitsuharu
26ab4ea8c4 (Fmac_coerce_ae_data) [MAC_OSX]: Fix memory leak. 2005-12-22 08:16:53 +00:00
Richard M. Stallman
da3863b559 *** empty log message *** 2005-12-22 00:39:46 +00:00
Stefan Monnier
a425bd036e (Fdisplay_completion_list): Use XCAR/XCDR.
(Fminibuffer_completion_help): Remove duplicates before display.
2005-12-21 17:33:40 +00:00
Károly Lőrentey
aa0b0cd9bc (print_preprocess): Don't loose print_depth levels while iterating. 2005-12-21 15:37:25 +00:00
YAMAMOTO Mitsuharu
5a61ec1817 (struct mac_output): Remove unused member
menu_command_in_progress.
2005-12-21 12:31:22 +00:00
YAMAMOTO Mitsuharu
4036ffb904 (Qmac_apple_event): Add extern.
(set_frame_menubar, mac_menu_show keymp_panes)
(single_keymap_panes, list_of_panes, list_of_item)
(single_menu_item): Add argument types to prototypes.
(mac_dialog_show) [HAVE_DIALOGS]: Likewise.
(struct skp): New struct (from xmenu.c).
(single_keymap_panes, single_menu_item, list_of_panes)
(list_of_item): Sync with xmenu.c.
(Fx_popup_menu, Fx_popup_dialog): Likewise.  Don't get window from
POSITION if it is mac-apple-event event.
(menubar_selection_callback): Don't use menu_command_in_progress.
(set_frame_menubar): First parse all submenus, then make
widget_value trees from them.  Don't allocate any widget_value
objects until we are done with the parsing.
(parse_single_submenu, digest_single_submenu): New functions.
(single_submenu): Function deleted, replaced by those two.
(install_menu_quit_handler) [HAVE_CANCELMENUTRACKING]: Don't
create or dispose of EventHandlerUPP.  Install hander to all submenus.
(mac_menu_show) [!HAVE_MULTILINGUAL_MENU]: Use ENCODE_MENU_STRING
instead of ENCODE_SYSTEM.
(free_frame_menubar, fill_submenu, fill_menu): Don't use NULL for
integer values.
[HAVE_DIALOGS] (mac_dialog_show): Sync with xdialog_show (in xmenu.c).
(add_menu_item) [TARGET_API_MAC_CARBON]: Use CFString functions to
format menu item string.  Don't use NULL for integer value.
2005-12-21 12:31:02 +00:00
Juri Linkov
3bdba51db2 *** empty log message *** 2005-12-20 21:50:23 +00:00
Juri Linkov
c1d9dffd9a (Fx_popup_menu): Add `else' to set Vmenu_updating_frame to nil
only if position is nil.
2005-12-20 21:38:27 +00:00
Juri Linkov
76a3c2cda5 (Fx_popup_menu): Set Vmenu_updating_frame to f if
position is non-nil, else set it to nil.
2005-12-20 21:37:36 +00:00
Stefan Monnier
addcdb7c89 (Vfunction_key_map): Docstring fix: mention that bindings can be functions. 2005-12-19 15:46:13 +00:00
YAMAMOTO Mitsuharu
faef8681cb (syms_of_macterm) <mac-allow-anti-aliasing>: Fix unintended default
value change.
2005-12-19 09:56:00 +00:00
YAMAMOTO Mitsuharu
d6a90a49de *** empty log message *** 2005-12-19 08:31:44 +00:00
YAMAMOTO Mitsuharu
862c94ca8e (x_handle_dnd_message): Drag-and-drop items are now
stored in member `args' of struct input_event.
2005-12-19 08:31:33 +00:00
YAMAMOTO Mitsuharu
00cff0a110 (construct_drag_n_drop): Drag-and-drop items are now
stored in member `args' of struct input_event.
2005-12-19 08:31:23 +00:00
YAMAMOTO Mitsuharu
bf0f0659d9 (struct input_event): Fix comment for DRAG_N_DROP_EVENT. 2005-12-19 08:31:12 +00:00
YAMAMOTO Mitsuharu
cfe3a871cf (create_apple_event_from_event_ref): Remove 5th argument from extern. 2005-12-19 08:31:04 +00:00
YAMAMOTO Mitsuharu
70ed951a16 (mac_do_receive_drag): Drag-and-drop items are now
stored in member `args' of struct input_event.
(x_use_underline_position_properties): Undo 2005-07-13 change.
(syms_of_macterm) <x-use-underline-position-properties>: Likewise.
(mac_use_core_graphics, mac_wheel_button_is_mouse_2)
(mac_pass_command_to_system, mac_pass_control_to_system): New
boolean variables renamed from Lisp_Object ones
Vmac_use_core_graphics, Vmac_wheel_button_is_mouse_2,
Vmac_pass_command_to_system, and Vmac_pass_control_to_system.  All
uses changed.
(syms_of_macterm): DEFVAR_BOOL them.  Remove previous DEFVAR_LISPs.
Make them user options.
(mac_handle_command_event, mac_store_services_event): Call
create_apple_event_from_event_ref without 5th argument.
(backtranslate_modified_keycode): Mask off modifier keys that are
mapped to some Emacs modifiers before passing it to KeyTranslate.
(syms_of_macterm): Make variables `mac-emulate-three-button-mouse',
`mac-wheel-button-is-mouse-2', and `mac-*-modifier' user options.
Fix docstrings of `mac-*-modifier'.
2005-12-19 08:30:56 +00:00
YAMAMOTO Mitsuharu
70e88ff1e4 (create_apple_event_from_event_ref): Remove arg `types'.
(do_applescript): Change argument types to Lisp_Object.  All uses
changed.
2005-12-19 08:30:27 +00:00
YAMAMOTO Mitsuharu
82de1de962 (make_lispy_event): Drag-and-drop items are now
stored in member `args' of struct input_event.
2005-12-19 08:30:17 +00:00
Kenichi Handa
ce03bf76b9 Copyright fixed 2005-12-19 07:04:44 +00:00
Dan Nicolaescu
20d1c5c566 (Fx_backspace_delete_keys_p): In case we cannot determine
the answer, return `lambda', not nil.
2005-12-19 04:28:01 +00:00
Eli Zaretskii
abeb585559 *** empty log message *** 2005-12-17 17:29:36 +00:00
Eli Zaretskii
bb49fc13a6 (bootstrap-temacs): Warn that parts of commands enclosed in $(ARGQUOTE)s
should not be split between two lines, as that will break with GNU Make >3.80,
when sh.exe is used and arg quoting is with '..'.
2005-12-17 17:25:20 +00:00
Chong Yidong
6b8dfbf78a 2005-12-17 Chong Yidong <cyd@stupidchicken.com>
* print.c (print_preprocess): Just signal an error if print_depth
	is exceeded.
2005-12-17 15:55:29 +00:00
Chong Yidong
04df9646f2 Revert last change. 2005-12-17 15:51:00 +00:00
Chong Yidong
2173b58252 * print.c (print_preprocess): Just signal an error if print_depth
is exceeded.
2005-12-17 15:46:16 +00:00
Eli Zaretskii
d912b87a54 Set a breakpoint on w32_abort. 2005-12-17 15:14:03 +00:00
Juri Linkov
2a502a3271 *** empty log message *** 2005-12-16 19:10:49 +00:00
Juri Linkov
b5e1e44946 (Fminibuffer_completion_contents): New Lisp function
created from minibuffer_completion_contents.
(minibuffer_completion_contents): Remove.
(do_completion, Fminibuffer_complete_word)
(Fminibuffer_completion_help): Replace minibuffer_completion_contents
with Fminibuffer_completion_contents.
(syms_of_minibuf): Add Sminibuffer_completion_contents.
(Fdisplay_completion_list): Doc fix.
(display_completion_list_1): Use `nil' for second arg of
`Fdisplay_completion_list'.
2005-12-16 19:03:17 +00:00
John Paul Wallington
eb2def1bc6 *** empty log message *** 2005-12-14 22:59:35 +00:00
Jan Djärv
bf63eb6967 * xfns.c (compute_tip_xy): Handle negative dx and dy.
* w32fns.c (compute_tip_xy): Ditto

* macfns.c (compute_tip_xy): Ditto
2005-12-14 20:58:33 +00:00
Chong Yidong
9b98e16125 * print.c (print_preprocess): Go to a deeper print_depth to avoid
print_object loop.
2005-12-14 20:49:46 +00:00
Kenichi Handa
89aa725ad6 (code_convert_region_unwind): GCPRO arg. 2005-12-14 00:43:36 +00:00
Jan Djärv
7e8410d1ab * (compute_tip_xy): Calculate root_y the same way as root_x,
i.e. dy is offset from top of frame instead of bottom.
2005-12-12 09:32:59 +00:00
Jan Djärv
57134802f7 * xfns.c (compute_tip_xy): Calculate root_y the same way as root_x,
i.e. dy is offset from top of frame instead of bottom.

* macfns.c (compute_tip_xy): Ditto.
* w32fns.c (compute_tip_xy): Ditto.
2005-12-12 09:32:15 +00:00
Jan Djärv
93c579e00e * gtkutil.c (SSDATA): New macro to remove compiler warnings.
(xg_get_image_for_pixmap, xg_create_frame_widgets)
(xg_get_file_with_chooser): Use SSDATA instead of SDATA.
2005-12-12 08:08:56 +00:00
Jan Djärv
b79c8219e8 * xmenu.c (menubar_selection_callback): Do nothing if the callback
is for an unselected radio menu item.
2005-12-12 08:08:43 +00:00
Jan Djärv
3b006f5b67 * gtkutil.c (SSDATA): New macro to remove compiler warnings.
(xg_get_image_for_pixmap, xg_create_frame_widgets)
(xg_get_file_with_chooser): Use SSDATA instead of SDATA.

* xmenu.c (menubar_selection_callback): Do nothing if the callback
is for an unselected radio menu item.
2005-12-12 08:08:23 +00:00
Richard M. Stallman
2cb33a9853 (syms_of_xdisp) <blink-cursor-alist>: Doc fix. 2005-12-11 15:40:37 +00:00
Richard M. Stallman
2231a9e22d (EQ): Use == so args are computed just once. 2005-12-11 15:35:51 +00:00
Richard M. Stallman
49daa5b162 (Fset_keymap_parent, store_in_keymap): Use CHECK_IMPURE.
(Flookup_key): Doc fix.
(syms_of_keymap) <function-key-map>: Doc fix.
2005-12-11 15:35:14 +00:00
Juri Linkov
d7d1f75e5e *** empty log message *** 2005-12-11 09:57:08 +00:00
Juri Linkov
5203cd0380 (display_completion_list_1): Call `minibuffer_completion_contents'
instead of using `nil' as second arg of `Fdisplay_completion_list'.
(keys_of_minibuf): Unbind SPC in Vminibuffer_local_filename_completion_map
(see also related change on 2005-12-06).
2005-12-11 09:50:53 +00:00
Richard M. Stallman
06100606c1 (Frequire): Treat evaluating from a source file
like loading the file.
2005-12-11 05:10:08 +00:00
Richard M. Stallman
356e6d8de4 (Flog): Doc fix. 2005-12-11 05:09:00 +00:00