aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2007-11-10 00:19:44 +0000
committerJuanma Barranquero2007-11-10 00:19:44 +0000
commitd725608c0ecfdb7328b5ec49c06f508e18ab6dcd (patch)
tree1d786e30cd3cd92bafc4f26822d20d0064cd8361
parent5015055ea560a3dabb2d4bdb200d749fad374949 (diff)
downloademacs-d725608c0ecfdb7328b5ec49c06f508e18ab6dcd.tar.gz
emacs-d725608c0ecfdb7328b5ec49c06f508e18ab6dcd.zip
(ido-save-history): Save the history file in UTF-8,
not the current filename coding system.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/ido.el9
2 files changed, 8 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 91f99cf8545..ae30079d91b 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12007-11-10 Juanma Barranquero <lekktu@gmail.com>
2
3 * ido.el (ido-save-history): Save the history file in UTF-8, not
4 the current filename coding system.
5
12007-11-09 Stefan Monnier <monnier@iro.umontreal.ca> 62007-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * simple.el (interprogram-cut-function, interprogram-paste-function): 8 * simple.el (interprogram-cut-function, interprogram-paste-function):
diff --git a/lisp/ido.el b/lisp/ido.el
index 3c6eb6c576e..0a077f9dab6 100644
--- a/lisp/ido.el
+++ b/lisp/ido.el
@@ -1305,13 +1305,11 @@ Value is an integer which is number of chars to right of prompt.")
1305 (interactive) 1305 (interactive)
1306 (when (and ido-last-directory-list ido-save-directory-list-file) 1306 (when (and ido-last-directory-list ido-save-directory-list-file)
1307 (let ((buf (get-buffer-create " *ido session*")) 1307 (let ((buf (get-buffer-create " *ido session*"))
1308 (version-control 'never) 1308 (version-control 'never))
1309 (coding-system (or file-name-coding-system
1310 default-file-name-coding-system)))
1311 (unwind-protect 1309 (unwind-protect
1312 (with-current-buffer buf 1310 (with-current-buffer buf
1313 (erase-buffer) 1311 (erase-buffer)
1314 (setq buffer-file-coding-system coding-system) 1312 (setq buffer-file-coding-system 'utf-8)
1315 (ido-pp 'ido-last-directory-list) 1313 (ido-pp 'ido-last-directory-list)
1316 (ido-pp 'ido-work-directory-list) 1314 (ido-pp 'ido-work-directory-list)
1317 (ido-pp 'ido-work-file-list) 1315 (ido-pp 'ido-work-file-list)
@@ -1319,8 +1317,7 @@ Value is an integer which is number of chars to right of prompt.")
1319 (if (listp ido-unc-hosts-cache) 1317 (if (listp ido-unc-hosts-cache)
1320 (ido-pp 'ido-unc-hosts-cache) 1318 (ido-pp 'ido-unc-hosts-cache)
1321 (insert "\n;; ----- ido-unc-hosts-cache -----\nt\n")) 1319 (insert "\n;; ----- ido-unc-hosts-cache -----\nt\n"))
1322 (insert (format "\n;; Local Variables:\n;; coding: %s\n;; End:\n" 1320 (insert "\n;; Local Variables:\n;; coding: utf-8\n;; End:\n")
1323 coding-system))
1324 (write-file ido-save-directory-list-file nil)) 1321 (write-file ido-save-directory-list-file nil))
1325 (kill-buffer buf))))) 1322 (kill-buffer buf)))))
1326 1323