diff options
| author | Katsumi Yamaoka | 2010-10-29 07:13:33 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2010-10-29 07:13:33 +0000 |
| commit | 9efcd22463b5414f1fe20314e371b4ad52dfcbe1 (patch) | |
| tree | a14a5e28e2eff6931e9d9b49d47af05bdda83a1f | |
| parent | 4f4f2973e5229b984da408bb74e2a9a78f6d4051 (diff) | |
| download | emacs-9efcd22463b5414f1fe20314e371b4ad52dfcbe1.tar.gz emacs-9efcd22463b5414f1fe20314e371b4ad52dfcbe1.zip | |
gnus-art.el (gnus-article-goto-part): Work for article narrowed by ^L.
| -rw-r--r-- | lisp/gnus/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 15 |
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index df12e96cde6..c368d84cccf 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-10-29 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-art.el (gnus-article-goto-part): Work for article narrowed by ^L. | ||
| 4 | |||
| 1 | 2010-10-28 Lars Magne Ingebrigtsen <larsi@gnus.org> | 5 | 2010-10-28 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 6 | ||
| 3 | * gnus-sum.el (gnus-summary-rescan-group): Try to restore the window | 7 | * gnus-sum.el (gnus-summary-rescan-group): Try to restore the window |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index b4b16797ad7..235aa87bd6a 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -5561,12 +5561,13 @@ all parts." | |||
| 5561 | 5561 | ||
| 5562 | (defun gnus-article-goto-part (n) | 5562 | (defun gnus-article-goto-part (n) |
| 5563 | "Go to MIME part N." | 5563 | "Go to MIME part N." |
| 5564 | (when gnus-break-pages | ||
| 5565 | (widen)) | ||
| 5564 | (let ((start (text-property-any (point-min) (point-max) 'gnus-part n)) | 5566 | (let ((start (text-property-any (point-min) (point-max) 'gnus-part n)) |
| 5565 | part handle end next handles) | 5567 | part handle end next handles) |
| 5566 | (when start | 5568 | (when start |
| 5567 | (goto-char start) | 5569 | (goto-char start) |
| 5568 | (if (setq handle (get-text-property start 'gnus-data)) | 5570 | (unless (setq handle (get-text-property start 'gnus-data)) |
| 5569 | start | ||
| 5570 | ;; Go to the displayed subpart, assuming this is multipart/alternative. | 5571 | ;; Go to the displayed subpart, assuming this is multipart/alternative. |
| 5571 | (setq part start | 5572 | (setq part start |
| 5572 | end (point-at-eol)) | 5573 | end (point-at-eol)) |
| @@ -5586,10 +5587,12 @@ all parts." | |||
| 5586 | (setq part | 5587 | (setq part |
| 5587 | (cdr (assq (mm-preferred-alternative | 5588 | (cdr (assq (mm-preferred-alternative |
| 5588 | (nreverse (mapcar 'car handles))) | 5589 | (nreverse (mapcar 'car handles))) |
| 5589 | handles)))) | 5590 | handles))))) |
| 5590 | (if part | 5591 | (when gnus-break-pages |
| 5591 | (goto-char (1+ part)) | 5592 | (gnus-narrow-to-page)) |
| 5592 | start))))) | 5593 | (if part |
| 5594 | (goto-char (1+ part)) | ||
| 5595 | start)))) | ||
| 5593 | 5596 | ||
| 5594 | (defun gnus-insert-mime-button (handle gnus-tmp-id &optional displayed) | 5597 | (defun gnus-insert-mime-button (handle gnus-tmp-id &optional displayed) |
| 5595 | (let ((gnus-tmp-name | 5598 | (let ((gnus-tmp-name |