From: Kenichi Handa Date: Thu, 8 Jun 2000 11:12:03 +0000 (+0000) Subject: (after-insert-file-set-buffer-file-coding-system): If the buffer X-Git-Tag: emacs-pretest-21.0.90~3450 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=136e48e4ac0e15a6bf0e915d07be701dd4d7e0d0;p=emacs.git (after-insert-file-set-buffer-file-coding-system): If the buffer size is greater than INSERTED, judget that we are not visiting. --- diff --git a/lisp/international/mule.el b/lisp/international/mule.el index f193ef7797f..bd9e75220e6 100644 --- a/lisp/international/mule.el +++ b/lisp/international/mule.el @@ -1083,8 +1083,10 @@ function by default." (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))))