changeset 87046:9c5b08ec6fce

(ido-save-history): Set the `coding' local variable in the first line of the file.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 04 Dec 2007 15:48:25 +0000
parents dcc98b45b61d
children 7feb51907c1f
files lisp/ido.el
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ido.el	Tue Dec 04 11:29:32 2007 +0000
+++ b/lisp/ido.el	Tue Dec 04 15:48:25 2007 +0000
@@ -1309,6 +1309,7 @@
       (unwind-protect
 	  (with-current-buffer buf
 	    (erase-buffer)
+	    (insert ";;; -*- coding: utf-8 -*-\n")
 	    (setq buffer-file-coding-system 'utf-8)
 	    (ido-pp 'ido-last-directory-list)
 	    (ido-pp 'ido-work-directory-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)))))