mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
(ido-save-history): Set the `coding' local
variable in the first line of the file.
This commit is contained in:
parent
9cf8f393ad
commit
efccebb574
1 changed files with 2 additions and 1 deletions
|
|
@ -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)))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue