comparison 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
comparison
equal deleted inserted replaced
81093:5199317dbf14 81094:cbb2553eb725
98 (mail 'new) 98 (mail 'new)
99 (funcall url-mail-command))) 99 (funcall url-mail-command)))
100 (while args 100 (while args
101 (if (string= (caar args) "body") 101 (if (string= (caar args) "body")
102 (progn 102 (progn
103 (goto-char (point-max)) 103 (goto-char (point-min))
104 (or (search-forward (concat "\n" mail-header-separator "\n") nil t)
105 (goto-char (point-max)))
104 (insert (mapconcat 106 (insert (mapconcat
105 #'(lambda (string) 107 #'(lambda (string)
106 (replace-regexp-in-string "\r\n" "\n" string)) 108 (replace-regexp-in-string "\r\n" "\n" string))
107 (cdar args) "\n"))) 109 (cdar args) "\n")))
108 (url-mail-goto-field (caar args)) 110 (url-mail-goto-field (caar args))