# HG changeset patch # User Juanma Barranquero # Date 1196783305 0 # Node ID 9c5b08ec6fce7a884d864540f61e88d369da933d # Parent dcc98b45b61dea4b259591f4494aee417badcb27 (ido-save-history): Set the `coding' local variable in the first line of the file. diff -r dcc98b45b61d -r 9c5b08ec6fce lisp/ido.el --- 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)))))