diff options
| -rw-r--r-- | lisp/url/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/url/url-mailto.el | 14 |
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 @@ | |||
| 1 | 2005-09-15 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * url-mailto.el (url-mailto): Delete mail buffer after sending | ||
| 4 | autogenerated mail. | ||
| 5 | |||
| 1 | 2005-09-13 Chong Yidong <cyd@stupidchicken.com> | 6 | 2005-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) |