nixpkgs/pkgs/build-support/emacs
Alyssa Ross 23d4bfb666
emacsWithPackages: don't tell sub-Emacs about pkgs
If I'm running an Emacs executable from emacsWithPackages as my main
programming environment, and I'm hacking on Emacs, or the Emacs
packaging in Nixpkgs, or whatever, I don't want the Emacs packages
from the wrapper to show up in the load path of that child Emacs.  It
results in differing behaviour depending on whether the child Emacs is
run from Emacs or from, for example, an external terminal emulator,
which is very surprising.

To avoid this, pass another environment variable containing the
wrapper site-lisp path, and use that value to remove the corresponding
entry in EMACSLOADPATH, so it won't be propagated to child Emacsen.
2020-12-10 22:52:31 +00:00
..
buffer.nix nix-buffer: make eshell-path-env be inherited 2018-02-15 17:30:59 -06:00
elpa.nix pkgs/*: remove unreferenced function arguments 2018-07-21 02:48:04 +00:00
elpa2nix.el emacsWithPackages: support installing larger packages 2017-05-29 12:56:09 +01:00
generic.nix emacs: Add native builds for nativeComp enabled emacsen 2020-07-24 03:16:17 +02:00
melpa.nix treewide: Remove usage of isNull 2019-04-29 14:05:50 +02:00
melpa2nix.el emacsPackagesNg: 2018-07-15 update 2018-07-15 20:52:41 -05:00
setup-hook.sh emacs: fix setup-hook 2020-04-02 23:04:08 +02:00
trivial.nix emacsPackagesNg.trivialBuild: cleanup and standardize function 2018-11-27 00:23:04 -05:00
wrapper.nix emacsWithPackages: mutate EMACSLOADPATH correctly 2020-12-10 22:35:57 +00:00
wrapper.sh emacsWithPackages: don't tell sub-Emacs about pkgs 2020-12-10 22:52:31 +00:00