X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/0121d32af5f58b284815da9c571f829f0f9e9186..affca0fc843426a35c3116d6791f3ec2dd282f6a:/lisp/loadup.el diff --git a/lisp/loadup.el b/lisp/loadup.el index 421c3d5bf3..0746f95c1b 100644 --- a/lisp/loadup.el +++ b/lisp/loadup.el @@ -1,7 +1,7 @@ ;;; loadup.el --- load up standardly loaded Lisp files for Emacs -;; Copyright (C) 1985-1986, 1992, 1994, 2001-2014 -;; Free Software Foundation, Inc. +;; Copyright (C) 1985-1986, 1992, 1994, 2001-2015 Free Software +;; Foundation, Inc. ;; Maintainer: emacs-devel@gnu.org ;; Keywords: internal @@ -63,6 +63,10 @@ (expand-file-name "textmodes" dir) (expand-file-name "vc" dir))))) +;; Prevent build-time PATH getting stored in the binary. +;; Mainly cosmetic, but helpful for Guix. (Bug#20330) +(setq exec-path nil) + (if (eq t purify-flag) ;; Hash consing saved around 11% of pure space in my tests. (setq purify-flag (make-hash-table :test 'equal :size 70000))) @@ -101,9 +105,6 @@ (load "env") (load "format") (load "bindings") -;; This sets temporary-file-directory, used by eg -;; auto-save-file-name-transforms in files.el. -(load "cus-start") (load "window") ; Needed here for `replace-buffer-in-windows'. (setq load-source-file-function 'load-with-code-conversion) (load "files") @@ -145,7 +146,8 @@ (file-error (load "ldefs-boot.el"))) (load "emacs-lisp/nadvice") -(load "minibuffer") +(load "emacs-lisp/cl-preloaded") +(load "minibuffer") ;After loaddefs, for define-minor-mode. (load "abbrev") ;lisp-mode.el and simple.el use define-abbrev-table. (load "simple") @@ -283,6 +285,7 @@ (load "uniquify") (load "electric") (load "emacs-lisp/eldoc") +(load "cus-start") ;Late to reduce customize-rogue (needs loaddefs.el anyway) (if (not (eq system-type 'ms-dos)) (load "tooltip")) ;; This file doesn't exist when building a development version of Emacs @@ -353,6 +356,8 @@ lost after dumping"))) lost after dumping"))) (setq current-load-list nil) +;; Avoid storing references to build directory in the binary. +(setq custom-current-group-alist nil) ;; We keep the load-history data in PURE space. ;; Make sure that the spine of the list is not in pure space because it can