unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* emacs cvs on macosx
@ 2005-05-22 13:40 Flatman
  2005-05-25  0:46 ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 5+ messages in thread
From: Flatman @ 2005-05-22 13:40 UTC (permalink / raw)


Hi

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 ?


I build emacs this way :

export CVS_RSH=ssh
cvs -z3 -d:ext:anoncvs@savannah.gnu.org:/cvsroot/emacs co emacs
cd emacs
make distclean
./configure --enable-carbon-app --without-x

make bootstrap

# if all is ok then install if I want to
echo sudo make install

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs cvs on macosx
  2005-05-22 13:40 emacs cvs on macosx Flatman
@ 2005-05-25  0:46 ` YAMAMOTO Mitsuharu
  2005-05-25  1:20   ` YAMAMOTO Mitsuharu
  0 siblings, 1 reply; 5+ messages in thread
From: YAMAMOTO Mitsuharu @ 2005-05-25  0:46 UTC (permalink / raw)
  Cc: emacs-devel

>>>>> On Sun, 22 May 2005 15:40:22 +0200, Flatman <flatman@swing.be> 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
				mituharu@math.s.chiba-u.ac.jp

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)

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs cvs on macosx
  2005-05-25  0:46 ` YAMAMOTO Mitsuharu
@ 2005-05-25  1:20   ` YAMAMOTO Mitsuharu
  2005-05-25 11:54     ` chad brown
  2005-05-26  6:51     ` Flatman
  0 siblings, 2 replies; 5+ messages in thread
From: YAMAMOTO Mitsuharu @ 2005-05-25  1:20 UTC (permalink / raw)
  Cc: emacs-devel

>>>>> On Wed, 25 May 2005 09:46:24 +0900, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> said:

> Could you try `open /Application/Emacs.app' ?

Oops, /Applications/Emacs.app, of course.

				     YAMAMOTO Mitsuharu
				mituharu@math.s.chiba-u.ac.jp

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs cvs on macosx
  2005-05-25  1:20   ` YAMAMOTO Mitsuharu
@ 2005-05-25 11:54     ` chad brown
  2005-05-26  6:51     ` Flatman
  1 sibling, 0 replies; 5+ messages in thread
From: chad brown @ 2005-05-25 11:54 UTC (permalink / raw)
  Cc: flatman, emacs-devel

One can also use `open -a Emacs'.

*chad


On May 24, 2005, at 9:20 PM, YAMAMOTO Mitsuharu wrote:

>>>>>> On Wed, 25 May 2005 09:46:24 +0900, YAMAMOTO Mitsuharu  
>>>>>> <mituharu@math.s.chiba-u.ac.jp> said:
>>>>>>
>
>
>> Could you try `open /Application/Emacs.app' ?
>>
>
> Oops, /Applications/Emacs.app, of course.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: emacs cvs on macosx
  2005-05-25  1:20   ` YAMAMOTO Mitsuharu
  2005-05-25 11:54     ` chad brown
@ 2005-05-26  6:51     ` Flatman
  1 sibling, 0 replies; 5+ messages in thread
From: Flatman @ 2005-05-26  6:51 UTC (permalink / raw)


YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> writes:

>>>>>> On Wed, 25 May 2005 09:46:24 +0900, YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp> said:
>
>> Could you try `open /Application/Emacs.app' ?
>
> Oops, /Applications/Emacs.app, of course.
>
> 				     YAMAMOTO Mitsuharu
> 				mituharu@math.s.chiba-u.ac.jp


Thanks for the help
I deleted the cvs-dir and recompiled the stuff and now emacs.app works fine...

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2005-05-26  6:51 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-22 13:40 emacs cvs on macosx Flatman
2005-05-25  0:46 ` YAMAMOTO Mitsuharu
2005-05-25  1:20   ` YAMAMOTO Mitsuharu
2005-05-25 11:54     ` chad brown
2005-05-26  6:51     ` Flatman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).