[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacs-unicode-2 branch "make bootstrap" failure under MacOSX

From: Kenichi Handa
Subject: Re: emacs-unicode-2 branch "make bootstrap" failure under MacOSX
Date: Thu, 13 Sep 2007 22:11:33 +0900
User-agent: SEMI/1.14.3 (Ushinoya) FLIM/1.14.2 (Yagi-Nishiguchi) APEL/10.2 Emacs/23.0.0 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO)

In article <address@hidden>, CHENG Gao <address@hidden> writes:

> > It seems that no one is working on fixing it for the Mac
> > port (Carbon) now, sorry.  On the other hand, Adrian is
> > working on Cocoa port at <http://emacs-app.sf.net>.  Just
> > recently the new version was released.

> Handa san, thank you for your reply. In fact I tried the latest
> emacs-app (9.0 rc2) and previous versions. I'd say I prefer stock
> emacs-unicode-2 build though I do think Adrian's work is useful and
> should be merged into Emacs source the soonest.

If Adrian's work is useful, why do you prefer stock
emacs-unicode-2 build?

> If you say no one is working on fixing it, my heart sinks and becomes
> frost. You are the guru in this realm. Might I be shameless enough to
> ask you to fix this problem if you have some time? I just want a usable
> unicode branch.

Unfortunately, I don't have a Mac.  Anyway, the compile
error you showed is very strange.  

> ,----
> | gcc -c -fpascal-strings -DMAC_OSX   -Demacs -DHAVE_CONFIG_H   -I. 
> -I/Users/shgog/repo-cvs/emacs/src -fpascal-strings -DMAC_OSX -Dtemacs   -g 
> -O2 -Wno-pointer-sign  macterm.c
> | macterm.c: In function 'mac_set_unicode_keystroke_event':
> | macterm.c:10385: error: 'CHARSET_8_BIT_CONTROL' undeclared (first use in 
> this function)

The macro CHARSET_8_BIT_CONTROL was not defined in
emacs-unicode-2.  M-x vc-annotate shows that the part was
committed because of synching with the trunk code, and the
corresponding change log is this:

2007-06-07  YAMAMOTO Mitsuharu  <address@hidden>

        * mac.c (xrm_get_preference_database): Remove BLOCK_INPUT.

        * macfns.c (mac_get_window_bounds): Move extern to macterm.h.
        (compute_tip_xy) [TARGET_API_MAC_CARBON]: Use GetGlobalMouse.

        * macmenu.c [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
        [HAVE_DIALOGS]: New macros.
        [HAVE_DIALOGS] (mac_handle_dialog_event, create_and_show_dialog):
        Use them.
        (fill_menubar) [TARGET_API_MAC_CARBON]: Use CFString.

        * macselect.c [MAC_OSX] (install_service_handler): Rename from
        init_service_handler.  All callers changed.  Return OSStatus value.

        * macterm.c (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_image_string_qd): Likewise.
        (mac_draw_string_common): Use them.  Add INLINE.
        (XTmouse_position, x_scroll_bar_report_motion) [TARGET_API_MAC_CARBON]:
        (x_set_mouse_pixel_position) [MAC_OSX]: Use FRAME_OUTER_TO_INNER_DIFF_X
        [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) [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.
        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.

        * macterm.h (mac_get_window_bounds): Move extern from macfns.c.

Kenichi Handa

reply via email to

[Prev in Thread] Current Thread [Next in Thread]