comparison lisp/international/mule.el @ 20405:faf18d58a01b

(load-with-code-conversion): Doc fix.
author Karl Heuer <kwzh@gnu.org>
date Thu, 04 Dec 1997 04:47:41 +0000
parents 13074c25ab06
children 821b2167b6c3
comparison
equal deleted inserted replaced
20404:7cce7f974c78 20405:faf18d58a01b
29 29
30 (defconst mule-version-date "1998.1.1" "\ 30 (defconst mule-version-date "1998.1.1" "\
31 Distribution date of this version of MULE (multilingual environment).") 31 Distribution date of this version of MULE (multilingual environment).")
32 32
33 (defun load-with-code-conversion (fullname file &optional noerror nomessage) 33 (defun load-with-code-conversion (fullname file &optional noerror nomessage)
34 "Execute a file of Lisp code named FILE whose absolute path is FULLNAME. 34 "Execute a file of Lisp code named FILE whose absolute name is FULLNAME.
35 The FILE is decoded before evaluation if necessary. 35 The file contents are decoded before evaluation if necessary.
36 If optional second arg NOERROR is non-nil, 36 If optional second arg NOERROR is non-nil,
37 report no error if FILE doesn't exist. 37 report no error if FILE doesn't exist.
38 Print messages at start and end of loading unless 38 Print messages at start and end of loading unless
39 optional third arg NOMESSAGE is non-nil. 39 optional third arg NOMESSAGE is non-nil.
40 Return t if file exists." 40 Return t if file exists."
65 ;; This is buffer-local. 65 ;; This is buffer-local.
66 (setq enable-multibyte-characters t) 66 (setq enable-multibyte-characters t)
67 (insert-file-contents fullname) 67 (insert-file-contents fullname)
68 ;; Make `kill-buffer' quiet. 68 ;; Make `kill-buffer' quiet.
69 (set-buffer-modified-p nil)) 69 (set-buffer-modified-p nil))
70 ;; Eval in the original buffer. 70 ;; Have the original buffer current while we eval.
71 (eval-buffer buffer nil file)) 71 (eval-buffer buffer nil file))
72 (let (kill-buffer-hook kill-buffer-query-functions) 72 (let (kill-buffer-hook kill-buffer-query-functions)
73 (kill-buffer buffer))) 73 (kill-buffer buffer)))
74 (let ((hook (assoc file after-load-alist))) 74 (let ((hook (assoc file after-load-alist)))
75 (when hook 75 (when hook