1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00
Commit graph

32 commits

Author SHA1 Message Date
Thien-Thi Nguyen
0b5538bd85 Update years in copyright notice; nfc. 2005-08-07 12:33:19 +00:00
YAMAMOTO Mitsuharu
50971a123a (Fx_popup_menu, Fx_popup_menu): Doc fixes. 2005-07-23 07:48:26 +00:00
Lute Kamstra
4fc5845fe8 Update FSF's address. 2005-07-04 16:49:24 +00:00
Kim F. Storm
89f2614d96 * composite.c (compose_chars_in_text):
* eval.c (do_autoload):
* macmenu.c (set_frame_menubar):
* process.c (read_process_output, exec_sentinel):
* xmenu.c (set_frame_menubar):
* xdisp.c (prepare_menu_bars, update_menu_bar, update_tool_bar):
* w32menu.c (set_frame_menubar):
Use record_unwind_save_match_data.
Rename restore_match_data to restore_search_regs.
2005-06-08 22:33:36 +00:00
Jan Djärv
f5f870c03c * macmenu.c (menu_quit_handler, install_menu_quit_handler): New
functions for popping down menus on C-g.
 (set_frame_menubar, mac_menu_show): Call install_menu_quit_handler.
2005-06-06 20:24:13 +00:00
Jan Djärv
b89875707c * macmenu.c (cleanup_popup_menu): New function.
(Fx_popup_menu): unwind protect cleanup_popup_menu in case
mac_menu_show Quit:s.
(mac_menu_show): Quit on cancel if not popped up on click (i.e.
a dialog).
2005-06-04 08:06:57 +00:00
Nick Roberts
16b1266812 (Fx_popup_dialog): Allow 3rd optional argument. 2005-05-24 08:45:35 +00:00
Nick Roberts
3f2975360c (Fx_popup_dialog): Add a third boolean argument to select frame title
("Question"/"Information").
(mac_dialog_show): Use it.
2005-05-24 08:42:23 +00:00
YAMAMOTO Mitsuharu
b78c807ab4 Don't include signal.h. 2005-05-13 08:43:18 +00:00
YAMAMOTO Mitsuharu
04b5475bff [TARGET_API_MAC_CARBON]: Don't include headers that are included via
Carbon.h.
2005-03-04 11:09:33 +00:00
Steven Tamm
d8f96db8da * macterm.h (cfstring_create_with_utf8_cstring): Added prototype.
* image.c (image_load_quartz2d): Use
cfstring_create_with_utf8_cstring
* macmenu.c (add_menu_item): Use
cfstring_create_with_utf8_cstring
* macfns.c (x_set_name, x_set_title): Use
cfstring_create_with_utf8_cstring
(Fx_file_dialog): Use cfstring_create_with_utf8_cstring and use
constant CFRefs instead of creating them each time for labels.
* mac.c (cfstring_create_with_utf8_cstring): Added to prevent
crashes with invalid characters.
2004-12-03 17:00:11 +00:00
Steven Tamm
f86bdc80c4 * macmenu.c (add_menu_item): Fallback on MacRoman if encoding
menu text as UTF8 fails.
2004-12-01 15:51:22 +00:00
Steven Tamm
bf06c82f4b macfns.c (mac_get_window_bounds): Add extern.
(x_real_positions): Use mac_get_window_bounds.

macmenu.c (update_submenu_strings): Apply 2004-09-07 change for
xmenu.c (YAILOM).

