From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Bob Newell Newsgroups: gmane.emacs.help Subject: Re: help with emailing buffer Date: Tue, 30 Jan 2018 19:44:06 -1000 Message-ID: References: <874ln3wqa1.fsf@gmail.com> <20180130214137752736235@bob.proulx.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1517377388 4764 195.159.176.226 (31 Jan 2018 05:43:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 31 Jan 2018 05:43:08 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 31 06:43:04 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 1eglAZ-0000AY-Qe for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Jan 2018 06:42:51 +0100 Original-Received: from localhost ([::1]:36493 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eglCa-00017J-1w for geh-help-gnu-emacs@m.gmane.org; Wed, 31 Jan 2018 00:44:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eglC8-00016s-My for help-gnu-emacs@gnu.org; Wed, 31 Jan 2018 00:44:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eglC7-00037Z-UI for help-gnu-emacs@gnu.org; Wed, 31 Jan 2018 00:44:28 -0500 Original-Received: from mail-yw0-x229.google.com ([2607:f8b0:4002:c05::229]:47076) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eglC7-00036U-OJ for help-gnu-emacs@gnu.org; Wed, 31 Jan 2018 00:44:27 -0500 Original-Received: by mail-yw0-x229.google.com with SMTP id c78so6648679ywb.13 for ; Tue, 30 Jan 2018 21:44:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bobnewell-net.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=c9mXwunNQ7r/3l2vBCOl1fjbM8n9bTGk6dEYEPGb3gg=; b=tmVlFC6sVaWB4+QvFLwqOUrp4n761PcPUT9YHkIN9tJP/m7ERZhSHXT6V11E0v4Zdi O9L4WbisjyWS7jEsawpBGgrF6OT/h8Ry8WtOfZuY2wq6kDXsQD8nyHNvNrIJU9Eo7U6W PnhU+zCTIgboxuGDndj8Chrf7EeHTQdCueBb3HdIY0x/DbgZmEPhr+26/EH0E3QSNMsT iq8U8t6HyNQb9QxJxlVbOt8H6crlPaCX8fURIryj0ZH2H9ZEs19v0qagCPma7TeTMDHh D4XkpPnNRSZQswCYsdJcFqbgudr8O5cnMaE/HUFPjecOAR2v3GeAHeBwS9UMajECmwJZ PCSw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=c9mXwunNQ7r/3l2vBCOl1fjbM8n9bTGk6dEYEPGb3gg=; b=bouH1h3QCsrkzFjBo6dInVW3TSo7w1lpdlDb5XazcDKNpflDgZSIqA9LWT7ugx6oZn TAPLBmDL9vsyVtUwENNuhE+2DkzHZCanF/tADEAqlgVaB4Tjg+6I/Ml+AOlHQTR8A1iF 0ReyZEFdwD4AOmUsZ58zvOecZgK1ZLtxv155LACe5U89FjDUUjNiRI15ITIIRFP3n/YM cuTOjPTcckP10j5FlSrwTj09JJiSI75ST9AJSXVO/o3++Eo2FAKnMxhgmmIggMxAWMA9 nD2hHxTyxG7cRUcTGbQLd/Qw7kYmIg5Cwg5GeiZ9CPB2ewonOiENP0f906II9YmL4BfK R4Tw== X-Gm-Message-State: AKwxytePZFc+HtE9aE9iE9jzRwwEsNz/UJ9O93svG9msTCTHCmPOVOTP MTh4MEgqi/RyowW8UiSTRtmk1P6BMxP5fUoEzjQVTMg6 X-Google-Smtp-Source: AH8x226L2NFmgn65o8OaPzdYIwu3p4sXoZGLTpTLAdTY5Fkm1RRIbbYUZ4RQ4vRk3uIfA5N+jWw9Yxn5uwWhqt2ernk= X-Received: by 10.129.76.68 with SMTP id z65mr22092835ywa.513.1517377466647; Tue, 30 Jan 2018 21:44:26 -0800 (PST) Original-Received: by 10.37.80.137 with HTTP; Tue, 30 Jan 2018 21:44:06 -0800 (PST) In-Reply-To: <20180130214137752736235@bob.proulx.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4002:c05::229 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:115888 Archived-At: 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.