diff options
| author | Dave Love | 2002-07-30 11:24:20 +0000 |
|---|---|---|
| committer | Dave Love | 2002-07-30 11:24:20 +0000 |
| commit | eb75e087ad4b21a06f32266f2f8ee9f054a0ac29 (patch) | |
| tree | d0f5025e5f96f1ed57347c474fce2391d06bb81d | |
| parent | c1da08325fddb9771dd5baaf82cc35baa6241dd9 (diff) | |
| download | emacs-eb75e087ad4b21a06f32266f2f8ee9f054a0ac29.tar.gz emacs-eb75e087ad4b21a06f32266f2f8ee9f054a0ac29.zip | |
(gnus-read-newsrc-el-file): Don't bind
coding-system-for-read.
(gnus-gnus-to-quick-newsrc-format): Insert coding cookie.
| -rw-r--r-- | lisp/gnus/gnus-start.el | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lisp/gnus/gnus-start.el b/lisp/gnus/gnus-start.el index 69ff17b4d7f..4b3e1135440 100644 --- a/lisp/gnus/gnus-start.el +++ b/lisp/gnus/gnus-start.el | |||
| @@ -395,6 +395,8 @@ Can be used to turn version control on or off." | |||
| 395 | 395 | ||
| 396 | ;;; Internal variables | 396 | ;;; Internal variables |
| 397 | 397 | ||
| 398 | ;; Fixme: deal with old emacs-mule when mm-universal-coding-system is | ||
| 399 | ;; utf-8-emacs. | ||
| 398 | (defvar gnus-ding-file-coding-system mm-universal-coding-system | 400 | (defvar gnus-ding-file-coding-system mm-universal-coding-system |
| 399 | "Coding system for ding file.") | 401 | "Coding system for ding file.") |
| 400 | 402 | ||
| @@ -2015,8 +2017,7 @@ If FORCE is non-nil, the .newsrc file is read." | |||
| 2015 | (gnus-message 5 "Reading %s..." ding-file) | 2017 | (gnus-message 5 "Reading %s..." ding-file) |
| 2016 | (let (gnus-newsrc-assoc) | 2018 | (let (gnus-newsrc-assoc) |
| 2017 | (condition-case nil | 2019 | (condition-case nil |
| 2018 | (let ((coding-system-for-read gnus-ding-file-coding-system)) | 2020 | (load ding-file t t t) |
| 2019 | (load ding-file t t t)) | ||
| 2020 | (error | 2021 | (error |
| 2021 | (ding) | 2022 | (ding) |
| 2022 | (unless (gnus-yes-or-no-p | 2023 | (unless (gnus-yes-or-no-p |
| @@ -2390,7 +2391,8 @@ If FORCE is non-nil, the .newsrc file is read." | |||
| 2390 | (let ((print-quoted t) | 2391 | (let ((print-quoted t) |
| 2391 | (print-escape-newlines t)) | 2392 | (print-escape-newlines t)) |
| 2392 | 2393 | ||
| 2393 | (insert ";; -*- emacs-lisp -*-\n") | 2394 | (insert ";; -*- emacs-lisp; coding: " |
| 2395 | (format "%s" gnus-ding-file-coding-system) ";-*-\n") | ||
| 2394 | (insert ";; Gnus startup file.\n") | 2396 | (insert ";; Gnus startup file.\n") |
| 2395 | (insert "\ | 2397 | (insert "\ |
| 2396 | ;; Never delete this file -- if you want to force Gnus to read the | 2398 | ;; Never delete this file -- if you want to force Gnus to read the |