From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: emacsclient command line use existing client Date: Fri, 12 Sep 2014 09:43:54 +0200 Message-ID: <871trhjnb9.fsf@gmail.com> References: <87zje671q3.fsf@gmail.com> <87egvhk19v.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410507885 30058 80.91.229.3 (12 Sep 2014 07:44:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2014 07:44:45 +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 12 09:44:38 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 1XSLX2-00027b-SI for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 09:44:36 +0200 Original-Received: from localhost ([::1]:43169 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSLX2-0004GH-C0 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 03:44:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSLWj-00042A-CJ for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 03:44:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSLWb-0002vy-TI for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 03:44:17 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:44562) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSLWb-0002vu-ND for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 03:44:09 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XSLWa-0001uo-9u for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 09:44:08 +0200 Original-Received: from g231225251.adsl.alicedsl.de ([92.231.225.251]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Sep 2014 09:44:08 +0200 Original-Received: from tjolitz by g231225251.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Sep 2014 09:44:08 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 34 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231225251.adsl.alicedsl.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:mSGZDFIiauGg6kjf/y3ZmnoqBLk= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:99847 Archived-At: Michael Heerdegen writes: > torys.anderson@gmail.com (Tory S. Anderson) writes: > >> elisp_expr="(mailto-compose-mail \"$mailto\")" >> >> emacsclient -a "" -c -n --eval "$elisp_expr" \ >> '(set-window-dedicated-p (selected-window) t)' >> >> But somehow when I run this it starts a new emacsclient rather than >> using the one I have running. If I remove the `-a ""` then nothing >> happens at all. Why won't it connect to my existing emacsclient? > > What exactly do you mean with "existing emacsclient"? You must have a > running server. A running Emacs is not enough. Not sure what OP means, but I would like something similar too: Having one emacs server running with possibly many emacsclients connected, address one specific emacsclient from a program. Say I have a tmux window with 3 tiles, one of them the PicoLisp REPL, another an emacsclient window showing an emacs-w3m buffer. Now I want a PicoLisp command that calls emacs to show symbol documentation in emacs-w3m (instead of standalone w3m, which is easy to achieve). But there are several tmux windows opwn, and more emacsclients connected. How do I tell the emacs-server on the command-line to reuse that one specific emacsclient instance side-by-side with the PicoLisp REPL? -- cheers, Thorsten