* admin/ldefs-clean.el (ldefs-clean): Bind coding-system-for-read
and coding-system-for-write, to produce a UTF-8 file with Unix
EOLs on MS-Windows.
* lisp/ldefs-boot-manual.el (image-type): Add autoload cookie.
(defun ldefs-clean ()
- (find-file "../lisp/ldefs-boot-auto.temp")
+ ;; Remove CR characters produced on MS-DOS/MS-Windows systems.
+ (let ((coding-system-for-read 'utf-8-dos))
+ (find-file "../lisp/ldefs-boot-auto.temp"))
(ldefs-clean-up)
- (write-file "ldefs-boot-auto.el"))
+ (let ((coding-system-for-write 'utf-8-unix))
+ (write-file "ldefs-boot-auto.el")))
(autoload 'dos-convert-standard-filename "dos-fns.el" nil nil nil)
(autoload 'w32-convert-standard-filename "w32-fns.el" nil nil nil)
+;; This is needed on MS-Windows only, and won't be in
+;; ldefs-boot-auto.el on other platforms.
+(autoload 'image-type "image" nil nil nil)
(load "ldefs-boot-auto.el")