diff tests/automated/mule-tests.el @ 4650:8905163c49c5

#'find-file: set b-f-c-s even on error (cf. non-existent files), handle undecided coding-systems passed back from #'insert-file-contents-internal better. tests/ChangeLog addition: 2009-07-13 Aidan Kehoe <kehoea@parhasard.net> * automated/mule-tests.el: Now that find-file on a nonexistent path gives a modified buffer, we want to set this kind of buffer to be non-modified here before killing it. lisp/ChangeLog addition: 2009-07-13 Aidan Kehoe <kehoea@parhasard.net> * code-files.el (insert-file-contents): Set the buffer coding system even on error; especially important when dealing with nonexistent files. If the `coding-system' property of an undecided coding system is itself undecided, don't use that as a value for buffer-file-coding-system.
author Aidan Kehoe <kehoea@parhasard.net>
date Mon, 13 Jul 2009 20:45:26 +0100
parents e4ed58cb0e5b
children 938ffa3ffe4d
line wrap: on
line diff
--- a/tests/automated/mule-tests.el	Sun Jul 12 14:20:55 2009 +0100
+++ b/tests/automated/mule-tests.el	Mon Jul 13 20:45:26 2009 +0100
@@ -158,6 +158,7 @@
       (find-file nonexistent-file-name coding-system)
       (Assert (eq (find-coding-system coding-system)
                   buffer-file-coding-system))
+      (set-buffer-modified-p nil)
       (kill-buffer nil)))
   (delete-file existing-file-name))