summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/rangehttpserver
diff options
context:
space:
mode:
authorDaniel Nagy <danielnagy@posteo.de>2022-04-03 19:28:23 +0200
committerDaniel Nagy <danielnagy@posteo.de>2022-04-17 14:36:24 +0200
commit4489718d8ff8c5f584160113d8482f8546c14804 (patch)
treec03748880e85a8251c818022820396425fc894ef /pkgs/development/python-modules/rangehttpserver
parent671960c87803041390c4205f7f5ceb3b29a86c23 (diff)
emacsWrapper: preload autoloads
This commits changes the Emacs wrapper, in order to preload all autoload definitions when built with additional packages. The list of all definitions is generated at build-time. Packages do not need to be (require)d for them to work. Before this change, a code like ```sh nix-shell -I "nixpkgs=$PWD" -p "emacs.pkgs.withPackages(e:[e.magit])" \ --run "emacs -Q -nw -f magit" ``` will fail with the message `Symbol’s function definition is void: magit` After the change, the same code above will open Emacs with magit enabled. A slightly longer startup time of ~10ms was detected in local, informal experiments. More information on autoloading: https://www.gnu.org/software/emacs/manual/html_node/eintr/Autoload.html
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions