diff options
| author | Eli Zaretskii | 2017-01-07 14:33:41 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2017-01-07 14:33:41 +0200 |
| commit | e272032769178768cf970839a9c22aba1f5b572e (patch) | |
| tree | cc7e24310c5a874cef5e6acb910fb46ae9272d9a /src/coding.c | |
| parent | 50fd04cd4b831a166db30292c4dc0c24be8e6e9d (diff) | |
| download | emacs-e272032769178768cf970839a9c22aba1f5b572e.tar.gz emacs-e272032769178768cf970839a9c22aba1f5b572e.zip | |
Specify encoding of the bookmark file
* lisp/bookmark.el (bookmark-insert-file-format-version-stamp):
Accept an argument CODING and include a 'coding:' cookie in the
bookmark file preamble.
(bookmark-upgrade-file-format-from-0): Call
'bookmark-insert-file-format-version-stamp' with the file buffer's
encoding, as detected when it was read.
(bookmark-file-coding-system): New variable.
(bookmark-load): Set bookmark-file-coding-system to the encoding
of the loaded file.
(bookmark-write-file): Bind coding-system-for-write to either the
user setting via "C-x RET c" or to the existing file encoding,
defaulting to 'utf-8-emacs'. Update the value of
bookmark-file-coding-system. (Bug#25365)
Diffstat (limited to 'src/coding.c')
0 files changed, 0 insertions, 0 deletions