help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: help with emailing buffer


From: Ken Stevens
Subject: Re: help with emailing buffer
Date: Wed, 31 Jan 2018 05:32:11 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]