From 31fbf35ba34ec05c218a2ec4513189c3ed8dfc16 Mon Sep 17 00:00:00 2001 From: yamaoka Date: Tue, 9 Feb 1999 01:10:42 +0000 Subject: [PATCH] * gnus.el (gnus-revision-number): Increment to 07. * gnus-sum.el (gnus-mime-extract-message/rfc822): New implementation. --- lisp/gnus-sum.el | 91 ++++++++++++++++++++++++++++-------------------------- lisp/gnus.el | 2 +- 2 files changed, 48 insertions(+), 45 deletions(-) diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el index 71086ef..86c4426 100644 --- a/lisp/gnus-sum.el +++ b/lisp/gnus-sum.el @@ -9148,56 +9148,59 @@ save those articles instead." ;;; (defun gnus-mime-extract-message/rfc822 (entity situation) - (with-current-buffer (mime-entity-buffer entity) - (save-restriction - (narrow-to-region (mime-entity-body-start entity) - (mime-entity-body-end entity)) - (let* ((group (or (cdr (assq 'group situation)) + (let (group article num cwin swin cur) + (with-current-buffer (mime-entity-buffer entity) + (save-restriction + (narrow-to-region (mime-entity-body-start entity) + (mime-entity-body-end entity)) + (setq group (or (cdr (assq 'group situation)) (completing-read "Group: " gnus-active-hashtb nil (gnus-read-active-file-p) - gnus-newsgroup-name))) - cur - (article (gnus-request-accept-article group)) - (num (or (cdr (assq 'number situation)) - 0))) - (when (and (consp article) - (numberp (setq article (cdr article)))) - (incf num) - (with-current-buffer gnus-summary-buffer - (setq cur gnus-current-article) - (forward-line num) - (let (gnus-show-threads) - (gnus-summary-goto-subject article t) + gnus-newsgroup-name)) + article (gnus-request-accept-article group) ) - (gnus-summary-clear-mark-forward 1) + )) + (when (and (consp article) + (numberp (setq article (cdr article)))) + (setq num (1+ (or (cdr (assq 'number situation)) 0)) + cwin (get-buffer-window (current-buffer) t) ) - (if (boundp 'mime-acting-situation-to-override) - (progn - (set-alist 'mime-acting-situation-to-override - 'group - group) - (set-alist 'mime-acting-situation-to-override - 'after-method - `(progn - (save-current-buffer - (set-buffer gnus-group-buffer) - (gnus-activate-group ,group) - ) - (gnus-summary-goto-article ,cur - gnus-show-all-headers) - )) - (set-alist 'mime-acting-situation-to-override - 'number num) - ) - (save-current-buffer - (set-buffer gnus-group-buffer) - (gnus-activate-group group) - (set-buffer gnus-summary-buffer) - (gnus-summary-goto-article cur gnus-show-all-headers) - ) - )))))) + (save-window-excursion + (if (setq swin (get-buffer-window gnus-summary-buffer t)) + (select-window swin) + (set-buffer gnus-summary-buffer) + ) + (setq cur gnus-current-article) + (forward-line num) + (let (gnus-show-threads) + (gnus-summary-goto-subject article t) + ) + (gnus-summary-clear-mark-forward 1) + (gnus-summary-goto-subject cur) + ) + (when (and cwin (window-frame cwin)) + (select-frame (window-frame cwin)) + ) + (when (boundp 'mime-acting-situation-to-override) + (set-alist 'mime-acting-situation-to-override + 'group + group) + (set-alist 'mime-acting-situation-to-override + 'after-method + `(progn + (save-current-buffer + (set-buffer gnus-group-buffer) + (gnus-activate-group ,group) + ) + (gnus-summary-goto-article ,cur + gnus-show-all-headers) + )) + (set-alist 'mime-acting-situation-to-override + 'number num) + ) + ))) (mime-add-condition 'action '((type . message)(subtype . rfc822) diff --git a/lisp/gnus.el b/lisp/gnus.el index 442b920..0c5f6b1 100644 --- a/lisp/gnus.el +++ b/lisp/gnus.el @@ -267,7 +267,7 @@ is restarted, and sometimes reloaded." (defconst gnus-version-number "6.10.057" "Version number for this version of gnus.") -(defconst gnus-revision-number "06" +(defconst gnus-revision-number "07" "Revision number for this version of gnus.") (defconst gnus-original-version-number "0.75" -- 1.7.10.4