help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacsclient command line use existing client


From: Tory S. Anderson
Subject: Re: emacsclient command line use existing client
Date: Sat, 20 Sep 2014 06:42:36 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Ok. I did the following tests:

- Tried your script. From Firefox, it doesn't seem to run at all. From the 
command-line, it opens TWO emacs windows, one in a blank  "server" buffer and 
another with the email I want. Both are connected to the correct server, 
though. 
- My old script (as listed below) does exactly what it should from the command 
line; it's, apparently, just from Mozilla that it creates a new server. 

Charles Philip Chan <cpchan@bell.net> writes:

> 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:
>
>
>
> Charles



reply via email to

[Prev in Thread] Current Thread [Next in Thread]