# HG changeset patch # User Kenichi Handa # Date 960462723 0 # Node ID 09063dfdc92c21e2aed68e53ae70e6c122ec6eab # Parent 3a54bce051149c708622b7c1879c913ff21aaf54 (after-insert-file-set-buffer-file-coding-system): If the buffer size is greater than INSERTED, judget that we are not visiting. diff -r 3a54bce05114 -r 09063dfdc92c lisp/international/mule.el --- a/lisp/international/mule.el Thu Jun 08 11:09:58 2000 +0000 +++ b/lisp/international/mule.el Thu Jun 08 11:12:03 2000 +0000 @@ -1083,8 +1083,10 @@ (if (and enable-multibyte-characters (or (eq coding-system 'no-conversion) (eq (coding-system-type coding-system) 5)) - ;; If buffer was unmodified, we must be visiting it. - (not modified-p)) + ;; If buffer was unmodified and the size is the + ;; same as INSERTED, we must be visiting it. + (not modified-p) + (= (buffer-size) inserted)) ;; For coding systems no-conversion and raw-text..., ;; edit the buffer as unibyte. (let ((pos-byte (position-bytes (+ (point) inserted))))