[Top][All Lists]

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

Re: Calling emacsclient

From: Thorsten Jolitz
Subject: Re: Calling emacsclient
Date: Mon, 12 Nov 2012 15:58:46 +0100
User-agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux)

Suvayu Ali <> writes:

> On Mon, Nov 12, 2012 at 02:04:31PM +0100, Thorsten Jolitz wrote:
>> William Gardella <> writes:
>> > One possibility would be to use the emacsclient -s option together with
>> > a shell wildcard, e.g.:
>> >
>> > emacsclient -c -s /tmp/emacs1000/*
>> >
>> > works, whatever the name of the socket inside /tmp/emacs1000/ is.  So
>> > you could use that trick with the value of your `server-socket-dir'
>> > variable.  
>> I have the same 'server-socket-dir', so hardcoding this works fine on my
>> machine. But what if I need a generic version? Can I get the value of
>> `server-socket-dir' and use it for the '-s' option in the same external
>> call to emacsclient? Or would I need two consecutive calls to
>> emacsclient, the first one reading the value of `server-socket-dir' via
>> 'emacsclient -e "(...some lisp...)"', the second one using it for the
>> '-s' option from a variable of the calling program?
> I believe a more generic server-socket-dir is /tmp/emacs${UID}/.

if the /tmp/emacs part is more or less constant for all kinds of
GNU/Linux distributions this would be even more generic than relying on
the server-name 'server'.  Thanks for the tip. 


reply via email to

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