aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/loadup.el28
2 files changed, 21 insertions, 12 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 8bd026470d1..8dd26cf294e 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12013-12-13 Glenn Morris <rgm@gnu.org>
2
3 * loadup.el (load-path): Warn if site-load or site-init changes it.
4 No more need to reset it when bootstrapping.
5
12013-12-13 Teodor Zlatanov <tzz@lifelogs.com> 62013-12-13 Teodor Zlatanov <tzz@lifelogs.com>
2 7
3 * progmodes/cfengine.el (cfengine-cf-promises): Add more default 8 * progmodes/cfengine.el (cfengine-cf-promises): Add more default
diff --git a/lisp/loadup.el b/lisp/loadup.el
index b72ddc0955b..520fe4e701e 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -46,9 +46,6 @@
46;; Add subdirectories to the load-path for files that might get 46;; Add subdirectories to the load-path for files that might get
47;; autoloaded when bootstrapping. 47;; autoloaded when bootstrapping.
48;; This is because PATH_DUMPLOADSEARCH is just "../lisp". 48;; This is because PATH_DUMPLOADSEARCH is just "../lisp".
49;; Note that we reset load-path below just before dumping,
50;; since lread.c:init_lread checks for changes to load-path
51;; in deciding whether to modify it.
52(if (or (equal (nth 3 command-line-args) "bootstrap") 49(if (or (equal (nth 3 command-line-args) "bootstrap")
53 (equal (nth 4 command-line-args) "bootstrap") 50 (equal (nth 4 command-line-args) "bootstrap")
54 ;; FIXME this is irritatingly fragile. 51 ;; FIXME this is irritatingly fragile.
@@ -293,8 +290,15 @@
293;; you may load them with a "site-load.el" file. 290;; you may load them with a "site-load.el" file.
294;; But you must also cause them to be scanned when the DOC file 291;; But you must also cause them to be scanned when the DOC file
295;; is generated. 292;; is generated.
296;; For other systems, you must edit ../src/Makefile.in. 293(let ((lp load-path))
297(load "site-load" t) 294 (load "site-load" t)
295 ;; We reset load-path after dumping.
296 ;; For a permanent change in load-path, use configure's
297 ;; --enable-locallisppath option.
298 ;; See http://debbugs.gnu.org/16107 for more details.
299 (or (equal lp load-path)
300 (message "Warning: Change in load-path due to site-load will be \
301lost after dumping")))
298 302
299;; Make sure default-directory is unibyte when dumping. This is 303;; Make sure default-directory is unibyte when dumping. This is
300;; because we cannot decode and encode it correctly (since the locale 304;; because we cannot decode and encode it correctly (since the locale
@@ -342,8 +346,13 @@
342 346
343;; Note: You can cause additional libraries to be preloaded 347;; Note: You can cause additional libraries to be preloaded
344;; by writing a site-init.el that loads them. 348;; by writing a site-init.el that loads them.
345;; See also "site-load" above. 349;; See also "site-load" above
346(load "site-init" t) 350(let ((lp load-path))
351 (load "site-init" t)
352 (or (equal lp load-path)
353 (message "Warning: Change in load-path due to site-init will be \
354lost after dumping")))
355
347(setq current-load-list nil) 356(setq current-load-list nil)
348 357
349;; We keep the load-history data in PURE space. 358;; We keep the load-history data in PURE space.
@@ -353,11 +362,6 @@
353 362
354(set-buffer-modified-p nil) 363(set-buffer-modified-p nil)
355 364
356;; reset the load-path. See lread.c:init_lread why.
357(if (or (equal (nth 3 command-line-args) "bootstrap")
358 (equal (nth 4 command-line-args) "bootstrap"))
359 (setcdr load-path nil))
360
361(remove-hook 'after-load-functions (lambda (f) (garbage-collect))) 365(remove-hook 'after-load-functions (lambda (f) (garbage-collect)))
362 366
363(setq inhibit-load-charset-map nil) 367(setq inhibit-load-charset-map nil)