unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* sendmail.el
@ 2016-08-24  3:05 Richard Stallman
  2016-08-24  8:26 ` sendmail.el Nicolas Petton
  2016-08-25  1:05 ` sendmail.el Noam Postavsky
  0 siblings, 2 replies; 11+ messages in thread
From: Richard Stallman @ 2016-08-24  3:05 UTC (permalink / raw)
  To: emacs-devel

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

This fixes a bug I ran across today.  My sources are from July,
but the bug may be present in the Emacs 25.1 code.  Please check.

diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index 58f708a..3d22209 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -1110,10 +1110,11 @@ mail-combine-fields
               (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


-- 
Dr Richard Stallman
President, Free Software Foundation (gnu.org, fsf.org)
Internet Hall-of-Famer (internethalloffame.org)
Skype: No way! See stallman.org/skype.html.




^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2016-09-03 15:48 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-24  3:05 sendmail.el Richard Stallman
2016-08-24  8:26 ` sendmail.el Nicolas Petton
2016-08-24 19:46   ` sendmail.el Richard Stallman
2016-08-25  1:05 ` sendmail.el Noam Postavsky
2016-08-25 22:20   ` sendmail.el Richard Stallman
2016-08-27  3:04     ` sendmail.el Noam Postavsky
2016-08-27  7:42       ` sendmail.el Eli Zaretskii
2016-08-27 21:46   ` sendmail.el Richard Stallman
2016-08-27 22:05     ` sendmail.el Noam Postavsky
2016-08-28  2:01       ` sendmail.el John Wiegley
2016-09-03 15:48         ` sendmail.el Noam Postavsky

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).