From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Alberto_Sim=C3=B5es?= Newsgroups: gmane.emacs.help Subject: Re: Emacs, Mac OS X and opening from Shell Date: Fri, 25 Sep 2015 18:38:39 +0100 Message-ID: References: <831tdmietr.fsf@gnu.org> 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 1443202737 16379 80.91.229.3 (25 Sep 2015 17:38:57 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 17:38:57 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 25 19:38:57 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 1ZfWxU-0006ii-SZ for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 19:38:57 +0200 Original-Received: from localhost ([::1]:49529 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfWxU-0002to-Cv for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 13:38:56 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfWxK-0002t9-69 for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 13:38:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfWxF-0002Bo-U3 for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 13:38:46 -0400 Original-Received: from mail-wi0-x234.google.com ([2a00:1450:400c:c05::234]:34074) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfWxE-0002B5-GL; Fri, 25 Sep 2015 13:38:40 -0400 Original-Received: by wicfx3 with SMTP id fx3so31386439wic.1; Fri, 25 Sep 2015 10:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=t6r+fkcnq+YrDOQ6+L8iFiQIgudMpd6Afc/ATXocg0M=; b=wck5PEScgJza7JApwO15fxhr+skvOUKfWEHui35yMQ2zKYJTUXywEl8UHpwa8AgFjt E80KoytHvw0GVzH/1m+dwxSAOh8kTqbeC1JuR3ztsvE5dR2pRyPBG9L3NAvBwl+sGH9j in3TWrnqOdWgtxJiVzd70xihe+J352q+Z9vz2npVGl9dcIKThljN5vPS0hcDXeagBeqc /8rhm3X/a8BcAz0bxH7Q+pHW5dfaVegdGftRiXao3IyO6HMiGS0APkDC1hnfHk10fPGl udiUYU/qlc+/5He847E9fjX+1N2KYKYdWulSXDq48uyabgbyEU0dZYvjoziFGV2a/8kW cpUA== X-Received: by 10.180.89.41 with SMTP id bl9mr4653302wib.85.1443202720009; Fri, 25 Sep 2015 10:38:40 -0700 (PDT) Original-Received: by 10.194.78.47 with HTTP; Fri, 25 Sep 2015 10:38:39 -0700 (PDT) In-Reply-To: <831tdmietr.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::234 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 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:107351 Archived-At: On Fri, Sep 25, 2015 at 6:33 PM, Eli Zaretskii wrote: > > Date: Fri, 25 Sep 2015 15:47:35 +0100 > > From: Alberto Sim=C3=B5es > > > > 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 current > window > > (and focus that buffer if possible). > > > > Currently, my emacs command line is a shell script that looks like this= : > > > > /Applications/Emacs.app/Contents/MacOS/Emacs "$@" & > > > > This, of course, open a new window (although I usually close it, as the > > buffers are shared among windows). > > > > Any idea how I can make it behave as I described earlier? > > Make it invoke emacsclient instead. > > > It seems it opens another window as well :-( Thanks --=20 Alberto Sim=C3=B5es