From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Charles Philip Chan Newsgroups: gmane.emacs.help Subject: Re: emacsclient command line use existing client Date: Fri, 19 Sep 2014 22:14:41 -0400 Message-ID: <87vbojdomm.fsf@karnak.MagnumOpus.khem> 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: multipart/signed; boundary="==-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1411179360 9784 80.91.229.3 (20 Sep 2014 02:16:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Sep 2014 02:16:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Sep 20 04:15:52 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 1XVADI-0006iN-AO for geh-help-gnu-emacs@m.gmane.org; Sat, 20 Sep 2014 04:15:52 +0200 Original-Received: from localhost ([::1]:33110 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVADH-0000hO-Tn for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 22:15:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVACx-0000gE-3L for help-gnu-emacs@gnu.org; Fri, 19 Sep 2014 22:15:38 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVACp-0006iP-Gy for help-gnu-emacs@gnu.org; Fri, 19 Sep 2014 22:15:31 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:50648) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVACp-0006hO-9D for help-gnu-emacs@gnu.org; Fri, 19 Sep 2014 22:15:23 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XVACj-0006aM-47 for help-gnu-emacs@gnu.org; Sat, 20 Sep 2014 04:15:17 +0200 Original-Received: from toroon017dw-lp140-04-845489537.dsl.bell.ca ([50.101.37.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Sep 2014 04:15:17 +0200 Original-Received: from cpchan by toroon017dw-lp140-04-845489537.dsl.bell.ca with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 20 Sep 2014 04:15:17 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 59 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: toroon017dw-lp140-04-845489537.dsl.bell.ca X-Face: G; Z,`sm>)4t4LB/GUrgH$W`!AmfHMj,LG)Z}X0ax@s9:0>0)B&@vcm{v-le)wng)?|o]D\Z}0:6X User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) Cancel-Lock: sha1:WOSQXcIpz4YvAfq+Yc9kptNA6yQ= 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:100060 Archived-At: --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain On 19 Sep 2014, torys.anderson@gmail.com wrote: > << 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 is the small script that I have been using with Firefox's mailto handler for years with no problems: --=-=-= Content-Type: application/x-shellscript Content-Disposition: inline; filename=mozmail.sh Content-Transfer-Encoding: base64 Content-Description: Mozmail IyEvYmluL3NoCm1haWxhZGRyPSJgZWNobyAkMSB8IGN1dCAtZCA6IC1mIDJgIgplbWFjc2NsaWVu dCAtYyAtbiAtLWV2YWwgIihjb21wb3NlLW1haWwtb3RoZXItZnJhbWUgXCIkbWFpbGFkZHJcIiBc IiQyXCIpIgo= --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Charles =2D-=20 "World domination. Fast" (By Linus Torvalds) --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iEYEARECAAYFAlQc4xwACgkQ3epPyyKbwPYgEQCgsSV9Lfwn3cCDMNeEBq21bpIB UgUAoNsWbzwO+Ea03uUxvR30k5pLgUaq =5xMS -----END PGP SIGNATURE----- --==-=-=--