]> code.delx.au - gnu-emacs/commitdiff
(ido-save-history): Set the `coding' local
authorJuanma Barranquero <lekktu@gmail.com>
Tue, 4 Dec 2007 15:48:25 +0000 (15:48 +0000)
committerJuanma Barranquero <lekktu@gmail.com>
Tue, 4 Dec 2007 15:48:25 +0000 (15:48 +0000)
variable in the first line of the file.

lisp/ido.el

index 3801934fc3ed73c7cdfb2cbc472a4de99785aa0d..2a32743907853cd871917daf8c733f665ed88b77 100644 (file)
@@ -1309,6 +1309,7 @@ Value is an integer which is number of chars to right of prompt.")
       (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 @@ 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)))))