mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-05 11:45:45 +00:00
Fix minor problems with loaddefs autogeneration
* 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.
This commit is contained in:
parent
43e792cd7f
commit
f2bd2c1e64
@ -57,6 +57,9 @@
|
||||
|
||||
|
||||
(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")))
|
||||
|
@ -16,6 +16,9 @@
|
||||
(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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user