changeset 62989:62869b151347

(nnfolder-read-folder): Make sure that undo information is never recorded.
author Lute Kamstra <lute@gnu.org>
date Sat, 04 Jun 2005 09:48:49 +0000
parents 3ca414a25103
children decbfd59fbad
files lisp/gnus/nnfolder.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/nnfolder.el	Sat Jun 04 08:06:57 2005 +0000
+++ b/lisp/gnus/nnfolder.el	Sat Jun 04 09:48:49 2005 +0000
@@ -875,6 +875,7 @@
 			 nnfolder-file-coding-system))
 		    (nnheader-find-file-noselect file t)))))
     (mm-enable-multibyte) ;; 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.
@@ -901,7 +902,6 @@
 	      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