summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mail/sendmail.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 58f708a0c1..3d222090ca 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -1110,10 +1110,11 @@ to combine them into one, and does so if the user says y."
(save-restriction
;; This is just so the screen doesn't change.
(narrow-to-region (point-min) old-max)
- (goto-char old-point)
- (setq query-asked t)
- (if (y-or-n-p (format "Message contains multiple %s fields. Combine? " field))
- (setq query-answer t))))
+ (save-excursion
+ (goto-char old-point)
+ (setq query-asked t)
+ (if (y-or-n-p (format "Message contains multiple %s fields. Combine? " field))
+ (setq query-answer t)))))
(when query-answer
(let ((this-to-start (line-beginning-position))
this-to-end