Mercurial > hg > xemacs-beta
annotate src/offix-types.h @ 4647:e4ed58cb0e5b
Fix bugs with #'find-file, 0-length files, & coding-system-for-read specified.
src/ChangeLog addition:
2009-07-11 Aidan Kehoe <kehoea@parhasard.net>
* file-coding.c (undecided_canonicalize_after_coding):
If no data have been seen, or if
coding_stream_canonicalize_after_coding gives nil, pass back
str->codesys, which will be of type undecided (the same as the old
behaviour) but will reflect any CODESYS argument passed to
make_coding_input_stream. See also the change in lisp/code-files.el
lisp/ChangeLog addition:
2009-07-11 Aidan Kehoe <kehoea@parhasard.net>
* code-files.el (insert-file-contents):
Take advantage of more sensible behaviour from
#'insert-file-contents-internal, allowing us to actually follow
the documented coding system behaviour for nonexistent files (that
is, buffer-file-coding-system reflects coding-system-for-read &c.,
not becoming undecided for either zero-length or nonexistent
files).
tests/ChangeLog addition:
2009-07-11 Aidan Kehoe <kehoea@parhasard.net>
* automated/mule-tests.el:
Check for Richard Zidlicky's bug of
http://mid.gmane.org/20090602194123.GA5163@linux-m68k.org; also
check that supplying CODESYS to #'find-file is respected both for
nonexistent files and zero-length existing files.
| author | Aidan Kehoe <kehoea@parhasard.net> |
|---|---|
| date | Sat, 11 Jul 2009 16:33:35 +0100 |
| parents | 74fd4e045ea6 |
| children | 697ef44129c6 |
| rev | line source |
|---|---|
| 197 | 1 /* |
| 2 Copyright (C) 1996 César Crusius | |
| 3 | |
| 4 This file is part of the DND Library. This library is free | |
| 5 software; you can redistribute it and/or modify it under the terms of | |
| 6 the GNU Library General Public License as published by the Free | |
| 7 Software Foundation; either version 2 of the License, or (at your | |
| 8 option) any later version. This library is distributed in the hope | |
| 9 that it will be useful, but WITHOUT ANY WARRANTY; without even the | |
| 10 implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR | |
| 11 PURPOSE. See the GNU Library General Public License for more details. | |
| 12 You should have received a copy of the GNU Library General Public | |
| 13 License along with this library; if not, write to the Free Software | |
| 14 Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. | |
| 15 */ | |
| 16 | |
| 398 | 17 #ifndef INCLUDED_offix_types_h_ |
| 18 #define INCLUDED_offix_types_h_ | |
| 197 | 19 |
| 20 #define DndNotDnd -1 | |
| 21 #define DndUnknown 0 | |
| 22 #define DndRawData 1 | |
| 23 #define DndFile 2 | |
| 24 #define DndFiles 3 | |
| 25 #define DndText 4 | |
| 26 #define DndDir 5 | |
| 27 #define DndLink 6 | |
| 28 #define DndExe 7 | |
| 29 #define DndURL 8 | |
| 30 #define DndMIME 9 | |
| 31 | |
| 32 #define DndEND 10 | |
| 33 | |
| 398 | 34 #endif /* INCLUDED_offix_types_h_ */ |
