From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Emacs, Mac OS X and opening from Shell Date: Fri, 25 Sep 2015 20:33:36 +0300 Message-ID: <831tdmietr.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: ger.gmane.org 1443202439 11137 80.91.229.3 (25 Sep 2015 17:33:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 17:33:59 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 25 19:33:50 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZfWsW-00077J-DI for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 19:33:48 +0200 Original-Received: from localhost ([::1]:49505 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfWsV-0007gm-SP for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 13:33:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42565) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfWsK-0007eC-EE for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 13:33:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfWsH-0007pC-Pe for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 13:33:36 -0400 Original-Received: from mtaout26.012.net.il ([80.179.55.182]:55052) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfWsH-0007oa-IL for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 13:33:33 -0400 Original-Received: from conversion-daemon.mtaout26.012.net.il by mtaout26.012.net.il (HyperSendmail v2007.08) id <0NV800F00THE0J00@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 20:36:13 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by mtaout26.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NV80098TU8DD270@mtaout26.012.net.il> for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 20:36:13 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.182 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:107350 Archived-At: > Date: Fri, 25 Sep 2015 15:47:35 +0100 > From: Alberto Sim=C3=B5es >=20 > So, in the come back, I am trying to make the emacs command to open= an > emacs window, if one is open, or opening a new buffer in the curren= t window > (and focus that buffer if possible). >=20 > Currently, my emacs command line is a shell script that looks like = this: >=20 > /Applications/Emacs.app/Contents/MacOS/Emacs "$@" & >=20 > This, of course, open a new window (although I usually close it, as= the > buffers are shared among windows). >=20 > Any idea how I can make it behave as I described earlier? Make it invoke emacsclient instead.