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: Subhan Michael Tindall
Subject: RE: emacsclient command line use existing client
Date: Fri, 12 Sep 2014 16:28:14 +0000

Are you setting the name of the server in your startup script? Maybe this 
option will help:

'-s server-name'
'--socket-name=server-name'
Connect to the Emacs server named server-name. The server name is given by the 
variable server-name on the Emacs server. If this option is omitted, 
emacsclient connects to the first server it finds. (This option is not 
supported on MS-Windows.)



> -----Original Message-----
> From: address@hidden
> [mailto:address@hidden On
> Behalf Of Tory S. Anderson
> Sent: Friday, September 12, 2014 5:17 AM
> To: Michael Heerdegen
> Cc: address@hidden
> Subject: Re: emacsclient command line use existing client
> 
> 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 <address@hidden> writes:
> 
> > address@hidden (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.


This message is intended for the sole use of the individual and entity to which 
it is addressed and may contain information that is privileged, confidential 
and exempt from disclosure under applicable law. If you are not the intended 
addressee, nor authorized to receive for the intended addressee, you are hereby 
notified that you may not use, copy, disclose or distribute to anyone the 
message or any information contained in the message. If you have received this 
message in error, please immediately advise the sender by reply email and 
delete the message.  Thank you.




reply via email to

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