[Top][All Lists]

[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, 
- 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 <address@hidden> writes:

> On 19 Sep 2014, address@hidden wrote:
>> << full contents of >>
>> -------------------------------
>> #!/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]