From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: emacsclient command line use existing client Date: Fri, 12 Sep 2014 04:42:20 +0200 Message-ID: <87egvhk19v.fsf@web.de> References: <87zje671q3.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410489789 818 80.91.229.3 (12 Sep 2014 02:43:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2014 02:43:09 +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 04:43:03 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 1XSGpC-0006zb-3A for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 04:43:02 +0200 Original-Received: from localhost ([::1]:42131 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSGpB-0006JZ-FX for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2014 22:43:01 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:32981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSGot-0006JI-K8 for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 22:42:51 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSGom-0003v5-4a for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 22:42:43 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:46926) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSGol-0003ux-V8 for help-gnu-emacs@gnu.org; Thu, 11 Sep 2014 22:42:36 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XSGok-0006oI-3R for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 04:42:34 +0200 Original-Received: from ip-90-187-93-155.web.vodafone.de ([90.187.93.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Sep 2014 04:42:34 +0200 Original-Received: from michael_heerdegen by ip-90-187-93-155.web.vodafone.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Sep 2014 04:42:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 15 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ip-90-187-93-155.web.vodafone.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:Mu+58jESfEWCOPK75n6Pk6xH2MI= 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:99840 Archived-At: 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. Michael.