[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Compile Mode and "host" Emacs
From: |
Stephen J. Turnbull |
Subject: |
Re: Compile Mode and "host" Emacs |
Date: |
Wed, 30 Oct 2013 17:09:48 +0900 |
Jorgen Schaefer writes:
> From within that Emacs, I then run programs such as ert-testrunner
> which use Emacs to run automated tests.
Nope, not the same use-case.
(defmacro with-emacs-exe-set-in-environment (pollute-permanently &rest body)
"Documentation is an exercise for the reader.
Making the unset work safely (handling previous settings and signals
in BODY) and beautifully also left as an exercise."
(setenv EMACS_EXE_VARIABLE_YOU_LIKE_BEST
(expand-file-name invocation-name invocation-directory))
,@body
(unless pollute-permanently
(setenv EMACS_EXE_VARIABLE_YOU_LIKE_BEST nil t)))
is all you (and ert-testrunner) need, FVO "you" which are singular
(eg, "I", see quoted text above). You could also generalize the macro
to take a string which is the full name of the executable to use.
The OP's problem is organizational, but the site-start.el method I
proposed should handle that.
- Re: Compile Mode and "host" Emacs, (continued)
- Re: Compile Mode and "host" Emacs, Sebastian Wiesner, 2013/10/29
- Re: Compile Mode and "host" Emacs, Nathan Trapuzzano, 2013/10/29
- Re: Compile Mode and "host" Emacs, Sebastian Wiesner, 2013/10/29
- Re: Compile Mode and "host" Emacs, Nathan Trapuzzano, 2013/10/29
- Re: Compile Mode and "host" Emacs, Sebastian Wiesner, 2013/10/29
- Re: Compile Mode and "host" Emacs, Nathan Trapuzzano, 2013/10/29
- Re: Compile Mode and "host" Emacs, Sebastian Wiesner, 2013/10/29
- Re: Compile Mode and "host" Emacs, Nathan Trapuzzano, 2013/10/29
- Re: Compile Mode and "host" Emacs, Stephen J. Turnbull, 2013/10/30
- Re: Compile Mode and "host" Emacs, Jorgen Schaefer, 2013/10/30
- Re: Compile Mode and "host" Emacs,
Stephen J. Turnbull <=
- Re: Compile Mode and "host" Emacs, chad, 2013/10/29
Re: Compile Mode and "host" Emacs, Stefan Monnier, 2013/10/29