diff options
| author | Chong Yidong | 2005-09-15 03:54:24 +0000 |
|---|---|---|
| committer | Chong Yidong | 2005-09-15 03:54:24 +0000 |
| commit | 8ded3f47ef31e9c7630663825d406430fd3eb61a (patch) | |
| tree | 20b3a4bc2646028af1ad057b856caf9afd3e980a | |
| parent | a9267c2cce8539a39c978e7219322be1e2af31f8 (diff) | |
| download | emacs-8ded3f47ef31e9c7630663825d406430fd3eb61a.tar.gz emacs-8ded3f47ef31e9c7630663825d406430fd3eb61a.zip | |
2005-09-15 Chong Yidong <cyd@stupidchicken.com>
* url-mailto.el (url-mailto):
Call `compose-mail with `new' argument if possible.
| -rw-r--r-- | lisp/url/ChangeLog | 1 | ||||
| -rw-r--r-- | lisp/url/url-mailto.el | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 5a9f2093942..c08d73739e9 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -2,6 +2,7 @@ | |||
| 2 | 2 | ||
| 3 | * url-mailto.el (url-mailto): Delete mail buffer after sending | 3 | * url-mailto.el (url-mailto): Delete mail buffer after sending |
| 4 | autogenerated mail. | 4 | autogenerated mail. |
| 5 | Call `compose-mail with `new' argument if possible. | ||
| 5 | 6 | ||
| 6 | 2005-09-13 Chong Yidong <cyd@stupidchicken.com> | 7 | 2005-09-13 Chong Yidong <cyd@stupidchicken.com> |
| 7 | 8 | ||
diff --git a/lisp/url/url-mailto.el b/lisp/url/url-mailto.el index 03770c6d977..3b306bbcc85 100644 --- a/lisp/url/url-mailto.el +++ b/lisp/url/url-mailto.el | |||
| @@ -92,7 +92,11 @@ | |||
| 92 | (setq args (cons (list "to" to) args)))) | 92 | (setq args (cons (list "to" to) args)))) |
| 93 | 93 | ||
| 94 | (setq subject (cdr-safe (assoc "subject" args))) | 94 | (setq subject (cdr-safe (assoc "subject" args))) |
| 95 | (if (fboundp url-mail-command) (funcall url-mail-command) (mail 'new)) | 95 | (if (fboundp url-mail-command) |
| 96 | (if (eq url-mail-command 'compose-mail) | ||
| 97 | (compose-mail nil nil nil 'new) | ||
| 98 | (funcall url-mail-command)) | ||
| 99 | (mail 'new)) | ||
| 96 | (while args | 100 | (while args |
| 97 | (if (string= (caar args) "body") | 101 | (if (string= (caar args) "body") |
| 98 | (progn | 102 | (progn |