aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2005-09-15 03:30:39 +0000
committerChong Yidong2005-09-15 03:30:39 +0000
commitb0742512e574c25091cb75f62064af3cf4b3a8b5 (patch)
tree38331e71b699cc17901e9f720849828be8243d97
parentce9b56fe13c59f2c718c03d6ea7f9dc3a0619e42 (diff)
downloademacs-b0742512e574c25091cb75f62064af3cf4b3a8b5.tar.gz
emacs-b0742512e574c25091cb75f62064af3cf4b3a8b5.zip
2005-09-15 Chong Yidong <cyd@stupidchicken.com>
* url-mailto.el (url-mailto): Delete mail buffer after sending autogenerated mail.
-rw-r--r--lisp/url/ChangeLog5
-rw-r--r--lisp/url/url-mailto.el14
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog
index 4235fe13e34..5a9f2093942 100644
--- a/lisp/url/ChangeLog
+++ b/lisp/url/ChangeLog
@@ -1,3 +1,8 @@
12005-09-15 Chong Yidong <cyd@stupidchicken.com>
2
3 * url-mailto.el (url-mailto): Delete mail buffer after sending
4 autogenerated mail.
5
12005-09-13 Chong Yidong <cyd@stupidchicken.com> 62005-09-13 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * url-mailto.el (url-mailto): Always use a new mail buffer. 8 * url-mailto.el (url-mailto): Always use a new mail buffer.
diff --git a/lisp/url/url-mailto.el b/lisp/url/url-mailto.el
index d5f96184013..03770c6d977 100644
--- a/lisp/url/url-mailto.el
+++ b/lisp/url/url-mailto.el
@@ -124,12 +124,14 @@
124 ;; It seems Microsoft-ish to send without warning. 124 ;; It seems Microsoft-ish to send without warning.
125 ;; Fixme: presumably this should depend on a privacy setting. 125 ;; Fixme: presumably this should depend on a privacy setting.
126 (if (y-or-n-p "Send this auto-generated mail? ") 126 (if (y-or-n-p "Send this auto-generated mail? ")
127 (cond ((eq url-mail-command 'compose-mail) 127 (let ((buffer (current-buffer)))
128 (funcall (get mail-user-agent 'sendfunc) nil)) 128 (cond ((eq url-mail-command 'compose-mail)
129 ;; otherwise, we can't be sure 129 (funcall (get mail-user-agent 'sendfunc) nil))
130 ((fboundp 'message-send-and-exit) 130 ;; otherwise, we can't be sure
131 (message-send-and-exit)) 131 ((fboundp 'message-send-and-exit)
132 (t (mail-send-and-exit nil))))) 132 (message-send-and-exit))
133 (t (mail-send-and-exit nil)))
134 (kill-buffer buffer))))
133 nil)) 135 nil))
134 136
135(provide 'url-mailto) 137(provide 'url-mailto)