diff options
| author | Eli Zaretskii | 2007-02-24 13:58:35 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2007-02-24 13:58:35 +0000 |
| commit | 735895f1fa28f88c559e73910ea0ff0bda0f228c (patch) | |
| tree | 59ec864fd6032112a5a78e225e5806088128ff63 | |
| parent | b03ab6e8b7d608d2f51c4da9403d0a1f52623e6b (diff) | |
| download | emacs-735895f1fa28f88c559e73910ea0ff0bda0f228c.tar.gz emacs-735895f1fa28f88c559e73910ea0ff0bda0f228c.zip | |
(command-line): If simple.el cannot be found, proceed with a warning message.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/startup.el | 36 |
2 files changed, 25 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 164dc076dae..008979f0477 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2007-02-24 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * startup.el (command-line): If simple.el cannot be found, proceed | ||
| 4 | with a warning message. | ||
| 5 | |||
| 1 | 2007-02-24 Kenichi Handa <handa@m17n.org> | 6 | 2007-02-24 Kenichi Handa <handa@m17n.org> |
| 2 | 7 | ||
| 3 | * international/utf-8.el (utf-8-pre-write-conversion): Handle the | 8 | * international/utf-8.el (utf-8-pre-write-conversion): Handle the |
diff --git a/lisp/startup.el b/lisp/startup.el index 5be0e98b4bb..76bec878338 100644 --- a/lisp/startup.el +++ b/lisp/startup.el | |||
| @@ -645,22 +645,26 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." | |||
| 645 | 645 | ||
| 646 | (set-locale-environment nil) | 646 | (set-locale-environment nil) |
| 647 | 647 | ||
| 648 | ;; Convert preloaded file names to absolute. | 648 | ;; Convert preloaded file names in load-history to absolute. |
| 649 | (let ((lisp-dir | 649 | (let ((simple-file-name |
| 650 | (file-truename | 650 | (locate-file "simple" load-path (get-load-suffixes))) |
| 651 | (file-name-directory | 651 | lisp-dir) |
| 652 | (locate-file "simple" load-path | 652 | ;; Don't abort if simple.el cannot be found, but print a warning. |
| 653 | (get-load-suffixes)))))) | 653 | (if (null simple-file-name) |
| 654 | 654 | (progn | |
| 655 | (setq load-history | 655 | (princ "Warning: Could not find simple.el nor simple.elc" |
| 656 | (mapcar (lambda (elt) | 656 | 'external-debugging-output) |
| 657 | (if (and (stringp (car elt)) | 657 | (terpri 'external-debugging-output)) |
| 658 | (not (file-name-absolute-p (car elt)))) | 658 | (setq lisp-dir (file-truename (file-name-directory simple-file-name))) |
| 659 | (cons (concat lisp-dir | 659 | (setq load-history |
| 660 | (car elt)) | 660 | (mapcar (lambda (elt) |
| 661 | (cdr elt)) | 661 | (if (and (stringp (car elt)) |
| 662 | elt)) | 662 | (not (file-name-absolute-p (car elt)))) |
| 663 | load-history))) | 663 | (cons (concat lisp-dir |
| 664 | (car elt)) | ||
| 665 | (cdr elt)) | ||
| 666 | elt)) | ||
| 667 | load-history)))) | ||
| 664 | 668 | ||
| 665 | ;; Convert the arguments to Emacs internal representation. | 669 | ;; Convert the arguments to Emacs internal representation. |
| 666 | (let ((args (cdr command-line-args))) | 670 | (let ((args (cdr command-line-args))) |