From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Bob Proulx Newsgroups: gmane.emacs.help Subject: Re: emacs or =?iso-8859-1?B?bXV0dKA/?= Date: Wed, 13 Mar 2019 00:42:49 -0600 Message-ID: <20190313001639720014061@bob.proulx.com> References: <20190310102332.GA2029@magellan.machin.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="249086"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: help-gnu-emacs@gnu.org To: Philippe Delavalade Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 13 07:43:56 2019 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h3xcK-0012bY-He for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Mar 2019 07:43:56 +0100 Original-Received: from localhost ([127.0.0.1]:39312 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3xcJ-00074e-CA for geh-help-gnu-emacs@m.gmane.org; Wed, 13 Mar 2019 02:43:55 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55833) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h3xc2-00074X-Hw for help-gnu-emacs@gnu.org; Wed, 13 Mar 2019 02:43:39 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h3xbK-0004VK-Fl for help-gnu-emacs@gnu.org; Wed, 13 Mar 2019 02:42:55 -0400 Original-Received: from havoc.proulx.com ([96.88.95.61]:44840) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h3xbJ-0004S8-NV for help-gnu-emacs@gnu.org; Wed, 13 Mar 2019 02:42:53 -0400 Original-Received: from joseki.proulx.com (localhost [127.0.0.1]) by havoc.proulx.com (Postfix) with ESMTP id E704720F; Wed, 13 Mar 2019 00:42:49 -0600 (MDT) Original-Received: from hysteria.proulx.com (hysteria.proulx.com [192.168.230.119]) by joseki.proulx.com (Postfix) with ESMTP id 66C3F21241; Wed, 13 Mar 2019 00:42:49 -0600 (MDT) Original-Received: by hysteria.proulx.com (Postfix, from userid 1000) id 3D43A2DC7C; Wed, 13 Mar 2019 00:42:49 -0600 (MDT) Mail-Followup-To: Philippe Delavalade , help-gnu-emacs@gnu.org Content-Disposition: inline In-Reply-To: <20190310102332.GA2029@magellan.machin.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 96.88.95.61 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:119620 Archived-At: Philippe Delavalade wrote: > I don't know if it is the right place for this question because it truns > around emacs but also around mutt. I am using mutt and emacs to read and reply to this message. > I encounter a problem with emacs and mutt under gnu/linux. What is the GNU/Linux OS distribution? > In .emacs I have the line : > (add-hook 'text-mode-hook 'turn-on-auto-fill) > > In .muttrc I have this line : > set editor="emacs --eval '(text-mode)'" In my muttrc file: set editor="emacs" In my ~/.emacs file: (add-hook 'text-mode-hook (lambda () (abbrev-mode 1) (auto-fill-mode 1))) post-mail-message is set to "\\(mutt-[a-zA-Z0-9-.]+-[0-9]+-[0-9]+\\(-[a-fA-F0-9]+\\)?\\|mutt[a-zA-Z0-9._-]\\{6\\}\\)\\'" > Formerly, when writing a message with muut, the buffer was in text-mode > and fill-mode was active. > > Today, with emacs 26.1 instead of 25.3 and mutt 1.11.3 instead of > 1.10.1, this is no more the case. I am using emacs 26.1 and mutt 1.10.1. > When I write a message in mutt, emacs is called but the buffer is in > fundamental mode and I must type M-x auto-fill-mode :-(. > > I tried in .muttrc > set editor=emacs --debug-init --eval '(text-mode)'" > but nothing wrong was detected. > > Can someone give me an hint to resore the right comportment? I think either post-mail-message should be set or perhaps use something like this to set text-mode for mutt buffers. (setq auto-mode-alist ; Note: RE matches full pathname, so (append ; '^' matches / in /dir/dir/filename '( ("^\\(/var\\)?/tmp/mutt" . text-mode) ) auto-mode-alist)) By the way... I also set this in mutt so that buffers are stored in /var/tmp instead of /tmp since /tmp is purged on a reboot and an accidental system crash would not preserve the draft. But putting it in /var/tmp will preserve the draft across a system crash and reboot. set tmpdir="/var/tmp" Bob