From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24201 invoked from network); 23 Aug 2021 18:23:59 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 23 Aug 2021 18:23:59 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mIEc1-006F7F-69 for ml@inbox.vuxu.org; Mon, 23 Aug 2021 13:23:57 -0500 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94) (envelope-from ) id 1mIEc0-00H1pq-KM for ml@inbox.vuxu.org; Mon, 23 Aug 2021 13:23:56 -0500 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1mIEby-00H1pi-IQ for ding@lists.math.uh.edu; Mon, 23 Aug 2021 13:23:54 -0500 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1mIEbt-00E8NS-Hk for ding@lists.math.uh.edu; Mon, 23 Aug 2021 13:23:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Transfer-Encoding:Content-Type:Mime-Version:References :Message-ID:Date:Subject:From:To:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=KTMz51jtkFU5x+VZuOod3J0MzdVXzM06zs+tiOIDjGU=; b=k+5HVUhiem8bPxQv3lKeAUcIC3 Ifm3ZhJQ9pavRBPWdAO0xfKHEIg4npWo84a8hpoP5JlPGtjfWZGz+/BgFgmIpa4tMJ9FpMMIB1xQQ /CsTXV+xaDa91p8bmTGi0uYAOxqWg6vwjMrYifrypjdU0T1RynKt2K4/Vb9g+FFK+d9Y=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mIEbk-0006Ro-7X for ding@gnus.org; Mon, 23 Aug 2021 20:23:44 +0200 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mIEbd-0005bo-9u for ding@gnus.org; Mon, 23 Aug 2021 20:23:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: ding@gnus.org To: ding@gnus.org From: Emanuel Berg Subject: Re: my attach this buffer Date: Mon, 23 Aug 2021 20:23:24 +0200 Message-ID: <877dgcrper.fsf@zoho.eu> References: <87fsyen0oz.fsf@mat.ucm.es> <87lf86ver1.fsf@dick> <87zgwmk5pv.fsf@mat.ucm.es> <86fsv09xhp.fsf@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cancel-Lock: sha1:b6FwKubj1U8eNiniPhpFCqPEXYA= Mail-Copies-To: never List-ID: Precedence: bulk Wayne Harris wrote: > Uwe Brauer writes: > > [...] > >> (defun my-attach-this-buffer () >> "Send the whole buffer, funny to note that such a function does not exist." >> (interactive) >> (let ((src-buf (buffer-file-name (current-buffer)))) >> (gnus-summary-post-news) >> (mail-text) >> (mml-attach-buffer src-buf "application/octet-stream" nil nil) >> (message-goto-to))) > > What version of Gnus are you using? I don't have mail-text > on my Gnus v5.13 running on GNU Emacs 27.1 (build 1, > x86_64-w64-mingw32) of 2020-08-21. It isn't in Gnus but in lisp/mail/sendmail.el.gz mail-text is an interactive compiled Lisp function in ‘sendmail.el’. (mail-text) Move point to beginning of text field. GNU Emacs 28.0.50 (build 3, x86_64-pc-linux-gnu, cairo version 1.16.0) of 2021-08-02 Gnus v5.13 -- underground experts united https://dataswamp.org/~incal