Mercurial > emacs
changeset 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 | 5199317dbf14 |
children | b06b28e4c0b3 |
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: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))