aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-08-02 21:43:09 +0200
committerLars Magne Ingebrigtsen2011-08-02 21:43:09 +0200
commite07dd7c340290ff5b269bffcb9ff421fefb2e1f0 (patch)
treeb24cd06ce17ba802aa54e1e6cf7e33f3051efe61
parent55439c615b8e04748a66a6d88ec70a9ac5acd672 (diff)
downloademacs-e07dd7c340290ff5b269bffcb9ff421fefb2e1f0.tar.gz
emacs-e07dd7c340290ff5b269bffcb9ff421fefb2e1f0.zip
(sendmail-query-once): Restore the current buffer after querying
Fixes: debbugs:9074
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/mail/sendmail.el6
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index b75d042c5db..f6c1b8a5fdf 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12011-08-02 Lars Magne Ingebrigtsen <larsi@gnus.org> 12011-08-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * mail/sendmail.el (sendmail-query-once): Restore the current
4 buffer after querying (bug#9074).
5
3 * dired.el (dired-flagged): Use different faces for marked and 6 * dired.el (dired-flagged): Use different faces for marked and
4 flagged files (bug#6117). 7 flagged files (bug#6117).
5 8
diff --git a/lisp/mail/sendmail.el b/lisp/mail/sendmail.el
index fe20ad921da..158435de86b 100644
--- a/lisp/mail/sendmail.el
+++ b/lisp/mail/sendmail.el
@@ -165,7 +165,8 @@ This is used by the default mail-sending commands. See also
165If `sendmail-query-once-function' is `query', ask the user what 165If `sendmail-query-once-function' is `query', ask the user what
166function to use, and then save that choice." 166function to use, and then save that choice."
167 (when (equal sendmail-query-once-function 'query) 167 (when (equal sendmail-query-once-function 'query)
168 (let* ((default 168 (let* ((mail-buffer (current-buffer))
169 (default
169 (cond 170 (cond
170 ((or (and window-system (eq system-type 'darwin)) 171 ((or (and window-system (eq system-type 'darwin))
171 (eq system-type 'windows-nt)) 172 (eq system-type 'windows-nt))
@@ -195,7 +196,8 @@ function to use, and then save that choice."
195 (if (y-or-n-p "Configure outgoing SMTP in Emacs? ") 196 (if (y-or-n-p "Configure outgoing SMTP in Emacs? ")
196 'smtpmail-send-it 197 'smtpmail-send-it
197 default)) 198 default))
198 (kill-buffer (current-buffer)))))) 199 (kill-buffer (current-buffer))
200 (set-buffer mail-buffer)))))
199 (customize-save-variable 'sendmail-query-once-function function))) 201 (customize-save-variable 'sendmail-query-once-function function)))
200 (funcall sendmail-query-once-function)) 202 (funcall sendmail-query-once-function))
201 203