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: Emacs, Mac OS X and opening from Shell Date: Fri, 25 Sep 2015 15:47:35 +0100 Message-ID: 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 1443201910 1634 80.91.229.3 (25 Sep 2015 17:25:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Sep 2015 17:25:10 +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:25:08 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 1ZfWk3-0000Yd-Ey for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 19:25:03 +0200 Original-Received: from localhost ([::1]:49468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfWk2-0002bJ-OT for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Sep 2015 13:25:02 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55114) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfUHh-0004po-Vl for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 10:47:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfUHh-0005o4-2M for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 10:47:37 -0400 Original-Received: from mail-wi0-x230.google.com ([2a00:1450:400c:c05::230]:34299) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfUHg-0005n6-SE for help-gnu-emacs@gnu.org; Fri, 25 Sep 2015 10:47:37 -0400 Original-Received: by wicfx3 with SMTP id fx3so25162820wic.1 for ; Fri, 25 Sep 2015 07:47:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=NQ3AhQz/nn21Cno5QUcJzOrJaQR7bn6zDYhgDa3/fHk=; b=YFPYfXKvsAIofkWpP8pcBtMZX9Bmj89cuzvEsxvMOfT1lKeN4EQIF0LOmZrvoviUx+ OxmgsAc1MagukjbzzmKWlFF6xxLJn47kHHE4b7LSPO4LdVoSVYz5ytbmFl82HtU+uOsH cV5TQFEY4EKAyXdUYeg3+L04cepaM+EpkUbxpnvLRmIMeSMpsKRoi7sCJOkI3cV0ti21 rVDj4Oo4rZ8EhsFkWQdvuUOM1JZIHGCXBcoytguaOvTMrClnvho8X2uwL0oeEfJjkuNN SVl2dvrmaakqNyC1HESKFisb1bhlhkioWDuZemy++tR3uYFuqkCBhfPZh+MkKZriWoId Kuew== X-Received: by 10.180.103.199 with SMTP id fy7mr3810972wib.85.1443192455720; Fri, 25 Sep 2015 07:47:35 -0700 (PDT) Original-Received: by 10.194.78.47 with HTTP; Fri, 25 Sep 2015 07:47:35 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c05::230 X-Mailman-Approved-At: Fri, 25 Sep 2015 13:24:45 -0400 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:107349 Archived-At: Dear Emacs users, I've been an Emacs user for some decades, but never a really emacs hacker. In the latest months I've been using Sublime for Mac, but I am missing emacs a lot. 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? Thank you, Alberto --=20 Alberto Sim=C3=B5es