aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2007-12-04 15:43:26 +0000
committerJuanma Barranquero2007-12-04 15:43:26 +0000
commit4cbb4eb7390c14cd2c99bf66d56eb4130dfde865 (patch)
tree2455da27b40d8c0fc5bd3da176cf9355d8512f35
parent6054cc87fea83446831be2aad8048ddd1d4402b4 (diff)
downloademacs-4cbb4eb7390c14cd2c99bf66d56eb4130dfde865.tar.gz
emacs-4cbb4eb7390c14cd2c99bf66d56eb4130dfde865.zip
(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.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/ido.el5
2 files changed, 9 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1535a87904a..0a96ba61341 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-12-04 Juanma Barranquero <lekktu@gmail.com>
2
3 * ido.el (ido-save-history): Use emacs-mule coding system
4 instead of utf-8 to save filenames (it's safer in Emacs 22).
5 Set the `coding' local variable on the first line of the file.
6
12007-12-04 Karl Fogel <kfogel@red-bean.com> 72007-12-04 Karl Fogel <kfogel@red-bean.com>
2 8
3 * saveplace.el (save-place-alist-to-file): Save with 'emacs-mule' 9 * saveplace.el (save-place-alist-to-file): Save with 'emacs-mule'
diff --git a/lisp/ido.el b/lisp/ido.el
index 9b1f6a634aa..41149038b0e 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -1309,7 +1309,8 @@ Value is an integer which is number of chars to right of prompt.")
1309 (unwind-protect 1309 (unwind-protect
1310 (with-current-buffer buf 1310 (with-current-buffer buf
1311 (erase-buffer) 1311 (erase-buffer)
1312 (setq buffer-file-coding-system 'utf-8) 1312 (insert ";;; -*- coding: emacs-mule -*-\n")
1313 (setq buffer-file-coding-system 'emacs-mule)
1313 (ido-pp 'ido-last-directory-list) 1314 (ido-pp 'ido-last-directory-list)
1314 (ido-pp 'ido-work-directory-list) 1315 (ido-pp 'ido-work-directory-list)
1315 (ido-pp 'ido-work-file-list) 1316 (ido-pp 'ido-work-file-list)
@@ -1317,7 +1318,7 @@ Value is an integer which is number of chars to right of prompt.")
1317 (if (listp ido-unc-hosts-cache) 1318 (if (listp ido-unc-hosts-cache)
1318 (ido-pp 'ido-unc-hosts-cache) 1319 (ido-pp 'ido-unc-hosts-cache)
1319 (insert "\n;; ----- ido-unc-hosts-cache -----\nt\n")) 1320 (insert "\n;; ----- ido-unc-hosts-cache -----\nt\n"))
1320 (insert "\n;; Local Variables:\n;; coding: utf-8\n;; End:\n") 1321 (insert "\n")
1321 (write-file ido-save-directory-list-file nil)) 1322 (write-file ido-save-directory-list-file nil))
1322 (kill-buffer buf))))) 1323 (kill-buffer buf)))))
1323 1324