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:12:23 -0400 Message-ID: <87iokjmt54.fsf@gmail.com> References: <87zje671q3.fsf@gmail.com> <87egvhk19v.fsf@web.de> <87lhppvxsj.fsf@gmail.com> <87iokpuo0j.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411146778 25435 80.91.229.3 (19 Sep 2014 17:12:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2014 17:12:58 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Oliver Kappel Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Sep 19 19:12:53 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 1XV1jp-0003mU-69 for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 19:12:53 +0200 Original-Received: from localhost ([::1]:59506 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV1jo-0004G9-LB for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 13:12:52 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47835) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV1jZ-0004Fu-Kq for help-gnu-emacs@gnu.org; Fri, 19 Sep 2014 13:12:43 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XV1jU-000338-7i for help-gnu-emacs@gnu.org; Fri, 19 Sep 2014 13:12:37 -0400 Original-Received: from mail-yk0-x22d.google.com ([2607:f8b0:4002:c07::22d]:46459) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV1jU-00032B-3P for help-gnu-emacs@gnu.org; Fri, 19 Sep 2014 13:12:32 -0400 Original-Received: by mail-yk0-f173.google.com with SMTP id 131so107291ykp.18 for ; Fri, 19 Sep 2014 10:12:26 -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=rVCeQuWPx/BpQ+AbkqxBCwSbucMd1yB1ObPvk0/mO48=; b=0jV1SdMwou4LdWgEh6z6yRditkUemePF4AQEbJW0RQI6ZmL4htMtSAVrNzIL71Fw+Z TMvycws1pNlGWt23PHx9uflVB7zveDq6W2Brw8P+ht0SnXkyEjWVGAe664ZZ+8GVG/T+ jTEzTTh5Xk6FK8u4//J8/L+Pzf+476v+7+AIlgxFHa+TKRIXvqxqWMq8YT+ZuouuwQXU 98VjTWyU/baDYLLTsNWWOh6vTmFeas5jR1dfTtOIxuS9jN+hFtqei8ZHli1zHkX6apA8 yf6ihfYrysAMz1w+HogN0+tu8xnLm9qt7GQI9Vwm7A7Smnj/B18qzEmT/WP8yIfZwPCB XZzQ== X-Received: by 10.236.123.203 with SMTP id v51mr1979499yhh.41.1411146746132; Fri, 19 Sep 2014 10:12:26 -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 d12sm1021301yha.53.2014.09.19.10.12.24 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Sep 2014 10:12:24 -0700 (PDT) In-Reply-To: (Oliver Kappel's message of "Mon, 15 Sep 2014 14:28:42 +0200") 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::22d 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:100029 Archived-At: *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)'