summaryrefslogtreecommitdiff
path: root/lisp/url/url-mailto.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2005-09-17 04:58:28 +0000
committerRichard M. Stallman <rms@gnu.org>2005-09-17 04:58:28 +0000
commit49b545fe3399bf23d9d6be90edb6f5c2e18e7f36 (patch)
treed8457d0caf11762954a3c048ac10f04394796669 /lisp/url/url-mailto.el
parentcfbc3a32d7fb2beb872b70f9962973b4d8df66b0 (diff)
downloademacs-49b545fe3399bf23d9d6be90edb6f5c2e18e7f36.tar.gz
(url-mailto): Special case `mail'.
Don't test fboundp of `compose-mail'.
Diffstat (limited to 'lisp/url/url-mailto.el')
-rw-r--r--lisp/url/url-mailto.el10
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/url/url-mailto.el b/lisp/url/url-mailto.el
index 3b306bbcc85..e9d5ff6fc15 100644
--- a/lisp/url/url-mailto.el
+++ b/lisp/url/url-mailto.el
@@ -92,11 +92,11 @@
(setq args (cons (list "to" to) args))))
(setq subject (cdr-safe (assoc "subject" args)))
- (if (fboundp url-mail-command)
- (if (eq url-mail-command 'compose-mail)
- (compose-mail nil nil nil 'new)
- (funcall url-mail-command))
- (mail 'new))
+ (if (eq url-mail-command 'compose-mail)
+ (compose-mail nil nil nil 'new)
+ (if (eq url-mail-command 'mail)
+ (mail 'new)
+ (funcall url-mail-command)))
(while args
(if (string= (caar args) "body")
(progn