summaryrefslogtreecommitdiff
path: root/src/macterm.c
Commit message (Collapse)AuthorAgeFilesLines
* 2003-01-28 Benjamin Riefenstahl <Benjamin.Riefenstahl@epost.de>Andrew Choi2003-01-281-31/+29
| | | | | | | | | | * macterm.c (keycode_to_xkeysym_table): Add <tab>, <backspace>, <escape>. (keycode_to_xkeysym_table): Reformat and add more comments. (XTread_socket): Drop special case for backspace. * term/mac-win.el: Add entries in function-key-map for [tab], [backspace], [escape].
* * macterm.c (XTread_socket): Checks for valid, visible windowSteven Tamm2003-01-201-0/+7
| | | | before sending a scroll-wheel event.
* * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" toSteven Tamm2003-01-021-0/+2
| | | | distinguish Carbon GUI builds from X11 builds on darwin.
* * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2Steven Tamm2002-12-301-1/+1
| | | | to default to t.
* * macterm.c (XTread_socket): Call KeyTranslate for control andSteven Tamm2002-12-221-14/+7
| | | | | | meta to deal correctly shifted non-alpha characters, like C-S-5 being treated like C-%. Does not look for shift key to deal with masking off control-key with mac-reverse-ctrl-meta.
* * macterm.c (mac_check_for_quit_char): Correctly set theSteven Tamm2002-12-121-0/+2
| | | | | | modifiers of the event to 0. * mac.c (sys_select): Duplicate rfds before calling select to ensure that rfds survive the while loop.
* Added code to check for pressing of quit_char in the Carbon Event QueueSteven Tamm2002-12-081-54/+171
|
* 2002-12-02 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-12-021-0/+8
| | | | | | | | | | | * macmenu.c (add_menu_item, fill_menubar): Truncate menu item names to 255 characters. * macterm.c (XTread_socket): If all frames have been collapsed, expand the first one before handling drag-and-drop events. * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID, which is detected by autoconf.
* (note_mouse_highlight): Don't use mouse-face if hidden.Kim F. Storm2002-10-261-3/+6
|
* (get_window_cursor_type): New arg ACTIVE_CURSOR.Kim F. Storm2002-10-241-1/+2
| | | | Callers changed (supply dummy arg).
* * macterm.c (syms_of_macterm, mac_get_mouse_btn): ReversedSteven Tamm2002-10-101-3/+3
| | | | | functionality of mac-wheel-button-is-mouse-2 to be correct. Also switched the default to Qnil from Qt.
* Switching return to be treated like an X keysymSteven Tamm2002-10-041-1/+1
|
* Whitespace changes.Richard M. Stallman2002-09-261-8/+14
|
* 2002-08-30 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-08-311-6/+54
| | | | | | | * macterm.c (expose_overlaps): New function (merge code from xterm.c). (expose_window): Use it to fix the display of overlapping rows (merge code from xterm.c).
* (x_specified_cursor_type): Remove prototype.Kim F. Storm2002-08-301-66/+9
| | | | | | | | (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH. (x_display_and_set_cursor): Use get_window_cursor_type. Remove unused local variables cursor_non_selected, active_cursor. Redraw cursor if hbar cursor width changes. (make_mac_frame): Set FRAME_DESIRED_CURSOR.
* 2002-08-25 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-08-251-10/+0
| | | | | | * macterm.c (XTread_socket): Remove code to call SendEventToEventTarget for keys with command modifiers when mac_command_key_is_meta is nil.
* 2002-08-11 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-08-121-16/+66
| | | | | | | | | | | | | * macterm.c (XTmouse_position): Check wp with is_emacs_window. (Vmac_pass_command_to_system): New variable. (Vmac_pass_control_to_system): New variable. (do_mouse_moved): Check wp with is_emacs_window. (XTread_socket): Check window_ptr with is_emacs_window. Call FrontNonFloatingWindow instead of FrontWindow. Send keydown events back to Mac Toolbox for processing, depending on values of Vmac_pass_command_to_system and Vmac_pass_control_to_system. (syms_of_macterm): DEFVAR_LISP Vmac_pass_command_to_system and Vmac_pass_control_to_system.
* 2002-08-10 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-08-111-0/+16
| | | | | | | | | * mac.c (sys_select) [MAC_OSX]: New function. * macterm.c (MakeMeTheFrontProcess): New function. (mac_initialize): Call MakeMeTheFrontProcess. * s/darwin.h: Define select to sys_select.
* 2002-08-04 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-08-041-1/+10
| | | | | | * macterm.c (XTread_socket): Check that FrontNonFloatingWindow returns a valid window pointer before proceeding for keyDown and autoKey events.
* In src:Andrew Choi2002-08-031-128/+462
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-08-03 Andrew Choi <akochoi@shaw.ca> * macterm.c (USE_CARBON_EVENTS): New macro. (macCtrlKey, macShiftKey, macMetaKey, macAltKey): New macros. (x_iconify_frame): Call CollapseWindow. (Vmac_reverse_ctrl_meta): New variable. (Vmac_wheel_button_is_mouse_2): New variable. (init_mac_drag_n_drop): New function. (mac_do_receive_drag): New function. (mac_handle_service_event): New function. (init_service_handler): New function. (mac_to_emacs_modifiers): New function. (mac_event_to_emacs_modifiers): New function. (mac_get_mouse_btn): New function. (mac_convert_event_ref): New function. (XTread_socket) [USE_CARBON_EVENTS]: Call ReceiveNextEvent, SendEventToEventTarget, mac_event_to_emacs_modifiers, and mac_get_mouse_btn. (mac_initialize): Call init_mac_drag_n_drop and init_service_handler. * keyboard.c: Define Qmouse_wheel, mouse_wheel_syms, and lispy_mouse_wheel_names for MAC_OSX as well as for WINDOWS_NT. (kbd_buffer_get_event): Set used_mouse_menu for MENU_BAR_EVENT and TOOL_BAR_EVENT for MAC_OS as well. (make_lispy_event): Handle MOUSE_WHEEL_EVENT for MAC_OSX as well as for WINDOWS_NT. (syms_of_keyboard): Initialize Qmouse_wheel for MAC_OSX. * termhooks.h (event_kind): Define MOUSE_WHEEL_EVENT also for MAC_OSX. In lisp: 2002-08-03 Andrew Choi <akochoi@shaw.ca> * term/mac-win.el: Set keys to enable mouse wheel support.
* Most uses of XSTRING combined with STRING_BYTES or indirection changed toKen Raeburn2002-07-151-15/+15
| | | | | SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references left unchanged for now.
* 2002-07-03 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-07-041-6/+26
| | | | | * macterm.c (x_list_fonts): Fix comment. Cache fonts matching pattern. Search cache first.
* 2002-07-03 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-07-041-4/+10
| | | | | | * macterm.c (init_font_name_table): Also add entry for jisx0201.1976-0 coding for Japanese font. (XLoadQueryFont): Use it.
* In mac:Andrew Choi2002-07-011-14/+31
| | | | | | | | | | | | | | | | | | | | 2002-07-01 Andrew Choi <akochoi@shaw.ca> * Emacs.app/Contents/Resources/Emacs.icns: New file. * Emacs.app/Contents/Info.plist: Add CFBundleDocumentTypes and CFBundleIconFile entries. In src: 2002-07-01 Andrew Choi <akochoi@shaw.ca> * macterm.c (do_ae_open_documents) [MAC_OSX]: Call FSpMakeFSRef and FSRefMakePath to convert FSSpec returned with Apple Event to Posix pathname. (mac_initialize) [TARGET_API_MAC_CARBON]: Call init_required_apple_events and disable the `Quit' menu item provided automatically by the Carbon Toolbox.
* 2002-06-17 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-06-181-3/+7
| | | | | | | | | * macterm.c (mac_scroll_area): Set foreground and backcolor to black and white before scrolling. Restore frame background and foreground color after scrolling. (do_window_update): Call XClearWindow before calling expose_frame. (make_mac_frame): Don't set FRAME_BACKGROUND_PIXEL and FRAME_FOREGROUND_PIXEL of frame.
* 2002-06-17 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-06-181-2/+8
| | | | | * macterm.c (XTread_socket): If Vmac_command_key_is_meta is nil, test Mac command key as <ALT> key.
* 2002-06-16 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-06-171-1/+2
| | | | | * macterm.c (XTread_socket): Call FrontNonFloatingWindow instead of FrontWindow for cases keyDown and autoKey.
* In src/:Andrew Choi2002-06-161-21/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-06-16 Andrew Choi <akochoi@shaw.ca> * fontset.c (syms_of_fontset) [MAC_OS]: Set ASCII font of Vdefault_fontset to Monaco with mac-roman coding. * mac.c, macfns.c, macmenu.c, macterm.c: Undefine and redefine init_process before and after inclusion of Carbon/Carbon.h, resp. * macterm.c (x_new_font): Set font for normal_gc, reverse_gc, and cursor_gc. (add_font_name_table_entry): New function. (init_font_name_table): Use add_font_name_table_entry; add italic, bold, and bold-italic entries for truetype fonts. * xfaces.c (init_frame_faces) [MAC_OS]: Call realize_basic_faces for Mac too. (try_font_list) [MAC_OS]: If no font matches given registry, try fonts with any registry matching face_family. (realize_x_face) [MAC_OS]: Remove old ad-hoc fix to load font here. * s/darwin.h: If autoconf detects the Ncurses library, define LIBS_TERMCAP to -lncurses to use it. In lisp/: 2002-06-16 Andrew Choi <akochoi@shaw.ca> * term/mac-win.el (scalable-fonts-allowed): Set to t.
* Rename enum event_kind items.Pavel Janík2002-06-131-13/+13
|
* (x_draw_image_foreground, x_draw_image_foreground_1):Kim F. Storm2002-05-081-4/+12
| | | | Enlarge cursor rectangle drawn around image with non-zero relief.
* 2002-05-04 Andrew Choi <akochoi@shaw.ca>Andrew Choi2002-05-041-13/+1
| | | | | * macterm.c (XTread_socket): Call WaitNextEvent once instead of repeatedly.
* Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,Andrew Choi2002-04-261-0/+13192
lisp/ChangeLog, and src/ChangeLog for list of changes.