[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacsclient command line use existing client
From: |
Oliver Kappel |
Subject: |
Re: emacsclient command line use existing client |
Date: |
Fri, 12 Sep 2014 15:42:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.3.90 (darwin) |
Hello,
my guess: emacsclient inside your script runs another installed
instance of emacs as you started emacs server with. With option -a ""
this instance will start another emacs in deamon mode. Probably the
$PATH while runing the mailto-script is different.
Check your OS "autostart `emacs-client` command" - as you mentioned -
and make sure your script uses the emacsclient from the same ./bin
directory.
Greetings, Oliver
12.09.2014 at 14:16 Tory S. Anderson wrote:
> Thanks for prompting me to be more precise. When my OS starts I launch
> a server with the autostart `emacs-client` command, and have the line
> in my .emacs to ensure the server is started. As it should, opening
> any number of new frames (or launching emacs-client again) will share
> the same buffer list, etc. However, this shell script for launching an
> email (apparently) starts a new server; it isn't sharing anything with
> the other frames, and if I don't `kill-emacs` I end up with two
> servers running. Clearly, not acceptable.
>
> Michael Heerdegen <michael_heerdegen@web.de> writes:
>
>> torys.anderson@gmail.com (Tory S. Anderson) writes:
>>
>>> elisp_expr="(mailto-compose-mail \"$mailto\")"
>>>
>>> emacsclient -a "" -c -n --eval "$elisp_expr" \
>>> '(set-window-dedicated-p (selected-window) t)'
>>>
>>> But somehow when I run this it starts a new emacsclient rather than
>>> using the one I have running. If I remove the `-a ""` then nothing
>>> happens at all. Why won't it connect to my existing emacsclient?
>>
>> What exactly do you mean with "existing emacsclient"? You must have a
>> running server. A running Emacs is not enough.
>>
>> Michael.
- emacsclient command line use existing client, Tory S. Anderson, 2014/09/11
- Re: emacsclient command line use existing client, Michael Heerdegen, 2014/09/11
- Re: emacsclient command line use existing client, Thorsten Jolitz, 2014/09/12
- Re: emacsclient command line use existing client, Tory S. Anderson, 2014/09/12
- 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 <=
- 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, 2014/09/20
- 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