From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Subhan Michael Tindall Newsgroups: gmane.emacs.help Subject: RE: emacsclient command line use existing client Date: Fri, 12 Sep 2014 16:28:14 +0000 Message-ID: <64a4ddd3165649c29050dc1f99d05dda@fbmailsvr1.familycareinc.org> References: <87zje671q3.fsf@gmail.com> <87egvhk19v.fsf@web.de> <87lhppvxsj.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410539325 26040 80.91.229.3 (12 Sep 2014 16:28:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 12 Sep 2014 16:28:45 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: "'Tory S. Anderson'" , Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 12 18:28:39 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 1XSTiB-0007v2-K9 for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 18:28:39 +0200 Original-Received: from localhost ([::1]:46279 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSTiB-00046S-8o for geh-help-gnu-emacs@m.gmane.org; Fri, 12 Sep 2014 12:28:39 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49877) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSThw-00044O-5R for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 12:28:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XSThr-0003vP-A1 for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 12:28:24 -0400 Original-Received: from outbound.familycareinc.org ([207.170.205.147]:43921) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XSThr-0003ux-4q for help-gnu-emacs@gnu.org; Fri, 12 Sep 2014 12:28:19 -0400 X-IronPort-AV: E=Sophos;i="5.04,514,1406617200"; d="scan'208";a="2175002" Original-Received: from fcmailsvr1.familycareinc.org ([10.0.1.81]) by fcspamapp1.familycareinc.org with ESMTP; 12 Sep 2014 09:28:17 -0700 Original-Received: from FBMAILSVR1.familycareinc.org (10.1.104.3) by fcmailsvr1.familycareinc.org (10.0.1.81) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 12 Sep 2014 09:28:16 -0700 Original-Received: from FBMAILSVR1.familycareinc.org (10.1.104.3) by fbmailsvr1.familycareinc.org (10.1.104.3) with Microsoft SMTP Server (TLS) id 15.0.913.22; Fri, 12 Sep 2014 09:28:15 -0700 Original-Received: from FBMAILSVR1.familycareinc.org ([fe80::d1f7:bbf4:49e6:2474]) by fbmailsvr1.familycareinc.org ([fe80::d1f7:bbf4:49e6:2474%17]) with mapi id 15.00.0913.011; Fri, 12 Sep 2014 09:28:15 -0700 Thread-Topic: emacsclient command line use existing client Thread-Index: AQHPzcAqsLwArct/70uKXIRCCLKUaZv8yw4YgACgYCeAAEYe8A== In-Reply-To: <87lhppvxsj.fsf@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.1.170] X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 207.170.205.147 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:99859 Archived-At: Are you setting the name of the server in your startup script? Maybe this o= ption will help: '-s server-name' '--socket-name=3Dserver-name' Connect to the Emacs server named server-name. The server name is given by = the variable server-name on the Emacs server. If this option is omitted, em= acsclient connects to the first server it finds. (This option is not suppor= ted on MS-Windows.) > -----Original Message----- > From: help-gnu-emacs-bounces+subhant=3Dfamilycareinc.org@gnu.org > [mailto:help-gnu-emacs-bounces+subhant=3Dfamilycareinc.org@gnu.org] On > Behalf Of Tory S. Anderson > Sent: Friday, September 12, 2014 5:17 AM > To: Michael Heerdegen > Cc: help-gnu-emacs@gnu.org > Subject: Re: emacsclient command line use existing client > = > Thanks for prompting me to be more precise. When my OS starts I launch a > server with the autostart `emacs-client` command, and have the line in my > .emacs to ensure the server is started. As it should, opening any number = of > new frames (or launching emacs-client again) will share the same buffer l= ist, > etc. However, this shell script for launching an email (apparently) start= s a new > server; it isn't sharing anything with the other frames, and if I don't `= kill- > emacs` I end up with two servers running. Clearly, not acceptable. > = > Michael Heerdegen writes: > = > > torys.anderson@gmail.com (Tory S. Anderson) writes: > > > >> elisp_expr=3D"(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. This message is intended for the sole use of the individual and entity to w= hich it is addressed and may contain information that is privileged, confid= ential and exempt from disclosure under applicable law. If you are not the = intended addressee, nor authorized to receive for the intended addressee, y= ou are hereby notified that you may not use, copy, disclose or distribute t= o anyone the message or any information contained in the message. If you ha= ve received this message in error, please immediately advise the sender by = reply email and delete the message. Thank you.