>>>>> On Sun, 22 May 2005 15:40:22 +0200, Flatman <[EMAIL PROTECTED]> 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
                                [EMAIL PROTECTED]

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)


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

Reply via email to