From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Robert Thorpe Newsgroups: gmane.emacs.help Subject: Re: Reuse frame with emacsclient and/or use shell aliases when finding files Date: Sat, 31 May 2014 16:49:54 +0100 Message-ID: <877g52q76l.fsf@robertthorpeconsulting.com> References: <5fefb77c-7a7b-4ec6-bde3-fef2d2aa4877@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1401551438 21245 80.91.229.3 (31 May 2014 15:50:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 May 2014 15:50:38 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jacob Gerlach Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 31 17:50:30 2014 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 1WqlY8-0007Ao-Mr for geh-help-gnu-emacs@m.gmane.org; Sat, 31 May 2014 17:50:24 +0200 Original-Received: from localhost ([::1]:60252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqlY8-0001SK-D2 for geh-help-gnu-emacs@m.gmane.org; Sat, 31 May 2014 11:50:24 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqlXp-0001Ep-21 for help-gnu-emacs@gnu.org; Sat, 31 May 2014 11:50:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WqlXg-0004bU-Mu for help-gnu-emacs@gnu.org; Sat, 31 May 2014 11:50:05 -0400 Original-Received: from outbound-smtp04.blacknight.com ([81.17.249.35]:57360) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WqlXg-0004bP-GE for help-gnu-emacs@gnu.org; Sat, 31 May 2014 11:49:56 -0400 Original-Received: from mail.blacknight.com (pemlinmail02.blacknight.ie [81.17.254.11]) by outbound-smtp04.blacknight.com (Postfix) with ESMTP id D217199102 for ; Sat, 31 May 2014 15:47:35 +0000 (UTC) Original-Received: (qmail 24285 invoked from network); 31 May 2014 15:49:55 -0000 Original-Received: from unknown (HELO RTLaptop) (rt@robertthorpeconsulting.com@[109.78.94.25]) by 81.17.254.9 with ESMTPSA (DHE-RSA-AES128-SHA encrypted, authenticated); 31 May 2014 15:49:54 -0000 In-Reply-To: <5fefb77c-7a7b-4ec6-bde3-fef2d2aa4877@googlegroups.com> (message from Jacob Gerlach on Sat, 31 May 2014 07:16:03 -0700 (PDT)) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 81.17.249.35 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:97985 Archived-At: Jacob Gerlach writes: >> That's wierd. Have a look at the section on "Emacs Server" in the Emacs >> manual. Emacsclient can only work if you have an Emacs server running. >> To get one you have to start Emacs then run (server-start). After that >> emacsclient will send a message to the running Emacs server telling it >> to open the file. > Perhaps a bit of miscommunication. I was starting the server by > running `emacs --daemon'. From my reading of the server help page, > this does more or less the same thing as a regular instance with > (server-start). Ah, daemon mode is a different thing. I don't know about it, maybe someone else here does though. > Previous comment about --daemon notwithstanding, I tried it the way > you suggest, and this seems closer to the functionality I'm looking > for. I need to play around with this a bit and see if I can tweak it > to work exactly the way I like. > For example, I'd like the same shell command to start emacs initially > as to connect as a client if it's already running. I think I figured > out how to do this when running --daemon, specifying alternate editor > as ''. I imagine it's something similar. Set ALTERNATE_EDITOR to "emacs". That said what you want should work with emacs --daemon. BR, Robert Thorpe