[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] trunk r114980: Fix bug #15805 with trying to load Lisp fil
From: |
Eli Zaretskii |
Subject: |
[Emacs-diffs] trunk r114980: Fix bug #15805 with trying to load Lisp files before load-path is populated. |
Date: |
Tue, 05 Nov 2013 16:18:55 +0000 |
User-agent: |
Bazaar (2.6b2) |
------------------------------------------------------------
revno: 114980
revision-id: address@hidden
parent: address@hidden
fixes bug: http://debbugs.gnu.org/15805
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Tue 2013-11-05 18:18:00 +0200
message:
Fix bug #15805 with trying to load Lisp files before load-path is populated.
lisp/startup.el (normal-top-level): Load the subdirs.el files before
setting the locale environment.
modified:
lisp/ChangeLog changelog-20091113204419-o5vbwnq5f7feedwu-1432
lisp/startup.el startup.el-20091113204419-o5vbwnq5f7feedwu-260
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog 2013-11-05 15:27:51 +0000
+++ b/lisp/ChangeLog 2013-11-05 16:18:00 +0000
@@ -1,3 +1,8 @@
+2013-11-05 Eli Zaretskii <address@hidden>
+
+ * startup.el (normal-top-level): Load the subdirs.el files before
+ setting the locale environment. (Bug#15805)
+
2013-11-05 Stefan Monnier <address@hidden>
* vc/vc-rcs.el (vc-rcs-parse): Make `gather' get e, b, and @-holes
=== modified file 'lisp/startup.el'
--- a/lisp/startup.el 2013-11-04 17:30:33 +0000
+++ b/lisp/startup.el 2013-11-05 16:18:00 +0000
@@ -490,6 +490,32 @@
(message "Back to top level.")
(setq command-line-processed t)
+ ;; Look in each dir in load-path for a subdirs.el file. If we
+ ;; find one, load it, which will add the appropriate subdirs of
+ ;; that dir into load-path. This needs to be done before setting
+ ;; the locale environment, because the latter might need to load
+ ;; some support files.
+ ;; Look for a leim-list.el file too. Loading it will register
+ ;; available input methods.
+ (let ((tail load-path)
+ (lispdir (expand-file-name "../lisp" data-directory))
+ ;; For out-of-tree builds, leim-list is generated in the build dir.
+;;; (leimdir (expand-file-name "../leim" doc-directory))
+ dir)
+ (while tail
+ (setq dir (car tail))
+ (let ((default-directory dir))
+ (load (expand-file-name "subdirs.el") t t t))
+ ;; Do not scan standard directories that won't contain a leim-list.el.
+ ;; http://lists.gnu.org/archive/html/emacs-devel/2009-10/msg00502.html
+ (or (string-match (concat "\\`" lispdir) dir)
+ (let ((default-directory dir))
+ (load (expand-file-name "leim-list.el") t t t)))
+ ;; We don't use a dolist loop and we put this "setq-cdr" command at
+ ;; the end, because the subdirs.el files may add elements to the end
+ ;; of load-path and we want to take it into account.
+ (setq tail (cdr tail))))
+
;; Set the default strings to display in mode line for end-of-line
;; formats that aren't native to this platform. This should be
;; done before calling set-locale-environment, as the latter might
@@ -557,29 +583,6 @@
;; `user-full-name' is now known; reset its standard-value here.
(put 'user-full-name 'standard-value
(list (default-value 'user-full-name)))
- ;; Look in each dir in load-path for a subdirs.el file.
- ;; If we find one, load it, which will add the appropriate subdirs
- ;; of that dir into load-path,
- ;; Look for a leim-list.el file too. Loading it will register
- ;; available input methods.
- (let ((tail load-path)
- (lispdir (expand-file-name "../lisp" data-directory))
- ;; For out-of-tree builds, leim-list is generated in the build dir.
-;;; (leimdir (expand-file-name "../leim" doc-directory))
- dir)
- (while tail
- (setq dir (car tail))
- (let ((default-directory dir))
- (load (expand-file-name "subdirs.el") t t t))
- ;; Do not scan standard directories that won't contain a leim-list.el.
- ;; http://lists.gnu.org/archive/html/emacs-devel/2009-10/msg00502.html
- (or (string-match (concat "\\`" lispdir) dir)
- (let ((default-directory dir))
- (load (expand-file-name "leim-list.el") t t t)))
- ;; We don't use a dolist loop and we put this "setq-cdr" command at
- ;; the end, because the subdirs.el files may add elements to the end
- ;; of load-path and we want to take it into account.
- (setq tail (cdr tail))))
;; If the PWD environment variable isn't accurate, delete it.
(let ((pwd (getenv "PWD")))
(and (stringp pwd)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] trunk r114980: Fix bug #15805 with trying to load Lisp files before load-path is populated.,
Eli Zaretskii <=