diff options
| author | Katsumi Yamaoka | 2012-07-03 00:25:57 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2012-07-03 00:25:57 +0000 |
| commit | 71f56da2684465d2dc05b2cc780184d95b291dc1 (patch) | |
| tree | 28c74c151a584178a0eabc064ed952a8d67412e7 | |
| parent | a7aef6f5c6e22b167ea0234ab84c0308201d681b (diff) | |
| download | emacs-71f56da2684465d2dc05b2cc780184d95b291dc1.tar.gz emacs-71f56da2684465d2dc05b2cc780184d95b291dc1.zip | |
gnus-art.el (gnus-article-view-part): Toggle subparts of multipart/alternative part
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 4 |
2 files changed, 8 insertions, 1 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index d608029e618..58a3b879361 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-07-03 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-art.el (gnus-article-view-part): | ||
| 4 | Toggle subparts of multipart/alternative part. | ||
| 5 | |||
| 1 | 2012-07-02 Katsumi Yamaoka <yamaoka@jpl.org> | 6 | 2012-07-02 Katsumi Yamaoka <yamaoka@jpl.org> |
| 2 | 7 | ||
| 3 | * gnus-sync.el: Simply require json. | 8 | * gnus-sync.el: Simply require json. |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index b92c3b6435f..56c2a37c2aa 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -5621,7 +5621,9 @@ all parts." | |||
| 5621 | (let ((handle (cdr (assq n gnus-article-mime-handle-alist)))) | 5621 | (let ((handle (cdr (assq n gnus-article-mime-handle-alist)))) |
| 5622 | (when (gnus-article-goto-part n) | 5622 | (when (gnus-article-goto-part n) |
| 5623 | (if (equal (car handle) "multipart/alternative") | 5623 | (if (equal (car handle) "multipart/alternative") |
| 5624 | (gnus-article-press-button) | 5624 | (progn |
| 5625 | (beginning-of-line) ;; Make it toggle subparts | ||
| 5626 | (gnus-article-press-button)) | ||
| 5625 | (when (eq (gnus-mm-display-part handle) 'internal) | 5627 | (when (eq (gnus-mm-display-part handle) 'internal) |
| 5626 | (gnus-set-window-start))))))) | 5628 | (gnus-set-window-start))))))) |
| 5627 | 5629 | ||