Mercurial > emacs
changeset 79536:6cde1f3c5f31
(ido-save-history): Use emacs-mule coding system instead of
utf-8 to save filenames (it's safer in Emacs 22). Set the
`coding' local variable on the first line of the file.
author | Juanma Barranquero <lekktu@gmail.com> |
---|---|
date | Tue, 04 Dec 2007 15:40:26 +0000 |
parents | a84f960614b0 |
children | bb68325eec9b |
files | lisp/ido.el |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/ido.el Tue Dec 04 06:11:29 2007 +0000 +++ b/lisp/ido.el Tue Dec 04 15:40:26 2007 +0000 @@ -1309,7 +1309,8 @@ (unwind-protect (with-current-buffer buf (erase-buffer) - (setq buffer-file-coding-system 'utf-8) + (insert ";;; -*- coding: emacs-mule -*-\n") + (setq buffer-file-coding-system 'emacs-mule) (ido-pp 'ido-last-directory-list) (ido-pp 'ido-work-directory-list) (ido-pp 'ido-work-file-list) @@ -1317,7 +1318,7 @@ (if (listp ido-unc-hosts-cache) (ido-pp 'ido-unc-hosts-cache) (insert "\n;; ----- ido-unc-hosts-cache -----\nt\n")) - (insert "\n;; Local Variables:\n;; coding: utf-8\n;; End:\n") + (insert "\n") (write-file ido-save-directory-list-file nil)) (kill-buffer buf)))))