summaryrefslogtreecommitdiff
path: root/lisp/gnus/mm-partial.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/gnus/mm-partial.el')
-rw-r--r--lisp/gnus/mm-partial.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/gnus/mm-partial.el b/lisp/gnus/mm-partial.el
index 1fa3e6967e7..f59ca10d783 100644
--- a/lisp/gnus/mm-partial.el
+++ b/lisp/gnus/mm-partial.el
@@ -34,8 +34,7 @@
(require 'mm-decode)
(defun mm-partial-find-parts (id &optional art)
- (let ((headers (save-excursion
- (set-buffer gnus-summary-buffer)
+ (let ((headers (with-current-buffer gnus-summary-buffer
gnus-newsgroup-headers))
phandles header)
(while (setq header (pop headers))