From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Andrew Choi Newsgroups: gmane.emacs.devel Subject: Mac OS X Command Line Options Bug Fix Date: Sat, 10 Aug 2002 18:44:26 -0600 Sender: emacs-devel-admin@gnu.org Message-ID: <16972.1220074736$1029026683@news.gmane.org> Reply-To: akochoi@shaw.ca NNTP-Posting-Host: localhost.gmane.org Content-Transfer-Encoding: 7BIT X-Trace: main.gmane.org 1029026683 10815 127.0.0.1 (11 Aug 2002 00:44:43 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 11 Aug 2002 00:44:43 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17dgqY-0002oK-00 for ; Sun, 11 Aug 2002 02:44:42 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17dhDq-0004CS-00 for ; Sun, 11 Aug 2002 03:08:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17dgrK-0005Eq-00; Sat, 10 Aug 2002 20:45:30 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17dgqL-0005EY-00 for emacs-devel@gnu.org; Sat, 10 Aug 2002 20:44:29 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17dgqK-0005EM-00 for emacs-devel@gnu.org; Sat, 10 Aug 2002 20:44:29 -0400 Original-Received: from h24-71-223-10.cg.shawcable.net ([24.71.223.10] helo=pd4mo2so.prod.shaw.ca) by monty-python.gnu.org with esmtp (Exim 4.10) id 17dgqK-0005EH-00 for emacs-devel@gnu.org; Sat, 10 Aug 2002 20:44:28 -0400 Original-Received: from pd6mr4so.prod.shaw.ca (pd6mr4so-qfe3.prod.shaw.ca [10.0.141.219]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0N0042OM23V9@l-daemon> for emacs-devel@gnu.org; Sat, 10 Aug 2002 18:44:27 -0600 (MDT) Original-Received: from pn2ml9so.prod.shaw.ca (pn2ml9so-qfe0.prod.shaw.ca [10.0.121.7]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0N00EI9M10G5@l-daemon> for emacs-devel@gnu.org; Sat, 10 Aug 2002 18:43:48 -0600 (MDT) Original-Received: from localhost.shawmail (h24-71-203-212.cg.shawcable.net [24.71.203.212]) by l-daemon (iPlanet Messaging Server 5.1 HotFix 0.8 (built May 12 2002)) with ESMTP id <0H0N001GEM229L@l-daemon> for emacs-devel@gnu.org; Sat, 10 Aug 2002 18:44:27 -0600 (MDT) Original-To: mac-emacs-devel@lists.sourceforge.net, emacs-devel@gnu.org Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6435 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6435 Hello Everyone, I've checked in the following patch to the CVS that allows Emacs to be started correctly as a GUI application from the terminal on Mac OS X. Therefore command line options can now be passed to Emacs. The OS X loader still requires a pathname to the executable in the bundle be typed to the shell for Emacs to correctly find its resources. Now that this problem is solved, I will soon be changing src/makefile.in to install the executable only at one place (within the application bundle in its usual place, which is placed in say /Applications/ or some other location specified by the user). The `executable' in $prefix/bin/ will really be just something like the following script: #!/bin/sh /Applications/Emacs.app/Contents/MacOS/Emacs $* When invoked from the command line, it will start a GUI or terminal version depending on whether the -nw switch is used. Of course one can still double-click on the application bundle in the Finder to start Emacs. I invite everyone to test this patch. Andrew. ----- 2002-08-10 Andrew Choi * mac.c (sys_select) [MAC_OSX]: New function. * macterm.c (MakeMeTheFrontProcess): New function. (mac_initialize): Call MakeMeTheFrontProcess. * s/darwin.h: Define select to sys_select.