[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs cvs on macosx
From: |
YAMAMOTO Mitsuharu |
Subject: |
Re: emacs cvs on macosx |
Date: |
Wed, 25 May 2005 09:46:24 +0900 |
User-agent: |
Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/22.0.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) |
>>>>> On Sun, 22 May 2005 15:40:22 +0200, Flatman <address@hidden> said:
> When building emacs from cvs on macosx I got this weird behaviour
> that the GUI window stays in the back while other windows overlap
> it.
> Emacs works nice with -nw option But when launched in Aqua/GUI, the
> app window can't be made frontmost :-( Any idea ?
Maybe you executed a binary (such as /usr/local/bin/emacs) that was
not a part of a bundle. Could you try `open /Application/Emacs.app' ?
With the following patch, Carbon Emacs falls back on terminal mode
when it is executed without a bundle. I found a similar code in
mac_check_bundle (macterm.c), but it seems to be not in effect
currently.
YAMAMOTO Mitsuharu
address@hidden
Index: src/mac.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/mac.c,v
retrieving revision 1.37
diff -c -r1.37 mac.c
*** src/mac.c 13 May 2005 08:44:20 -0000 1.37
--- src/mac.c 25 May 2005 00:34:52 -0000
***************
*** 4197,4204 ****
app_bundle_pathname. */
bundle = CFBundleGetMainBundle ();
! if (!bundle)
! return;
bundleURL = CFBundleCopyBundleURL (bundle);
if (!bundleURL)
--- 4197,4209 ----
app_bundle_pathname. */
bundle = CFBundleGetMainBundle ();
! if (!bundle || CFBundleGetIdentifier (bundle) == NULL)
! {
! /* We could not find the bundle identifier. For now, prevent
! the fatal error by bringing it up in the terminal. */
! inhibit_window_system = 1;
! return;
! }
bundleURL = CFBundleCopyBundleURL (bundle);
if (!bundleURL)