[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
- RE: emacsclient command line use existing client, (continued)
- RE: emacsclient command line use existing client, Subhan Michael Tindall, 2014/09/12
- Re: emacsclient command line use existing client, Harry Putnam, 2014/09/13
- Re: emacsclient command line use existing client, Oliver Kappel, 2014/09/15
- Re: emacsclient command line use existing client, Tory S. Anderson, 2014/09/15
- Re: emacsclient command line use existing client, Michael Heerdegen, 2014/09/15
- Re: emacsclient command line use existing client, Oliver Kappel, 2014/09/15
- Re: emacsclient command line use existing client, Tory S. Anderson, 2014/09/19
- RE: emacsclient command line use existing client, Subhan Michael Tindall, 2014/09/19
- Re: emacsclient command line use existing client, Tory S. Anderson, 2014/09/19
- Re: emacsclient command line use existing client, Charles Philip Chan, 2014/09/19
- Re: emacsclient command line use existing client,
Tory S. Anderson <=
- Re: emacsclient command line use existing client, Charles Philip Chan, 2014/09/20
- Re: emacsclient command line use existing client, Tory S. Anderson, 2014/09/20
- Re: emacsclient command line use existing client, Charles Philip Chan, 2014/09/21
- Re: emacsclient command line use existing client, Charles Philip Chan, 2014/09/21
- Re: emacsclient command line use existing client, Tory S. Anderson, 2014/09/22