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, 19 Sep 2014 17:38:27 +0000 Message-ID: <68f705e2e2b14796ad557f2155e37f39@fcmailsvr2.familycareinc.org> References: <87zje671q3.fsf@gmail.com> <87egvhk19v.fsf@web.de> <87lhppvxsj.fsf@gmail.com> <87iokpuo0j.fsf@gmail.com> <87iokjmt54.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 1411148359 12394 80.91.229.3 (19 Sep 2014 17:39:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2014 17:39:19 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: "'Tory S. Anderson'" , Oliver Kappel Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 19:39:14 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 1XV29I-0004O9-R1 for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 19:39:12 +0200 Original-Received: from localhost ([::1]:59681 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV29H-0006po-Tb for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 13:39:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53845) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV28y-0006pX-Jb for help-gnu-emacs@gnu.org; Fri, 19 Sep 2014 13:38:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XV28u-0001kF-8H for help-gnu-emacs@gnu.org; Fri, 19 Sep 2014 13:38:52 -0400 Original-Received: from outbound.familycareinc.org ([207.170.205.147]:36106) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV28t-0001jc-Uc for help-gnu-emacs@gnu.org; Fri, 19 Sep 2014 13:38:48 -0400 X-IronPort-AV: E=Sophos;i="5.04,556,1406617200"; d="scan'208";a="2201245" Original-Received: from fcmailsvr1.familycareinc.org ([10.0.1.81]) by fcspamapp1.familycareinc.org with ESMTP; 19 Sep 2014 10:38:43 -0700 Original-Received: from FCMAILSVR2.familycareinc.org (10.0.1.9) by fcmailsvr1.familycareinc.org (10.0.1.81) with Microsoft SMTP Server (TLS) id 14.3.174.1; Fri, 19 Sep 2014 10:38:42 -0700 Original-Received: from FCMAILSVR2.familycareinc.org (10.0.1.9) by fcmailsvr2.familycareinc.org (10.0.1.9) with Microsoft SMTP Server (TLS) id 15.0.913.22; Fri, 19 Sep 2014 10:38:28 -0700 Original-Received: from FCMAILSVR2.familycareinc.org ([fe80::55f1:10a1:94d8:d4cc]) by fcmailsvr2.familycareinc.org ([fe80::55f1:10a1:94d8:d4cc%18]) with mapi id 15.00.0913.011; Fri, 19 Sep 2014 10:38:28 -0700 Thread-Topic: emacsclient command line use existing client Thread-Index: AQHPzcAqsLwArct/70uKXIRCCLKUaZwCJeSjgAaYhJOAAAaaQA== In-Reply-To: <87iokjmt54.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:100032 Archived-At: > -----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 19, 2014 10:12 AM > To: Oliver Kappel > Cc: help-gnu-emacs@gnu.org > Subject: Re: emacsclient command line use existing client > = > *sigh* still no go. I've put the full path in the calls everywhere, and I= 've > named the server "server" instead of "emacs-client" (you were right; that > was one problem). When I use a shortcut that calls just the "emacs-client= -c" > it opens, attached to "server" (with all the same buffers still available= ). When > I go to the start menu and find "emacs client", it is also working approp= riately. > However, when I hit ~/email.so from my Firefox, it launches a new server. > Adding the fully qualified path, and/or "-s server" doesn't change this. > = > $ whereis emacsclient > emacsclient: /usr/bin/emacsclient /usr/share/man/man1/emacsclient.1.gz > = > I have only one location. Is there some reason that .so script (I could j= ust as > well rename it to .sh) is opening it as a new server? > = > Running: > GNU Emacs 24.3.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.10.9) of 2014- > 08-18 on buildvm-21.phx2.fedoraproject.org Fedora 20 x64 in KDE > = > << full contents of email.so >> > ------------------------------- > #!/bin/sh > # emacs-mailto-handler > = > mailto=3D$1 > mailto=3D"mailto:${mailto#mailto:}" > mailto=3D$(printf '%s\n' "$mailto" | sed -e 's/[\"]/\\&/g') > emacs_server=3D"server" > elisp_expr=3D"(mailto-compose-mail \"$mailto\")" > = > /usr/bin/emacsclient -a "" -c -n -s "$emacs_server" --eval "$elisp_expr" \ > '(set-window-dedicated-p (selected-window) t)' ^^^^^^ This line is your most obvious potential point of failure. Have you checke= d your running script to make sure that your variable expansion is proper? IE Is -s "$emacs_server" actually expanding to "server" and not say ""serve= r"" or something obnoxious like that? = Try hard-coding the call line to -s "server" and see what happens. 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.