Skip to content

Commit

Permalink
gnus-art.el (gnus-article-view-part): Toggle subparts of multipart/al…
Browse files Browse the repository at this point in the history
…ternative part
  • Loading branch information
yamaoka committed Jul 3, 2012
1 parent 449231a commit fa65178
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lisp/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2012-07-03 Katsumi Yamaoka <yamaoka@jpl.org>

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

2012-06-27 Stefan Monnier <monnier@iro.umontreal.ca>

* shr.el (shr-render-buffer): New command.
Expand Down
4 changes: 3 additions & 1 deletion lisp/gnus-art.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)))))))

Expand Down

0 comments on commit fa65178

Please sign in to comment.