changeset 34267:6144bd28b9b5

(update-file-autoloads): Use raw-text to read generated-autoload-file, and set buffer-file-coding-system to raw-text-unix after reading the file.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 06 Dec 2000 13:55:17 +0000
parents 8709aba617d7
children 17864eb365a2
files lisp/emacs-lisp/autoload.el
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/emacs-lisp/autoload.el	Wed Dec 06 13:54:43 2000 +0000
+++ b/lisp/emacs-lisp/autoload.el	Wed Dec 06 13:55:17 2000 +0000
@@ -376,12 +376,16 @@
       ;; the local variables section if it's there.
       (if existing-buffer
 	  (set-buffer existing-buffer))
-      ;; We must read/write the file without any code conversion.
-      (let ((coding-system-for-read 'no-conversion))
+      ;; We must read/write the file without any code conversion,
+      ;; but still decode EOLs.
+      (let ((coding-system-for-read 'raw-text))
 	(set-buffer (find-file-noselect
 		     (expand-file-name generated-autoload-file
 				       (expand-file-name "lisp"
-							 source-directory)))))
+							 source-directory))))
+	;; This is to make generated-autoload-file have Unix EOLs, so
+	;; that it is portable to all platforms.
+	(setq buffer-file-coding-system 'raw-text-unix))
       (or (> (buffer-size) 0)
 	  (error "Autoloads file %s does not exist" buffer-file-name))
       (or (file-writable-p buffer-file-name)