From f93e42baac06152836b06c5c3b7a1009f0d0c2c7 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Tue, 29 May 2007 15:31:08 +0000 Subject: [PATCH] (url-mailto): Insert body after mail-header-separator if present, so that is is before signature. Suggested by Leo Liu . --- lisp/url/url-mailto.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)) -- 2.39.2