changeset 65522:75da5ea5fb14

2005-09-15 Chong Yidong <cyd@stupidchicken.com> * url-mailto.el (url-mailto): Call `compose-mail with `new' argument if possible.
author Chong Yidong <cyd@stupidchicken.com>
date Thu, 15 Sep 2005 03:54:24 +0000
parents 4de96b605e55
children 9ab66cb89208
files lisp/url/ChangeLog lisp/url/url-mailto.el
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/url/ChangeLog	Thu Sep 15 03:47:22 2005 +0000
+++ b/lisp/url/ChangeLog	Thu Sep 15 03:54:24 2005 +0000
@@ -2,6 +2,7 @@
 
 	* url-mailto.el (url-mailto): Delete mail buffer after sending
 	autogenerated mail.
+	Call `compose-mail with `new' argument if possible.
 
 2005-09-13  Chong Yidong  <cyd@stupidchicken.com>
 
--- a/lisp/url/url-mailto.el	Thu Sep 15 03:47:22 2005 +0000
+++ b/lisp/url/url-mailto.el	Thu Sep 15 03:54:24 2005 +0000
@@ -92,7 +92,11 @@
 	(setq args (cons (list "to" to) args))))
 
     (setq subject (cdr-safe (assoc "subject" args)))
-    (if (fboundp url-mail-command) (funcall url-mail-command) (mail 'new))
+    (if (fboundp url-mail-command)
+	(if (eq url-mail-command 'compose-mail)
+	    (compose-mail nil nil nil 'new)
+	  (funcall url-mail-command))
+      (mail 'new))
     (while args
       (if (string= (caar args) "body")
 	  (progn