[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Create email with selected text as body?
From: |
Giorgos Keramidas |
Subject: |
Re: Create email with selected text as body? |
Date: |
Thu, 16 Dec 2010 16:53:11 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
On Thu, 16 Dec 2010 11:55:20 +0100, Rainer M Krug <R.M.Krug@gmail.com> wrote:
> Hi
>
> Is it possible to create an email and include the selected text
> automatically in the body of the email?
>
> Essentially, create an email as C-x m does, but to include the
> selected text in the body?
I don't know of a command that makes this simpler, but you can always
yank the selected region with `M-w' and paste it to the buffer `C-x m'
pops up. You can also write a `mail-region' interactive command that
takes care of all this in a single invocation.
Look at the functions `buffer-substring', `message-goto-body' and to the
YANK-ACTION argument of the `compose-mail' function. It should be
pretty easy to write `mail-region' using these three.