diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-03-10 21:11:32 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2008-03-10 21:11:32 +0000 |
commit | 812e2bd8e1aeb2c48f397b81a711bc59fd7d5df4 (patch) | |
tree | 2e5edb30f76f73abdee10ed796362fd96c70ea1b /lisp/emacs-lisp | |
parent | d158da802a395e000f91d305f964fe4b4e32f9a2 (diff) | |
download | emacs-812e2bd8e1aeb2c48f397b81a711bc59fd7d5df4.tar.gz emacs-812e2bd8e1aeb2c48f397b81a711bc59fd7d5df4.tar.bz2 emacs-812e2bd8e1aeb2c48f397b81a711bc59fd7d5df4.zip |
(autoload-find-destination): Don't force raw-text.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r-- | lisp/emacs-lisp/autoload.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lisp/emacs-lisp/autoload.el b/lisp/emacs-lisp/autoload.el index efbe7a56927..dadb6aa0ea8 100644 --- a/lisp/emacs-lisp/autoload.el +++ b/lisp/emacs-lisp/autoload.el @@ -484,14 +484,14 @@ removes any prior now out-of-date autoload entries." (existing-buffer (if buffer-file-name buf)) (found nil)) (with-current-buffer - ;; We must read/write the file without any code conversion, - ;; but still decode EOLs. - (let ((coding-system-for-read 'raw-text)) - (find-file-noselect - (autoload-ensure-default-file (autoload-generated-file)))) + ;; We used to use `raw-text' to read this file, but this causes + ;; problems when the file contains non-ASCII characters. + (find-file-noselect + (autoload-ensure-default-file (autoload-generated-file))) ;; 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) + (unless (zerop (coding-system-eol-type buffer-file-coding-system)) + (set-buffer-file-coding-system 'unix)) (or (> (buffer-size) 0) (error "Autoloads file %s does not exist" buffer-file-name)) (or (file-writable-p buffer-file-name) |