macterm.c [!MAC_OSX]: Include Windows.h.
(front_emacs_window): Rename from mac_front_window.  All uses
changed.  Return the frontmost non-tooltip emacs window.
(mac_get_window_bounds): New function.
(x_calc_absolute_position): Use the difference of width and height
between the inner and outer window.
(x_set_offset): Specify window position by the coordinae of the
outer window.  Adjust the position if the title bar is completely
outside the screen.
(app_is_suspended, app_sleep_time): Remove unused variables.
(do_app_resume, do_app_suspend): Remove their contents because
window-activate/deactivate events will do the job.
(do_zoom_window): Remove unused variables.  Make compliant to the
standard way of zooming.  Set f->left_pos and f->top_pos.
(XTread_socket): Don't use argument `expected'.  Don't use
FrontWindow to determine the clicked window.  Exclude unprocessed
mouseUp cases in the early stage.  Add parentheses to fix operator
precedence.
(XTread_socket) [TARGET_API_MAC_CARBON]: Don't specify drag area.
2004-10-06 15:38:53 +00:00
Steven Tamm
a8e080143b (add_menu_item): Remove unused variable `i'. Don't
let separator items destroy refence constants of other menu items.
2004-09-02 17:00:36 +00:00
Jan Djärv
16ceacc222 * macmenu.c (_widget_value): Added lname and lkey.
(single_submenu): Set lname and lkey in widget_value
instead of name and key.
(update_submenu_strings): New function.
(set_frame_menubar): Remove call to inhibit_garbage_collection,
call update_submenu_strings.
2004-08-30 20:32:00 +00:00
Steven Tamm
11715f92de macmenu.c (mac_menu_show): Remove shadowing of menu variable
by using different names for inner loop variables.
2004-08-30 18:06:21 +00:00
Steven Tamm
383418e512 macmenu.c (ENCODE_MENU_STRING): Added to handle multibyte
strings in menu items.
(single_submenu): Use ENCODE_MENU_STRING
(mac_menu_show): Use ENCODE_MENU_STRING.  Reset grabbed because
button release isn't passed to event loop
(add_menu_item): Use SetMenuItemWithCFString
2004-08-26 18:43:29 +00:00
Steven Tamm
50bf76732b Support Tooltips with the Carbon emacs port.
Some code cleanup using helper macros.
2004-05-30 00:18:41 +00:00
Steven Tamm
a433994a5a Various fixes to support USE_LSB_TAG with carbon emacs. Mostly fixing
prototypes and confusions between pointers and lisp objects
2004-05-14 03:07:12 +00:00
Steven Tamm
e35644615b Inserting Yamomotosan's changes for MacOSX image support, better support
of Asian fonts, and some long awaited header cleanup and centralization.
2004-02-26 17:46:48 +00:00
Miles Bader
ab5796a9f9 Add arch taglines 2003-09-01 15:45:59 +00:00
Stefan Monnier
f456401b96 (menubar_selection_callback): Don't pass uninitialized
data to kbd_buffer_store_event.
2003-06-15 21:05:34 +00:00
Kim F. Storm
90022f5a3e Make (few) trivial substitutions for renamed and
new macros in dispextern.h, frame.h and window.h.
2003-05-24 22:07:03 +00:00
Juanma Barranquero
177c0ea743 Trailing whitespace deleted. 2003-02-04 14:56:31 +00:00
Steven Tamm
61f1d295a2 * macmenu.c (MIN_POPUP_SUBMENU_ID): Added
(mac_menu_show): Added support for hierarchical popup menus
	(add_menu_item): Removed indentation support
	(fill_submenu, fill_menu): Now creates hierarchical menus
	instead of using indentation
2002-12-22 23:14:52 +00:00
Andrew Choi
72742a999a 2002-12-02 Andrew Choi <akochoi@shaw.ca>
* 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.
2002-12-02 17:13:46 +00:00
Andrew Choi
95fb757742 2002-10-06 Andrew Choi <akochoi@shaw.ca>
* macmenu.c (mac_menu_show): Add j to count menu items; match
        menu_item_selection to it to find selected item.
2002-10-07 04:00:07 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Juanma Barranquero
aed1337830 Use macro SPECPDL_INDEX. 2002-07-11 14:18:02 +00:00
Andrew Choi
f00691a3e4 In src/:
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.
2002-06-16 23:08:57 +00:00
Pavel Janík
b3e8cc4dfb Remove declaration of Qmouse_click and Qevent_kind. 2002-06-12 20:55:27 +00:00
Andrew Choi
e0f712ba55 Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
lisp/ChangeLog, and src/ChangeLog for list of changes.
2002-04-26 23:39:06 +00:00
Renamed from mac/src/macmenu.c (Browse further)