summaryrefslogtreecommitdiff
path: root/lisp/url/url-mailto.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2007-05-29 15:30:06 +0000
committerChong Yidong <cyd@stupidchicken.com>2007-05-29 15:30:06 +0000
commit40165674ac5b1aff6dd93473b3f70bbf91d76c9d (patch)
treeec62c3907dd3a1aea7daf2c17c89c9c345303dfa /lisp/url/url-mailto.el
parent3fd7fba5d04c467f02351894d7c0ce607af198e8 (diff)
downloademacs-40165674ac5b1aff6dd93473b3f70bbf91d76c9d.tar.gz
(url-mailto): Insert body after mail-header-separator if present, so
that is is before signature. Suggested by Leo Liu <sdl.web@gmail.com>.
Diffstat (limited to 'lisp/url/url-mailto.el')
-rw-r--r--lisp/url/url-mailto.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/url/url-mailto.el b/lisp/url/url-mailto.el
index 9f20989a0b1..6585ba8e458 100644
--- a/lisp/url/url-mailto.el
+++ b/lisp/url/url-mailto.el
@@ -100,7 +100,9 @@
(while args
(if (string= (caar args) "body")
(progn
- (goto-char (point-max))
+ (goto-char (point-min))
+ (or (search-forward (concat "\n" mail-header-separator "\n") nil t)
+ (goto-char (point-max)))
(insert (mapconcat
#'(lambda (string)
(replace-regexp-in-string "\r\n" "\n" string))