Synch to No Gnus 200506060511.
[elisp/gnus.git-] / lisp / nnfolder.el
index 69cd67b..7c277e1 100644 (file)
@@ -876,6 +876,7 @@ deleted.  Point is left where the deleted region was."
                         nnfolder-file-coding-system))
                    (nnheader-find-file-noselect file t)))))
     (set-buffer-multibyte t) ;; Use multibyte buffer for future copying.
+    (buffer-disable-undo)
     (if (equal (cadr (assoc group nnfolder-scantime-alist))
               (nth 5 (file-attributes file)))
        ;; This looks up-to-date, so we don't do any scanning.
@@ -902,7 +903,6 @@ deleted.  Point is left where the deleted region was."
              maxid start end newscantime
              novbuf articles newnum
              buffer-read-only)
-         (buffer-disable-undo)
          (setq maxid (cdr active))
 
          (unless (or gnus-nov-is-evil nnfolder-nov-is-evil