From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: torys.anderson@gmail.com (Tory S. Anderson) Newsgroups: gmane.emacs.help Subject: Re: emacsclient command line use existing client Date: Fri, 19 Sep 2014 13:44:58 -0400 Message-ID: <877g0zmrmt.fsf@gmail.com> References: <87zje671q3.fsf@gmail.com> <87egvhk19v.fsf@web.de> <87lhppvxsj.fsf@gmail.com> <87iokpuo0j.fsf@gmail.com> <87iokjmt54.fsf@gmail.com> <68f705e2e2b14796ad557f2155e37f39@fcmailsvr2.familycareinc.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411148737 16939 80.91.229.3 (19 Sep 2014 17:45:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2014 17:45:37 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Subhan Michael Tindall Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 19:45:32 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 1XV2FP-0006YP-26 for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 19:45:31 +0200 Original-Received: from localhost ([::1]:59710 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV2FO-0000BW-Ab for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 13:45:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56097) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV2F4-0000BI-MN for help-gnu-emacs@gnu.org; Fri, 19 Sep 2014 13:45:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XV2F0-00040H-9X for help-gnu-emacs@gnu.org; Fri, 19 Sep 2014 13:45:10 -0400 Original-Received: from mail-yk0-x236.google.com ([2607:f8b0:4002:c07::236]:64249) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV2F0-0003oG-5M for help-gnu-emacs@gnu.org; Fri, 19 Sep 2014 13:45:06 -0400 Original-Received: by mail-yk0-f182.google.com with SMTP id 20so130058yks.27 for ; Fri, 19 Sep 2014 10:45:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=QJOujDIlyyvhAOye8qr9ozb/a+svAbPxn5s5s56vI48=; b=c6osA2tv+FIGqG8EkCuckRJKIJlvNo8VyslKvnmr4rf+uNzi6v8ZWT2tPQHqGvvkC2 g4XRqeyq/wsGYK9RGRcoqr6/GDuTqIxk/+jyIbUmSfJQqXSvGoVR05PKy+9zHbBV52QA qmxqekLok4Xs5McAXgtXQgA8VAk4fHpYi4WSHkPZwjhRv5druAc9EOTF4OeQ3h1CCCQn s1UiIqiDS0eJdqyc37A1uf6pn/TQfUkkQEuNEhxpjqRPJ2Ss+VXv95RyC1JOMhs4KQT3 daMfyZIm22kpUxGY9MaBKJcNugFJLfiv5wYcakJziFszTh9fJbiGoDzvi2Fmn+8Y5waO lU4w== X-Received: by 10.236.124.132 with SMTP id x4mr2222282yhh.119.1411148700213; Fri, 19 Sep 2014 10:45:00 -0700 (PDT) Original-Received: from localhost.localdomain (lawn-143-215-53-173.lawn.gatech.edu. [143.215.53.173]) by mx.google.com with ESMTPSA id v50sm1068883yhv.22.2014.09.19.10.44.59 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Sep 2014 10:44:59 -0700 (PDT) In-Reply-To: <68f705e2e2b14796ad557f2155e37f39@fcmailsvr2.familycareinc.org> (Subhan Michael Tindall's message of "Fri, 19 Sep 2014 17:38:27 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4002:c07::236 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:100034 Archived-At: Just tried the hard-coding; no change in behavior. Subhan Michael Tindall writes: >> -----Original Message----- >> From: help-gnu-emacs-bounces+subhant=familycareinc.org@gnu.org >> [mailto:help-gnu-emacs-bounces+subhant=familycareinc.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 appropriately. >> 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 just 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=$1 >> mailto="mailto:${mailto#mailto:}" >> mailto=$(printf '%s\n' "$mailto" | sed -e 's/[\"]/\\&/g') >> emacs_server="server" >> elisp_expr="(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 checked your running script to make sure that your variable expansion is proper? > IE Is -s "$emacs_server" actually expanding to "server" and not say ""server"" 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 which it is addressed and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If you are not the intended addressee, nor authorized to receive for the intended addressee, you are hereby notified that you may not use, copy, disclose or distribute to anyone the message or any information contained in the message. If you have received this message in error, please immediately advise the sender by reply email and delete the message. Thank you.