[Top][All Lists]

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

Re: Compile Mode and "host" Emacs

From: Nathan Trapuzzano
Subject: Re: Compile Mode and "host" Emacs
Date: Tue, 29 Oct 2013 08:38:08 -0400
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Your best bet is probably:

(concat (file-name-as-directory invocation-directory) invocation-name)

You can wrap that in (file-truename ...) if you want the true name.


Sebastian Wiesner <address@hidden> writes:

> Hello,
> how can a compilation process obtain the path to the Emacs executable
> which started it?
> I know that Emacs sets $EMACS and $INSIDE_EMACS in the environment of
> compile processes, but the values of these variables aren't exactly
> helpful and I didn't see any other environment variables in the
> compile code.  So apparently environment variables can't help me.
> Is there any way to find out the path to the "host" Emacs executable?
> Preferably with not too much trickery?
> Sincerely,
> Sebastian Wiesner

reply via email to

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