[gnus git] branch master updated: m0-5-54-gfa65178 =1= gnus-art.el (gnus-article-view-part): Toggle subparts of multipart/alternative part

Katsumi Yamaoka <[email protected]>
Newsgroups gmane.emacs.gnus.cvs
Message-ID <[email protected]>
       via  fa65178f2e146d7af60aaf05ebbf18266ee44aee (commit)
      from  449231ab8c3cbbd4d086c78b0f9fdfcb8d206b8e (commit)


- Log -----------------------------------------------------------------
commit fa65178f2e146d7af60aaf05ebbf18266ee44aee
Author: Katsumi Yamaoka <[email protected]>
Date:   Tue Jul 3 00:25:37 2012 +0000

    gnus-art.el (gnus-article-view-part): Toggle subparts of multipart/alternative part

diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index db13bb4..20cb5f4 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2012-07-03  Katsumi Yamaoka  <[email protected]>
+
+	* gnus-art.el (gnus-article-view-part):
+	Toggle subparts of multipart/alternative part.
+
 2012-06-27  Stefan Monnier  <[email protected]>
 
 	* shr.el (shr-render-buffer): New command.
diff --git a/lisp/gnus-art.el b/lisp/gnus-art.el
index b92c3b6..56c2a37 100644
--- a/lisp/gnus-art.el
+++ b/lisp/gnus-art.el
@@ -5621,7 +5621,9 @@ all parts."
     (let ((handle (cdr (assq n gnus-article-mime-handle-alist))))
       (when (gnus-article-goto-part n)
 	(if (equal (car handle) "multipart/alternative")
-	    (gnus-article-press-button)
+	    (progn
+	      (beginning-of-line) ;; Make it toggle subparts
+	      (gnus-article-press-button))
 	  (when (eq (gnus-mm-display-part handle) 'internal)
 	    (gnus-set-window-start)))))))
 

-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.

Summary of changes:
 lisp/ChangeLog   |    5 +++++
 lisp/gnus-art.el |    4 +++-
 2 files changed, 8 insertions(+), 1 deletions(-)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".

The branch, master has been updated


hooks/post-receive
-- 
Gnus Project
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.