From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: Unexpected fill-paragraph behaviour in message-mode Date: Mon, 13 Feb 2023 17:20:42 +0200 Message-ID: <87r0utsib9.fsf@iki.fi> References: <87r0uu2wu3.fsf@rak.ac> <83edqtg037.fsf@gnu.org> <20230213144113.igujfoal7ervxifu@asteria.rak.ac> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14725"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Notmuch/0.37 (https://notmuchmail.org) Emacs/28.2 (x86_64-pc-linux-gnu) To: Ryan Kavanagh , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Feb 13 16:21:44 2023 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pRaeG-0003dD-4Z for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 13 Feb 2023 16:21:44 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pRado-000527-0u; Mon, 13 Feb 2023 10:21:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRadl-00051l-CB for help-gnu-emacs@gnu.org; Mon, 13 Feb 2023 10:21:13 -0500 Original-Received: from lahtoruutu.iki.fi ([185.185.170.37]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pRadc-0004Oh-G5 for help-gnu-emacs@gnu.org; Mon, 13 Feb 2023 10:21:09 -0500 Original-Received: from mithlond (mobile-access-2e8427-158.dhcp.inet.fi [46.132.39.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: tlikonen) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id E41E61B0022B; Mon, 13 Feb 2023 17:20:50 +0200 (EET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1676301651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EbAWNWl3vJRRcCaRyyR/dhvrq6F7y/glffUWFqWxW2c=; b=lqjBgQ9zc3Uld4Cte4ziTtH3Ncu/ZZGK9tg/x0MYA/pgnyAJJHe6jWMi6q4naRFqHXqnbm 0oF+bjqN0pPBiZX8+REXS7Pw/LHOt9oI76m7Y6Z4swJ7qMtw92hiShIuAhoHkgyxqo3WTB g5oQNq7NEctK1DyKkX+StKqHq4pXOBJEzq9uuL7QDhZ2p/UbfN6YwSzIOPd8f+x5qD+NSG CMKTlhrk/CP9ZYDy50CMXgXO5lwYitF5rWaVqNcytMEFYtaYDvhascJyVreMIlrQUmaxxE veBLsuM9kvAYq/krSYpuYKFNa3+LEQg5Lkhf3SQV+TYi2fJRvFa/b2o/Vd9ZVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1676301651; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EbAWNWl3vJRRcCaRyyR/dhvrq6F7y/glffUWFqWxW2c=; b=Oszp7lQSVqA6BTVgQx5+aVrZbhY9ZldLD7XdJyQmJZMMJKZrTYyF2dE+m0jMqJBDnA1DPC EZ6pJsIvK/5F87Wvr5mCrA46LiIbs38H9ZchwFBHVRmK96jV/ReTwdLg4nS0EwpDfKO5Kt 7L+i+7GiX2v18DuOebunrxN+u9Wkh4coSHIaHCSj4ExDqb1H7pqpFXsQCwDMTcQEzkL38J NNyTVC7EGwjLLiFqkSOVWq2T9AD77Gi8Y5WwPYYVDqvzJKMpkI0XBeBThKO5euzQM0Qi7L xeKUmUnF/ZjIx7FDGunXSTB3Y85yLN3b6q9KoRQlG40uUK2wE9lMvKm2N4WRVQ== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1676301651; a=rsa-sha256; cv=none; b=A8llq/1cWoRz2ZwERh9jY3WLMSDZZipyFALLMCowfI5/YyR9kUNubKD9377pg9bmrL+hLL 7VFn4/SpUXmEioWjPkA0J1Q+yIDIvIsuMCSDn0jneGniaNujdDNspXaGVrg9+zFfbXprNc q04eWfzeyKMOX6ga5DlY738lE3wENghx/2sNxwMdzpvBso36arqZq2utHN1GPz3q2Ur9Wd cRrZE7N6OGXcXFYpnGV5ze07USt1nz++ZtWJdmkRRPhwme+lnbEpu6lDYIqw2GBCBrWclv 2HY1mxCys6KnvYTTxnrMwSTjdnu1piUk6H1MyfGENJuRvcu/KyP7bl/cMy6IVA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=tlikonen smtp.mailfrom=tlikonen@iki.fi In-Reply-To: <20230213144113.igujfoal7ervxifu@asteria.rak.ac> Received-SPF: pass client-ip=185.185.170.37; envelope-from=tlikonen@iki.fi; helo=lahtoruutu.iki.fi X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:142739 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable * 2023-02-13 09:41:13-0500, Ryan Kavanagh wrote: > On Mon, Feb 13, 2023 at 03:35:08PM +0200, Eli Zaretskii wrote: >> This problem doesn't happen if the buffer has the expected separator >> line saying "--text follows this line--". Why are you trying to use >> message-mode in a buffer that is not formatted as an email message? > > The line was missing because I use (neo)mutt as my email client and I > decided to try setting my editor to "emacsclient -c", but mutt does > not insert said separator. Is there an alternate mode I should be > using when compose emails with non-emacs MUAs? > It would be nice to be able to use emacs as an editor with non-emacs > MUAs, so I wonder if I shouldn't file a bug report asking message.el to > fallback on the RFC (and set mail-header-separator to "") in the cases > where "--text follows this line--" is missing. I use rarely Mutt but for those cases I have defined a derived major mode from message-mode. See the code below. I set mail-header-separator variable locally to empty string, and it should answer your basic question. (add-to-list 'auto-mode-alist '("/var/tmp/mutt-.*" . mutt-message-mode)) (defvar mutt-message-mode-map (let ((map (make-sparse-keymap))) map)) (define-derived-mode mutt-message-mode message-mode "Mutt" "Major mode for editing mail." (set-keymap-parent mutt-message-mode-map nil) (abbrev-mode 0) (mml-mode 0) (setq-local mail-header-separator "")) =2D-=20 /// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/ // OpenPGP: 6965F03973F0D4CA22B9410F0F2CAE0E07608462 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIYEARYIAC4WIQQL23klfGMkeOvdGCt57xklfWtWWwUCY+pVShAcdGxpa29uZW5A aWtpLmZpAAoJEHnvGSV9a1ZbgjwBAI//F9r3yE8tFPqdU9bfKO6c1qWa0rz9eQHK DRESAODPAQDvv1BU0iiqQCbpA46U2eo1C2FoGq5iO3xPnOwDWxyvDg== =F62s -----END PGP SIGNATURE----- --=-=-=--