mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 18:37:33 +00:00
(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.
This commit is contained in:
parent
6054cc87fe
commit
4cbb4eb739
2 changed files with 9 additions and 2 deletions
|
|
@ -1,3 +1,9 @@
|
|||
2007-12-04 Juanma Barranquero <lekktu@gmail.com>
|
||||
|
||||
* ido.el (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.
|
||||
|
||||
2007-12-04 Karl Fogel <kfogel@red-bean.com>
|
||||
|
||||
* saveplace.el (save-place-alist-to-file): Save with 'emacs-mule'
|
||||
|
|
|
|||
|
|
@ -1309,7 +1309,8 @@ Value is an integer which is number of chars to right of prompt.")
|
|||
(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 @@ Value is an integer which is number of chars to right of prompt.")
|
|||
(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)))))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue