From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jacob Gerlach Newsgroups: gmane.emacs.help Subject: Re: Reuse frame with emacsclient and/or use shell aliases when finding files Date: Sat, 31 May 2014 07:16:03 -0700 (PDT) Message-ID: <5fefb77c-7a7b-4ec6-bde3-fef2d2aa4877@googlegroups.com> References: <723a5906-bae9-4db0-8c74-763712cc1410@googlegroups.com> (message from Jacob Gerlach on Fri, 30 May 2014 18:57:19 -0700 (PDT))> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1401546024 27256 80.91.229.3 (31 May 2014 14:20:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 May 2014 14:20:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 31 16:20:18 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 1Wqk8v-0008K1-Hc for geh-help-gnu-emacs@m.gmane.org; Sat, 31 May 2014 16:20:17 +0200 Original-Received: from localhost ([::1]:59925 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wqk8v-0006u1-0t for geh-help-gnu-emacs@m.gmane.org; Sat, 31 May 2014 10:20:17 -0400 X-Received: by 10.182.87.3 with SMTP id t3mr9406449obz.20.1401545763556; Sat, 31 May 2014 07:16:03 -0700 (PDT) X-Received: by 10.140.101.147 with SMTP id u19mr33298qge.10.1401545763397; Sat, 31 May 2014 07:16:03 -0700 (PDT) Original-Path: usenet.stanford.edu!c1no21496586igq.0!news-out.google.com!gi6ni19370igc.0!nntp.google.com!hw13no3168014qab.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=98.217.114.175; posting-account=Hx-_8AoAAACyMXgs4MCS3wNERNLct_lk Original-NNTP-Posting-Host: 98.217.114.175 User-Agent: G2/1.0 Injection-Date: Sat, 31 May 2014 14:16:03 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:205713 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:97983 Archived-At: > 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). > Try the following: > * Close all Emacs instances. > * From the command line type "Emacs &" and minimize the Emacs. > * Execute (server-start) e.g. by typing it into scratch and pressing C-x > C-e with the cursor at the end of the line. > * From a shell type "emacsclient file.txt". > After the last step the existing Emacs should pop-up with the file open > in it. 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. > So it does. I'd say that's a bug in shell mode. OK. I double checked that this occurs under emacs -q, so I'll M-x report-emacs-bug about it.