diff lisp/url/url-mailto.el @ 81094:cbb2553eb725

(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:31:08 +0000
parents e3694f1cb928
children 8932997d0b62
line wrap: on
line diff
--- a/lisp/url/url-mailto.el	Tue May 29 15:31:01 2007 +0000
+++ b/lisp/url/url-mailto.el	Tue May 29 15:31:08 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))