From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Stevens Newsgroups: gmane.emacs.help Subject: Re: help with emailing buffer Date: Wed, 31 Jan 2018 05:32:11 -0500 Message-ID: <87o9lagvys.fsf@gmail.com> References: <874ln3wqa1.fsf@gmail.com> <20180130214137752736235@bob.proulx.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1517394670 5672 195.159.176.226 (31 Jan 2018 10:31:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Jan 2018 10:31:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Bob Newell Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 31 11:31:06 2018 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1egpfP-0000fi-28 for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Jan 2018 11:30:59 +0100 Original-Received: from localhost ([::1]:51099 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egphP-0008Ib-Vt for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Jan 2018 05:33:04 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42361) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1egpgh-0008H1-PZ for help-gnu-emacs@gnu.org; Wed, 31 Jan 2018 05:32:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1egpgb-00034c-ST for help-gnu-emacs@gnu.org; Wed, 31 Jan 2018 05:32:19 -0500 Original-Received: from mail-yw0-x22f.google.com ([2607:f8b0:4002:c05::22f]:37962) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1egpgb-000345-Oq for help-gnu-emacs@gnu.org; Wed, 31 Jan 2018 05:32:13 -0500 Original-Received: by mail-yw0-x22f.google.com with SMTP id m84so7117830ywd.5 for ; Wed, 31 Jan 2018 02:32:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=t6r8KNOKcXLJKXwgkrSvjHxwMs5R7KRufcQ1epD6C4I=; b=CxRGTt2Y5wMLE7btelaTbOlYRu92eD/z1UPAHUQqupBIpFlVbnUTvfb7t8rSCquMw7 0qE7h4NUTv5a0Im6Cyu78EElt9GnaFvUHIdaeY6jUYSRFP/guxZXAwP0uLiN3xIb1MGZ 0c+7RePk6jGzJFLH6xlcxC+0nr24x0YUyY3koZBGBLtxuQua+JjHPZGb0c2QM4W4fCZk IOuEChORaAUbG3zMvz1fco6UwTK79eCAY40Y1iO/brONAc4CuyEI+Tdcy5A0nfiKaJTM xX488R3vo6V/jMMo43lc3OhKtBqbiQVylMFswjWPGQerbbLQkbR/rf/38Cfv3dryxlcd dY6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=t6r8KNOKcXLJKXwgkrSvjHxwMs5R7KRufcQ1epD6C4I=; b=eudry0iNFDet4m3B8ei/tYRBYwIkNfM915lAXckXpgrLZioiXNTJBS4sTQsnYB7aHL cxatigk3rVtavLmY6ri9YRwM8LOG3615TV/XGa4gX0H00XOFWsthxtbtwlS6IsJuJa7l G4G7dD+Xzhu1KHFIXoXT3q9DKp494BjFhiKAb9qyZchVqbIPLy+7TmNJ92ZfZgQb9XCz hZhK5FOjuEizmAM8ltL8Wto9Xb4sBzGW/l09alw01Qp9WGVpqFn3F5OuVCs+xFhJejyH KbfCZNDLzrBRSHnG6qtOMv/juViarsC9RJzL1eKsT1GaD2mIo7XkYrRId5tH4tAF224g IHng== X-Gm-Message-State: AKwxytclbX8vLHigX3VKPkJiPxs67XOzqNp4e2PFC7GHitjCV5M3uPii mqYASAcULepo4j2PmjdjP3WN/Q== X-Google-Smtp-Source: AH8x227SXvQ01j1/vCgygxKUMlQkmgP/083JXx/kX11sc9Mo/P3r8A+Koa9gqwVxFlnHV28lwtee8g== X-Received: by 10.13.226.194 with SMTP id l185mr22378838ywe.47.1517394733047; Wed, 31 Jan 2018 02:32:13 -0800 (PST) Original-Received: from localhost.localdomain (24-177-142-223.dhcp.oxfr.ma.charter.com. [24.177.142.223]) by smtp.gmail.com with ESMTPSA id w5sm6048467ywl.89.2018.01.31.02.32.11 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 31 Jan 2018 02:32:12 -0800 (PST) In-Reply-To: (Bob Newell's message of "Tue, 30 Jan 2018 19:44:06 -1000") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4002:c05::22f X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:115889 Archived-At: Bob Newell 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