Commit efccebb5 authored by Juanma Barranquero's avatar Juanma Barranquero
Browse files

(ido-save-history): Set the `coding' local

variable in the first line of the file.
parent 9cf8f393
......@@ -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)))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment