Mercurial > hg > xemacs-beta
view nt/x11.patch @ 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 | 15872534500d |
children |
line wrap: on
line source
*** X11.def.old Thu Apr 10 07:29:27 1997 --- X11.def Wed Jul 02 22:20:16 1997 *************** *** 5,15 **** VERSION 6.1 EXPORTS _Xdebug_p=_Xdebug CONSTANT - _XCreateMutex_fn_p=_XCreateMutex_fn CONSTANT - _XFreeMutex_fn_p=_XFreeMutex_fn CONSTANT - _XLockMutex_fn_p=_XLockMutex_fn CONSTANT - _XUnlockMutex_fn_p=_XUnlockMutex_fn CONSTANT - _Xglobal_lock_p=_Xglobal_lock CONSTANT XActivateScreenSaver XAddConnectionWatch XAddExtension --- 5,10 ---- *************** *** 623,630 **** _XUnregisterFilter _XUnregisterInternalConnection _XVIDtoVisual - _Xthread_init - _Xthread_waiter XkbIgnoreExtension XkbOpenDisplay XkbQueryExtension --- 618,623 ----