From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: emacs cvs on macosx Date: Wed, 25 May 2005 09:46:24 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1116982536 29371 80.91.229.2 (25 May 2005 00:55:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 25 May 2005 00:55:36 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed May 25 02:55:31 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DakAz-00062g-DT for ged-emacs-devel@m.gmane.org; Wed, 25 May 2005 02:55:13 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DakEk-00014m-AY for ged-emacs-devel@m.gmane.org; Tue, 24 May 2005 20:59:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DakB7-0000Ry-AD for emacs-devel@gnu.org; Tue, 24 May 2005 20:55:22 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DakAo-0000GT-F0 for emacs-devel@gnu.org; Tue, 24 May 2005 20:55:12 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DakAm-00005X-LU for emacs-devel@gnu.org; Tue, 24 May 2005 20:55:00 -0400 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Dak2p-00075m-I8 for emacs-devel@gnu.org; Tue, 24 May 2005 20:46:48 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id 549A62CB0; Wed, 25 May 2005 09:46:24 +0900 (JST) Original-To: flatman@swing.be In-Reply-To: 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) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:37590 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:37590 >>>>> On Sun, 22 May 2005 15:40:22 +0200, Flatman 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)