summaryrefslogtreecommitdiff
path: root/lisp/gnus/gnus-logic.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/gnus/gnus-logic.el')
-rw-r--r--lisp/gnus/gnus-logic.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/lisp/gnus/gnus-logic.el b/lisp/gnus/gnus-logic.el
index e6d28ae26aa..9637ebfb387 100644
--- a/lisp/gnus/gnus-logic.el
+++ b/lisp/gnus/gnus-logic.el
@@ -179,8 +179,7 @@
(defun gnus-advanced-body (header match type)
(when (string= header "all")
(setq header "article"))
- (save-excursion
- (set-buffer nntp-server-buffer)
+ (with-current-buffer nntp-server-buffer
(let* ((request-func (cond ((string= "head" header)
'gnus-request-head)
((string= "body" header)