From: David Kastrup <dak@gnu.org>
To: Leo <sdl.web@gmail.com>
Cc: emacs-devel@gnu.org
Subject: Re: url-mailto insert 'body' in the wrong place
Date: Mon, 28 May 2007 20:32:12 +0200 [thread overview]
Message-ID: <85odk4iytv.fsf@lola.goethe.zz> (raw)
In-Reply-To: <m2sl9g248o.fsf@sl392.st-edmunds.cam.ac.uk> (Leo's message of "Mon\, 28 May 2007 19\:27\:19 +0100")
Leo <sdl.web@gmail.com> writes:
> Dear all,
>
> To see the issue:
>
> (url-mailto (url-generic-parse-url "mailto:nobd1@unl.edu?body=I should be inserted before the signature"))
>
> If the mail buffer has a signature part, the 'body' text will be added
> after the signature, which is clearly wrong.
>
> I wonder if the following small patch is good:
>
> Index: url-mailto.el
> ===================================================================
> RCS file: /cvsroot/emacs/emacs/lisp/url/url-mailto.el,v
> retrieving revision 1.4.2.9
> diff -u -r1.4.2.9 url-mailto.el
> --- url-mailto.el 26 Jan 2007 06:15:30 -0000 1.4.2.9
> +++ url-mailto.el 28 May 2007 18:13:20 -0000
> @@ -60,6 +60,11 @@
> (save-excursion
> (insert "\n"))))))
>
> +(defun url-mail-goto-body ()
> + (goto-char (point-min))
> + (or (search-forward (concat "\n" mail-header-separator "\n") nil t)
> + (goto-char (point-max))))
> +
Can't you use message-goto-body here?
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
next prev parent reply other threads:[~2007-05-28 18:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-28 18:27 url-mailto insert 'body' in the wrong place Leo
2007-05-28 18:32 ` David Kastrup [this message]
2007-05-28 18:44 ` Leo
2007-05-29 4:11 ` Richard Stallman
2007-05-29 15:31 ` Chong Yidong
2007-05-29 16:16 ` Leo
2007-05-29 16:24 ` Chong Yidong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=85odk4iytv.fsf@lola.goethe.zz \
--to=dak@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=sdl.web@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.