diff options
| author | Stefan Monnier | 2008-03-10 21:11:32 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-03-10 21:11:32 +0000 |
| commit | 812e2bd8e1aeb2c48f397b81a711bc59fd7d5df4 (patch) | |
| tree | 2e5edb30f76f73abdee10ed796362fd96c70ea1b | |
| parent | d158da802a395e000f91d305f964fe4b4e32f9a2 (diff) | |
| download | emacs-812e2bd8e1aeb2c48f397b81a711bc59fd7d5df4.tar.gz emacs-812e2bd8e1aeb2c48f397b81a711bc59fd7d5df4.zip | |
(autoload-find-destination): Don't force raw-text.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/emacs-lisp/autoload.el | 12 |
2 files changed, 8 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 1df4a5f9d95..f5f9cfab8c6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca> | 1 | 2008-03-10 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 2 | ||
| 3 | * emacs-lisp/autoload.el (autoload-find-destination): Don't force raw-text. | ||
| 4 | |||
| 3 | * calendar/calendar.el ("cal-loaddefs"): Load, rather than require. | 5 | * calendar/calendar.el ("cal-loaddefs"): Load, rather than require. |
| 4 | * calendar/cal-loaddefs.el: Don't version control. | 6 | * calendar/cal-loaddefs.el: Don't version control. |
| 5 | 7 | ||
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." | |||
| 484 | (existing-buffer (if buffer-file-name buf)) | 484 | (existing-buffer (if buffer-file-name buf)) |
| 485 | (found nil)) | 485 | (found nil)) |
| 486 | (with-current-buffer | 486 | (with-current-buffer |
| 487 | ;; We must read/write the file without any code conversion, | 487 | ;; We used to use `raw-text' to read this file, but this causes |
| 488 | ;; but still decode EOLs. | 488 | ;; problems when the file contains non-ASCII characters. |
| 489 | (let ((coding-system-for-read 'raw-text)) | 489 | (find-file-noselect |
| 490 | (find-file-noselect | 490 | (autoload-ensure-default-file (autoload-generated-file))) |
| 491 | (autoload-ensure-default-file (autoload-generated-file)))) | ||
| 492 | ;; This is to make generated-autoload-file have Unix EOLs, so | 491 | ;; This is to make generated-autoload-file have Unix EOLs, so |
| 493 | ;; that it is portable to all platforms. | 492 | ;; that it is portable to all platforms. |
| 494 | (setq buffer-file-coding-system 'raw-text-unix) | 493 | (unless (zerop (coding-system-eol-type buffer-file-coding-system)) |
| 494 | (set-buffer-file-coding-system 'unix)) | ||
| 495 | (or (> (buffer-size) 0) | 495 | (or (> (buffer-size) 0) |
| 496 | (error "Autoloads file %s does not exist" buffer-file-name)) | 496 | (error "Autoloads file %s does not exist" buffer-file-name)) |
| 497 | (or (file-writable-p buffer-file-name) | 497 | (or (file-writable-p buffer-file-name) |