diff options
| author | Simon Marshall | 1997-10-23 14:58:25 +0000 |
|---|---|---|
| committer | Simon Marshall | 1997-10-23 14:58:25 +0000 |
| commit | db5cae4b2d64e5ee3499a4d430816df3d0f0e2a2 (patch) | |
| tree | 7b1eed8a1a016b2541d99bc225cd01610bd7e70b /lisp | |
| parent | 837984b11bfe8e25965b89fcfad0112f1f4c52dc (diff) | |
| download | emacs-db5cae4b2d64e5ee3499a4d430816df3d0f0e2a2.tar.gz emacs-db5cae4b2d64e5ee3499a4d430816df3d0f0e2a2.zip | |
Indicate in messages if source code is being loaded.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/international/mule.el | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/lisp/international/mule.el b/lisp/international/mule.el index 5111840a0c7..15cfe9f58c9 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el | |||
| @@ -49,10 +49,14 @@ Return t if file exists." | |||
| 49 | ;; We can't use `generate-new-buffer' because files.el | 49 | ;; We can't use `generate-new-buffer' because files.el |
| 50 | ;; is not yet loaded. | 50 | ;; is not yet loaded. |
| 51 | (get-buffer-create (generate-new-buffer-name " *load*")))) | 51 | (get-buffer-create (generate-new-buffer-name " *load*")))) |
| 52 | (load-in-progress t)) | 52 | (load-in-progress t) |
| 53 | (or nomessage (message "Loading %s..." file)) | 53 | (source (save-match-data (string-match "\\.el\\'" fullname)))) |
| 54 | (if purify-flag | 54 | (unless nomessage |
| 55 | (setq preloaded-file-list (cons file preloaded-file-list))) | 55 | (if source |
| 56 | (message "Loading %s (source)..." file) | ||
| 57 | (message "Loading %s..." file))) | ||
| 58 | (when purify-flag | ||
| 59 | (setq preloaded-file-list (cons file preloaded-file-list))) | ||
| 56 | (unwind-protect | 60 | (unwind-protect |
| 57 | (let ((load-file-name fullname) | 61 | (let ((load-file-name fullname) |
| 58 | (inhibit-file-name-operation nil)) | 62 | (inhibit-file-name-operation nil)) |
| @@ -68,10 +72,12 @@ Return t if file exists." | |||
| 68 | (let (kill-buffer-hook kill-buffer-query-functions) | 72 | (let (kill-buffer-hook kill-buffer-query-functions) |
| 69 | (kill-buffer buffer))) | 73 | (kill-buffer buffer))) |
| 70 | (let ((hook (assoc file after-load-alist))) | 74 | (let ((hook (assoc file after-load-alist))) |
| 71 | (if hook | 75 | (when hook |
| 72 | (mapcar (function eval) (cdr hook)))) | 76 | (mapcar (function eval) (cdr hook)))) |
| 73 | (or nomessage noninteractive | 77 | (unless (or nomessage noninteractive) |
| 74 | (message "Loading %s...done" file)) | 78 | (if source |
| 79 | (message "Loading %s (source)...done" file) | ||
| 80 | (message "Loading %s...done" file))) | ||
| 75 | t))) | 81 | t))) |
| 76 | 82 | ||
| 77 | ;; API (Application Program Interface) for charsets. | 83 | ;; API (Application Program Interface) for charsets. |