bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#20330: Do not capture build-time $PATH in 'emacs' binary


From: Ludovic Courtès
Subject: bug#20330: Do not capture build-time $PATH in 'emacs' binary
Date: Wed, 15 Apr 2015 21:45:46 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Glenn Morris <rgm@gnu.org> skribis:

> Ludovic Courtès wrote:
>
>> +;; Reset 'exec-path' so we don't capture the build-time $PATH in the
>> +;; 'emacs' executable.
>> +(setq-default exec-path nil)
>> +(setq exec-path nil)
>
> I'm not sure this is a good way to solve your issue.
> Eg it will cause "Erase Customizations" on exec-path to set it to nil.

OTOH, at startup, ‘init_callproc_1’ does:

  Vexec_path = nconc2 (decode_env_path ("PATH", ""), Vexec_path);

So it looks rather safe.  WDYT?

Ludo’.





reply via email to

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