aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2012-04-08 23:58:41 -0700
committerGlenn Morris2012-04-08 23:58:41 -0700
commite5fcdb5e920e0e07df77ff28e7a5dcd2d4f193fa (patch)
tree2298c97a5f19aeeed7d2601e8b8d91391104a489
parentcb3c2e3eca8bf31ac861739272ba1e182f4ec295 (diff)
downloademacs-e5fcdb5e920e0e07df77ff28e7a5dcd2d4f193fa.tar.gz
emacs-e5fcdb5e920e0e07df77ff28e7a5dcd2d4f193fa.zip
Look for leim-list.el files in fewer places at startup
* lisp/startup.el (normal-top-level): Don't look for leim-list.el in places where it will not be found. Fixes: debbugs:910
-rw-r--r--etc/NEWS5
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/startup.el13
3 files changed, 18 insertions, 3 deletions
diff --git a/etc/NEWS b/etc/NEWS
index ae6ba8d36b7..16357f3cfd3 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -24,6 +24,11 @@ so we will look at it and add it to the manual.
24* Installation Changes in Emacs 24.2 24* Installation Changes in Emacs 24.2
25 25
26* Startup Changes in Emacs 24.2 26* Startup Changes in Emacs 24.2
27
28** Emacs no longer searches for `leim-list.el' files beneath the standard
29lisp/ directory. There should not be any there anyway. If you have
30been adding them there, put them somewhere else, eg site-lisp.
31
27 32
28* Changes in Emacs 24.2 33* Changes in Emacs 24.2
29 34
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index ca2812b4996..ed4470b998a 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12012-04-09 Glenn Morris <rgm@gnu.org> 12012-04-09 Glenn Morris <rgm@gnu.org>
2 2
3 * startup.el (normal-top-level): Don't look for leim-list.el
4 in places where it will not be found. (Bug#910)
5
3 * international/mule-cmds.el (set-default-coding-systems): 6 * international/mule-cmds.el (set-default-coding-systems):
4 * files.el (normal-mode): 7 * files.el (normal-mode):
5 Remove guarded calls to ucs-set-table-for-input. (Bug#9821) 8 Remove guarded calls to ucs-set-table-for-input. (Bug#9821)
diff --git a/lisp/startup.el b/lisp/startup.el
index 37e4f550dcd..518b53ccdf1 100644
--- a/lisp/startup.el
+++ b/lisp/startup.el
@@ -490,13 +490,20 @@ It is the default value of the variable `top-level'."
490 ;; of that dir into load-path, 490 ;; of that dir into load-path,
491 ;; Look for a leim-list.el file too. Loading it will register 491 ;; Look for a leim-list.el file too. Loading it will register
492 ;; available input methods. 492 ;; available input methods.
493 (let ((tail load-path) dir) 493 (let ((tail load-path)
494 (lispdir (expand-file-name "../lisp" data-directory))
495 ;; For out-of-tree builds, leim-list is generated in the build dir.
496;;; (leimdir (expand-file-name "../leim" doc-directory))
497 dir)
494 (while tail 498 (while tail
495 (setq dir (car tail)) 499 (setq dir (car tail))
496 (let ((default-directory dir)) 500 (let ((default-directory dir))
497 (load (expand-file-name "subdirs.el") t t t)) 501 (load (expand-file-name "subdirs.el") t t t))
498 (let ((default-directory dir)) 502 ;; Do not scan standard directories that won't contain a leim-list.el.
499 (load (expand-file-name "leim-list.el") t t t)) 503 ;; http://lists.gnu.org/archive/html/emacs-devel/2009-10/msg00502.html
504 (or (string-match (concat "\\`" lispdir) dir)
505 (let ((default-directory dir))
506 (load (expand-file-name "leim-list.el") t t t)))
500 ;; We don't use a dolist loop and we put this "setq-cdr" command at 507 ;; We don't use a dolist loop and we put this "setq-cdr" command at
501 ;; the end, because the subdirs.el files may add elements to the end 508 ;; the end, because the subdirs.el files may add elements to the end
502 ;; of load-path and we want to take it into account. 509 ;; of load-path and we want to take it into account.