* rfc2047.el (rfc2047-encodable-p): Use the header charset.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 13 May 2003 22:39:10 +0000 (22:39 +0000)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 13 May 2003 22:39:10 +0000 (22:39 +0000)
* gnus-sum.el (gnus-summary-reselect-current-group): Supply
leave-hidden.

lisp/ChangeLog
lisp/gnus-sum.el
lisp/rfc2047.el

index ce64840..3070b1c 100644 (file)
@@ -1,3 +1,15 @@
+2003-05-14  Lars Magne Ingebrigtsen  <larsi@gnus.org>
+
+       * rfc2047.el (rfc2047-encodable-p): Use the header charset. 
+
+       * gnus-sum.el (gnus-summary-reselect-current-group): Supply
+       leave-hidden. 
+
+2003-05-14  Jonathan Kamens  <jik@kamens.brookline.ma.us>
+
+       * gnus-sum.el (gnus-summary-exit): Added `leave-hidden'.  (Tiny
+       patch.) 
+
 2003-05-13  Lars Magne Ingebrigtsen  <larsi@gnus.org>
 
        * gnus-registry.el (gnus-registry-store-extra-entry): Use
index d5c6570..23d350a 100644 (file)
@@ -6393,7 +6393,7 @@ The prefix argument ALL means to select all articles."
   (let ((current-subject (gnus-summary-find-for-reselect))
        (group gnus-newsgroup-name))
     (setq gnus-newsgroup-begin nil)
-    (gnus-summary-exit)
+    (gnus-summary-exit nil 'leave-hidden)
     ;; We have to adjust the point of group mode buffer because
     ;; point was moved to the next unread newsgroup by exiting.
     (gnus-summary-jump-to-group group)
@@ -6456,7 +6456,7 @@ If FORCE (the prefix), also save the .newsrc file(s)."
       (gnus-save-newsrc-file)
     (gnus-dribble-save)))
 
-(defun gnus-summary-exit (&optional temporary)
+(defun gnus-summary-exit (&optional temporary leave-hidden)
   "Exit reading current newsgroup, and then return to group selection mode.
 `gnus-exit-group-hook' is called with no arguments if that value is non-nil."
   (interactive)
@@ -6546,11 +6546,14 @@ If FORCE (the prefix), also save the .newsrc file(s)."
        (when (eq mode 'gnus-summary-mode)
          (gnus-kill-buffer buf)))
       (setq gnus-current-select-method gnus-select-method)
-      (pop-to-buffer gnus-group-buffer)
+      (if leave-hidden
+         (set-buffer gnus-group-buffer)
+       (pop-to-buffer gnus-group-buffer))
       (if (not quit-config)
          (progn
            (goto-char group-point)
-           (gnus-configure-windows 'group 'force))
+           (unless leave-hidden
+             (gnus-configure-windows 'group 'force)))
        (gnus-handle-ephemeral-exit quit-config))
       ;; Clear the current group name.
       (unless quit-config
index ecafee4..fb76875 100644 (file)
@@ -255,7 +255,8 @@ The buffer may be narrowed."
   (require 'message)                   ; for message-posting-charset
   (let ((charsets
         (mm-find-mime-charset-region (point-min) (point-max))))
-    (and charsets (not (equal charsets (list message-posting-charset))))))
+    (and charsets
+        (not (equal charsets (list (car message-posting-charset)))))))
 
 ;; Use this syntax table when parsing into regions that may need
 ;; encoding.  Double quotes are string delimiters, backslash is