From: Bob Newell <bobnewell@bobnewell.net>
To: help-gnu-emacs@gnu.org
Subject: Re: help with emailing buffer
Date: Tue, 30 Jan 2018 19:44:06 -1000 [thread overview]
Message-ID: <CADoYgq-c69AQ=p+Dum-=t=KyfMVYpZjyridWdL=iiCdEL2dvqw@mail.gmail.com> (raw)
In-Reply-To: <20180130214137752736235@bob.proulx.com>
This or something like it was posted online some while ago (so it's
not my original work by any means and I apologize for not knowing whom
to credit).
(defun send-buffer-as-mail ()
(interactive)
(let ((buf (current-buffer)))
(compose-mail)
(save-excursion
(message-goto-body)
(insert-buffer-substring buf))))
Obviously, fill in the headers after doing this. I use this frequently
and it works for me.
--
Bob Newell
Honolulu, Hawai`i
Sent via Linux Mint 17.
next prev parent reply other threads:[~2018-01-31 5:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-30 11:00 help with emailing buffer Ken Stevens
2018-01-30 13:35 ` Michael Albinus
2018-01-31 4:59 ` Bob Proulx
2018-01-31 5:44 ` Bob Newell [this message]
2018-01-31 10:32 ` Ken Stevens
[not found] ` <mailman.8286.1517377470.27995.help-gnu-emacs@gnu.org>
2018-01-31 13:51 ` Emanuel Berg
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CADoYgq-c69AQ=p+Dum-=t=KyfMVYpZjyridWdL=iiCdEL2dvqw@mail.gmail.com' \
--to=bobnewell@bobnewell.net \
--cc=help-gnu-emacs@gnu.org \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).