unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Ken Stevens <kensubuntu@gmail.com>
To: Bob Newell <bobnewell@bobnewell.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: help with emailing buffer
Date: Wed, 31 Jan 2018 05:32:11 -0500	[thread overview]
Message-ID: <87o9lagvys.fsf@gmail.com> (raw)
In-Reply-To: <CADoYgq-c69AQ=p+Dum-=t=KyfMVYpZjyridWdL=iiCdEL2dvqw@mail.gmail.com> (Bob Newell's message of "Tue, 30 Jan 2018 19:44:06 -1000")

Bob Newell <bobnewell@bobnewell.net> writes:

> 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.

Thanks, I'll give it a try this evening.

Ken



  reply	other threads:[~2018-01-31 10:32 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
2018-01-31 10:32     ` Ken Stevens [this message]
     [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=87o9lagvys.fsf@gmail.com \
    --to=kensubuntu@gmail.com \
    --cc=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).