Sync up with pgnus-0.32
[elisp/gnus.git-] / lisp / nnmbox.el
index b0f3c21..c38193a 100644 (file)
            (nnmbox-article-group-number)))))))
 
 (deffoo nnmbox-request-group (group &optional server dont-check)
+  (nnmbox-possibly-change-newsgroup nil server)
   (let ((active (cadr (assoc group nnmbox-group-alist))))
     (cond
      ((or (null active)
       (set-buffer (setq nnmbox-mbox-buffer
                        (nnheader-find-file-noselect
                         nnmbox-mbox-file nil 'raw)))
-      (buffer-disable-undo (current-buffer))))
+      (mm-enable-multibyte)
+      (buffer-disable-undo)))
   (when (not nnmbox-group-alist)
     (nnmail-activate 'nnmbox))
   (if newsgroup
        (set-buffer (setq nnmbox-mbox-buffer
                          (nnheader-find-file-noselect
                           nnmbox-mbox-file nil 'raw)))
-       (buffer-disable-undo (current-buffer))
+       (buffer-disable-undo)
 
        ;; Go through the group alist and compare against
        ;; the mbox file.