1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 03:40:56 -08:00
Commit graph

22490 commits

Author SHA1 Message Date
Juanma Barranquero
a2665596dd (read_minibuf): Use empty_unibyte_string. 2007-06-08 20:09:20 +00:00
Juanma Barranquero
c60416e0c7 (wordify): Use empty_unibyte_string. 2007-06-08 20:08:39 +00:00
Juanma Barranquero
f130225375 (sel_read): Use empty_unibyte_string. 2007-06-08 20:07:44 +00:00
Juanma Barranquero
8b3ad11270 (Fx_get_atom_name): Use empty_unibyte_string. 2007-06-08 20:07:10 +00:00
Juanma Barranquero
e78bf986eb (x_term_init): Use empty_unibyte_string. 2007-06-08 20:06:31 +00:00
Juanma Barranquero
db12c2a7e4 (Fformat_mode_line, syms_of_xdisp): Use empty_unibyte_string. 2007-06-08 20:05:03 +00:00
Juanma Barranquero
6ecd75be1a (x_default_scroll_bar_color_parameter):
Use empty_unibyte_string, not empty_string.
2007-06-08 20:01:38 +00:00
Juanma Barranquero
ce33e8eb5f (menu_help_callback): Use empty_unibyte_string, not empty_string. 2007-06-08 20:00:33 +00:00
Juanma Barranquero
4d774b0fe6 (init_strings): Initialize canonical empty strings.
(make_uninit_string, make_uninit_multibyte_string): Return appropriate
canonical empty string when the requested size is 0.
2007-06-08 19:59:46 +00:00
Juanma Barranquero
7e9fa161dc (empty_unibyte_string): Rename from empty_string.
(empty_multibyte_string): New canonical empty string.
(syms_of_emacs): Don't initialize empty_string.
2007-06-08 19:58:33 +00:00
Juanma Barranquero
a74d1c97ee (syms_of_lread, openp): Use empty_unibyte_string, not build_string. 2007-06-08 19:57:46 +00:00
Juanma Barranquero
2c668b9a66 (STRING_SET_UNIBYTE): Return the canonical empty unibyte string, if appropriate.
(empty_unibyte_string, empty_multibyte_string): New externs.
(empty_string): Remove extern.
2007-06-08 19:56:24 +00:00
Jason Rumney
42c4c67a4a (Fcurrent_time_zone): Remove hack for Japanese Windows. 2007-06-07 21:38:10 +00:00
Jason Rumney
4608d82961 Don't define HAVE_TZNAME. 2007-06-07 21:36:48 +00:00
YAMAMOTO Mitsuharu
aa8280d3f3 (mac_get_window_bounds): Move extern from macfns.c.
(FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y): New macros.
2007-06-07 08:45:26 +00:00
YAMAMOTO Mitsuharu
7adf314352 (mac_begin_cg_clip): New arg F. Call SetPortWindowPort.
All callers changed so as not to call SetPortWindowPort.
(mac_begin_cg_clip) [USE_CG_DRAWING]: Call mac_prepare_for_quickdraw.
(mac_draw_image_string_atsui) [USE_ATSUI]: New function created from
mac_draw_string_common.
(mac_draw_image_string_qd): Likewise.
(mac_draw_string_common): Use them.  Add INLINE.
(XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
Use FRAME_OUTER_TO_INNER_DIFF_X, FRAME_OUTER_TO_INNER_DIFF_Y, and
GetGlobalMouse.
(x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
and FRAME_OUTER_TO_INNER_DIFF_Y.
[TARGET_API_MAC_CARBON] (mac_handle_mouse_event): Likewise.
[USE_MAC_TSM] (mac_handle_text_input_event): Likewise.
(x_make_frame_visible) [TARGET_API_MAC_CARBON]: Move code for
repositioning window to mac_handle_window_event.
(x_make_frame_invisible) [TARGET_API_MAC_CARBON]: Move code for
saving window location to mac_handle_window_event
[USE_MAC_FONT_PANEL] (mac_show_hide_font_panel): Install handler here.
(install_menu_target_item_handler): Remove argument in extern.
[TARGET_API_MAC_CARBON] (mac_event_to_emacs_modifiers):
Also accept command events.
(do_keystroke): New function created from XTread_socket.
(init_command_handler): Remove functions.
[TARGET_API_MAC_CARBON] (mac_handle_window_event): Reposition window
and save window location by kEventWindowShowing and kEventWindowHiding
handlers here.  Don't call next handler for window state change and
focus events.
(mac_handle_application_event, mac_handle_keyboard_event)
[TARGET_API_MAC_CARBON]: New functions.
(install_window_handler) [TARGET_API_MAC_CARBON]: Register handlers for
kEventWindowShowing and kEventWindowHiding events.  Move installation
of mouse, font, text input and menu target item handlers to
install_application_handler.
(install_application_handler) [TARGET_API_MAC_CARBON]: New function.
(mac_handle_cg_display_reconfig) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
New function.
(init_dm_notification_handler) [MAC_OS_X_VERSION_MAX_ALLOWED >= 1030]:
Register it.
(XTread_socket) [TARGET_API_MAC_CARBON]: Consolidate
SendEventToEventTarget calls.  Use FRAME_OUTER_TO_INNER_DIFF_X and
FRAME_OUTER_TO_INNER_DIFF_Y.  Move application activation handler
to mac_handle_application_event.  Move keyboard handler to
mac_handle_keyboard_event.
(XTread_socket) [!TARGET_API_MAC_CARBON]: Use do_keystroke.
(mac_initialize) [TARGET_API_MAC_CARBON]: Don't call
init_command_handler.  Call install_application_handler.
2007-06-07 08:45:00 +00:00
YAMAMOTO Mitsuharu
343bd79426 [MAC_OSX] (install_service_handler): Rename from
init_service_handler.  All callers changed.  Return OSStatus value.
2007-06-07 08:44:47 +00:00
YAMAMOTO Mitsuharu
b52ee0bd9a [TARGET_API_MAC_CARBON] (menu_target_item_handler):
Don't call next handler.
[TARGET_API_MAC_CARBON] (install_menu_target_item_handler):
Remove argument.  Install handler to application.
(set_frame_menubar): Don't change deep_p.
(mac_menu_show):  Use FRAME_OUTER_TO_INNER_DIFF_X and
FRAME_OUTER_TO_INNER_DIFF_Y.
(DIALOG_BUTTON_COMMAND_ID_OFFSET, DIALOG_BUTTON_COMMAND_ID_P)
(DIALOG_BUTTON_COMMAND_ID_VALUE, DIALOG_BUTTON_MAKE_COMMAND_ID)
[HAVE_DIALOGS]: New macros.
[HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
Use them.
(fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.
2007-06-07 08:44:33 +00:00
YAMAMOTO Mitsuharu
1f23bcb73b (mac_get_window_bounds): Move extern to macterm.h.
(compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.
2007-06-07 08:44:14 +00:00
YAMAMOTO Mitsuharu
e50652234f (xrm_get_preference_database): Remove BLOCK_INPUT. 2007-06-07 08:43:58 +00:00
Glenn Morris
5cf9ca93e5 (main): Use `emacs-copyright' in --version output. 2007-06-07 07:23:36 +00:00
Glenn Morris
6926c9548a (emacs-copyright): New constant. 2007-06-07 07:20:11 +00:00
Jason Rumney
fb7ece24ac *** empty log message *** 2007-06-06 21:00:03 +00:00
Jason Rumney
3d4ce9e923 Don't define HAVE_TZNAME. 2007-06-06 20:51:10 +00:00
Chong Yidong
50fe226348 (xpm_load): Remove spurious call to xpm_init_color_cache. 2007-06-06 18:58:56 +00:00
Chong Yidong
e29bb91e05 * image.c (xpm_load): Remove spurious call to xpm_init_color_cache. 2007-06-06 18:58:48 +00:00
Chong Yidong
6cf8ac625b (xpm_load): Remove spurious call to xpm_init_color_cache. 2007-06-06 18:57:12 +00:00
Chong Yidong
6fe04c896c * image.c (xpm_load): Remove spurious call to xpm_init_color_cache. 2007-06-06 18:57:02 +00:00
Chong Yidong
fc13f0a2e6 (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD. 2007-06-06 17:09:40 +00:00
Chong Yidong
60fb48600c * syntax.c (scan_words): Fix arg to UPDATE_SYNTAX_TABLE_BACKWARD. 2007-06-06 17:09:26 +00:00
YAMAMOTO Mitsuharu
7eb0d72732 (struct scroll_bar): Rename member control_handle_low
and control_handle_high to control_ref_low and control_ref_high.
All uses changed.
(SCROLL_BAR_CONTROL_REF, SET_SCROLL_BAR_CONTROL_REF): Rename from
SCROLL_BAR_CONTROL_HANDLE and SET_SCROLL_BAR_CONTROL_HANDLE,
respectively.  All uses changed.
(XCreatePixmap, XCreatePixmapFromBitmapData, XSetWindowBackground)
(install_window_handler, remove_window_handler): Replace WindowPtr
with WindowRef in externs.
2007-06-06 08:33:32 +00:00
YAMAMOTO Mitsuharu
3354caee46 Replace MenuHandle and GetMenuHandle with MenuRef and
GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
Replace ControlHandle with ControlRef.
(USE_CARBON_EVENTS): Remove.  Use TARGET_API_MAC_CARBON instead.
[MAC_OS8] (do_get_menus): Rename variable `menu_handle' to `menu'.
2007-06-06 08:33:15 +00:00
YAMAMOTO Mitsuharu
477f75a567 Replace MenuHandle and GetMenuHandle with MenuRef and
GetMenuRef, respectively.  Replace WindowPtr with WindowRef.
Replace ControlHandle with ControlRef.
(install_menu_quit_handler): Rename arg MENU_HANDLE to ROOT_MENU.
2007-06-06 08:33:01 +00:00
YAMAMOTO Mitsuharu
1c2c66d5d4 Replace WindowPtr with WindowRef. 2007-06-06 08:32:23 +00:00
YAMAMOTO Mitsuharu
17eba9d2ca (mac_window): Replace WindowPtr with WindowRef. 2007-06-06 08:32:15 +00:00
Juanma Barranquero
65fddb7472 (Finternal_lisp_face_p): Signal error for face alias loops. 2007-06-05 10:06:19 +00:00
Chong Yidong
a021e026ea * xfaces.c (syms_of_xfaces): Delete stray semicolon.
* xdisp.c (next_element_from_buffer):
* window.c (delete_window):
* term.c (term_mouse_highlight):
* msdos.c (getdefdir):
* macterm.c (mac_create_bitmap_from_bitmap_data)
(init_font_name_table):
* fns.c (Fsxhash):
* data.c (Fmake_local_variable):
* ccl.c (ccl_driver): Likewise.
2007-06-05 00:26:46 +00:00
Chong Yidong
fc494adb94 (ccl_driver): Delete stray semicolon. 2007-06-05 00:26:01 +00:00
Chong Yidong
9dff2aaa5e (Fmake_local_variable): Delete stray semicolon. 2007-06-05 00:25:19 +00:00
Chong Yidong
44f015d2a4 (Fsxhash): Delete stray semicolon. 2007-06-05 00:24:47 +00:00
Chong Yidong
685cdf3a51 (mac_create_bitmap_from_bitmap_data)
(init_font_name_table): Delete stray semicolon.
2007-06-05 00:24:08 +00:00
Chong Yidong
67fc123f8a (getdefdir): Delete stray semicolon. 2007-06-05 00:23:14 +00:00
Chong Yidong
ba9798ab50 (delete_window): Delete stray semicolon. 2007-06-05 00:21:21 +00:00
Chong Yidong
8efbeeab9d (next_element_from_buffer): Delete stray semicolon. 2007-06-05 00:20:05 +00:00
Chong Yidong
543d144825 (syms_of_xfaces): Delete stray semicolon. 2007-06-05 00:19:05 +00:00
Juanma Barranquero
56a94c1e37 (Fshrink_window): Reflow docstring. 2007-06-04 22:50:02 +00:00
Nick Roberts
67f6e31c6e (Fmouse_position, Fmouse_pixel_position):
Condition on HAVE_GPM too.
2007-06-03 01:03:22 +00:00
Nick Roberts
e416374c96 (discard_mouse_events): Add GPM_CLICK_EVENT case. 2007-06-03 00:57:11 +00:00
Nick Roberts
80fb2ce07c (term_mouse_highlight): Remove unused variables.
(Fterm_open_connection): Set gpm_zerobased to 1.
(term_mouse_movement, term_mouse_click, handle_one_term_event):
Use zero based co-ordinates.
(handle_one_term_event): Report a drag as mouse movement too.
2007-06-03 00:55:34 +00:00
Nick Roberts
db1213a993 *** empty log message *** 2007-06-03 00:54:02 +00:00