changeset 77834:44d0773e88ea

(url-mailto): Insert body after mail-header-separator if present, so that is is before signature. Suggested by Leo <sdl.web@gmail.com>.
author Chong Yidong <cyd@stupidchicken.com>
date Tue, 29 May 2007 15:30:06 +0000
parents 8a83fb6e9728
children b9f89e6ea81e
files lisp/url/url-mailto.el
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/url/url-mailto.el	Tue May 29 15:29:58 2007 +0000
+++ b/lisp/url/url-mailto.el	Tue May 29 15:30:06 2007 +0000
@@ -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))