Use the last charset.
authorShengHuo ZHU <zsh@cs.rochester.edu>
Thu, 9 Dec 1999 15:23:49 +0000 (15:23 +0000)
committerShengHuo ZHU <zsh@cs.rochester.edu>
Thu, 9 Dec 1999 15:23:49 +0000 (15:23 +0000)
Fix bug in get new mail in this group.

lisp/ChangeLog
lisp/gnus-group.el
lisp/mm-util.el

index b8b0b31..9d50c19 100644 (file)
@@ -1,3 +1,12 @@
+1999-12-09 10:20:07  Shenghuo ZHU  <zsh@cs.rochester.edu>
+
+       * gnus-group.el (gnus-group-get-new-news-this-group): Binding
+       nnmail-fetched-sources.
+
+1999-12-09 10:19:01  Shenghuo ZHU  <zsh@cs.rochester.edu>
+
+       * mm-util.el (mm-find-charset-region): Use the last charset.
+
 1999-12-08  Per Abrahamsen  <abraham@dina.kvl.dk>
 
        * gnus.el (gnus-select-method): Made the option list prettier.
index be1b1a0..fa89ba1 100644 (file)
@@ -3047,7 +3047,12 @@ If N is negative, this group and the N-1 previous groups will be checked."
         (ret (if (numberp n) (- n (length groups)) 0))
         (beg (unless n
                (point)))
-        group method)
+        group method
+        (gnus-inhibit-demon t)
+        ;; Binding this variable will inhibit multiple fetchings
+        ;; of the same mail source.
+        (nnmail-fetched-sources (list t)))
+    (gnus-run-hooks 'gnus-get-new-news-hook)
     (while (setq group (pop groups))
       (gnus-group-remove-mark group)
       ;; Bypass any previous denials from the server.
index 785c4b6..7b10816 100644 (file)
@@ -315,7 +315,7 @@ See also `with-temp-file' and `with-output-to-string'."
          (skip-chars-forward "\0-\177")
          (if (eobp)
              '(ascii)
-           (delq nil (list 'ascii (cadr (assq 'charset entry)))))))))))
+           (delq nil (list 'ascii (car (last (assq 'charset entry))))))))))))
 
 (defun mm-read-charset (prompt)
   "Return a charset."