Mercurial > hg > xemacs-beta
comparison lisp/ChangeLog @ 4641:a90b63846dc4
Set buffer-file-coding-system more sensibly with zero-length files.
lisp/ChangeLog addition:
2009-06-07 Aidan Kehoe <kehoea@parhasard.net>
* code-files.el (insert-file-contents):
Autodetection may return undecided as a coding system. If the file
was zero-length, this is kosher, and we should set
buffer-file-coding-system to its default; if it is not
zero-length, we still need to set b-f-c-s, but we warn that the
autodetection fails. (Ignoring that for the user, autodetection
failing is something very distinct from what we use it to mean
here.) See
http://mid.gmane.org/18986.53111.800393.660612@parhasard.net and
the related thread.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sun, 07 Jun 2009 16:47:04 +0100 |
parents | 8cef85a39d2c |
children | 48b45a606961 |
comparison
equal
deleted
inserted
replaced
4640:8cef85a39d2c | 4641:a90b63846dc4 |
---|---|
1 2009-06-07 Aidan Kehoe <kehoea@parhasard.net> | |
2 | |
3 * code-files.el (insert-file-contents): | |
4 Autodetection may return undecided as a coding system. If the file | |
5 was zero-length, this is kosher, and we should set | |
6 buffer-file-coding-system to its default; if it is not | |
7 zero-length, we still need to set b-f-c-s, but we warn that the | |
8 autodetection fails. (Ignoring that for the user, autodetection | |
9 failing is something very distinct from what we use it to mean | |
10 here.) See | |
11 http://mid.gmane.org/18986.53111.800393.660612@parhasard.net and | |
12 the related thread. | |
13 | |
1 2009-06-06 Aidan Kehoe <kehoea@parhasard.net> | 14 2009-06-06 Aidan Kehoe <kehoea@parhasard.net> |
2 | 15 |
3 * files.el (cd): | 16 * files.el (cd): |
4 Make CDPATH handling portable, accept entries without trailing | 17 Make CDPATH handling portable, accept entries without trailing |
5 slashes within it. Some style corrections from Stephen Turnbull, | 18 slashes within it. Some style corrections from Stephen Turnbull, |