GNU bug report logs - #81368
rmail issue when rmail-display-summary is non-nil

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: David Ponce <da_vid@HIDDEN>; Done: Eli Zaretskii <eliz@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 81368 <at> debbugs.gnu.org:


Received: (at 81368) by debbugs.gnu.org; 8 Jul 2026 23:53:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 08 19:53:53 2026
Received: from localhost ([127.0.0.1]:48126 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1whc5N-0008Jb-FC
	for submit <at> debbugs.gnu.org; Wed, 08 Jul 2026 19:53:52 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:39786)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1whUpt-0001b5-M8
 for 81368 <at> debbugs.gnu.org; Wed, 08 Jul 2026 12:09:22 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1whUbj-0000wY-Jb; Wed, 08 Jul 2026 11:54:43 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=5oBgBTgBQF2iDckc6Gp9fZh5O2gJApjvagGFY1wxNXk=; b=OFNIY27FjAoi
 kdVbQvPNuOd/+YuSAZmOIT3QVEy6O3Ywr5ZWTtXgylX82YnMa4LWJhV0xVRTNGIv4nwu2w5M7GZY2
 Rsb4WC11y3jmn7xdTMa4PDU2ImIU72Yib4baVvELO/meO5o1rwqIljv4Q7PlWSKZYFXIqyzeDZOF2
 kQnY3rRQlPhVJpO01EICwOneggAZbzUaWfFTV6JDEAqJqtzaVTQa/5WDmM8wEUX5gh5Sf8MQDy+sN
 4gm/nDD6DebRwAXo+PVcX6wYV8VIpv9Sj/dNIue8Qv0Hh48Xz54V7sVGAgBecjz9eksq9cP5h4nER
 Jq4/ExIcwYfBLitORz9iYg==;
Date: Wed, 08 Jul 2026 18:54:40 +0300
Message-Id: <86qzld5ven.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "Paul D. Nelson" <ultrono@HIDDEN>
In-Reply-To: <m2cxwxtrfn.fsf@HIDDEN> (ultrono@HIDDEN)
Subject: Re: bug#81368: rmail issue when rmail-display-summary is non-nil
References: <m2cxwxtrfn.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 81368
Cc: da_vid@HIDDEN, 81368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: "Paul D. Nelson" <ultrono@HIDDEN>
> Cc: da_vid@HIDDEN, 81368-done <at> debbugs.gnu.org
> Date: Wed, 08 Jul 2026 17:46:36 +0200
> 
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
> >> From: "Paul D. Nelson" <ultrono@HIDDEN>
> >> Cc: da_vid@HIDDEN, 81368 <at> debbugs.gnu.org
> >> Date: Tue, 07 Jul 2026 19:16:45 +0200
> >> 
> >> > Paul, could you please explain why this solves the problem?  I don't
> >> > think I understand that.
> >> 
> >> M-x rmail first visits the Rmail file via find-file-noselect.  With the
> >> newly added auto-mode-alist entry, that visit can run rmail-mode
> >> immediately, before rmail has finished its own setup.
> >> 
> >> This call to rmail-mode is redundant, and typically harmless, but when
> >> rmail-display-summary is enabled, rmail-mode calls rmail-summary, which
> >> makes the summary buffer the current buffer.  When find-file-noselect
> >> returns, rmail continues its setup in the wrong buffer, yielding the
> >> mayhem observed in the report.
> >> 
> >> By binding auto-mode-alist to nil around the call to find-file-noselect,
> >> we avoid the unnecessary call to rmail-mode in rmail.
> >
> > Ah, so this is to prevent recursive invocation of 'rmail' from
> > 'rmail'?  Very well, installed with a suitable comment, and closing
> > the bug.
> >
> > Thanks.
> 
> Thanks likewise.  I've attached a follow-up patch clarifying the
> comment.  The issue is not recursive invocation: neither 'rmail' nor
> 'rmail-mode' calls the other.  Rather, 'rmail' does its own setup after
> visiting the file, and that setup is disturbed if the file visit
> activates 'rmail-mode' via 'auto-mode-alist'.

Thanks, installed.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81368; Package emacs. Full text available.

Message received at 81368-done <at> debbugs.gnu.org:


Received: (at 81368-done) by debbugs.gnu.org; 8 Jul 2026 23:23:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 08 19:23:57 2026
Received: from localhost ([127.0.0.1]:47894 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1whbcP-0004Ms-6C
	for submit <at> debbugs.gnu.org; Wed, 08 Jul 2026 19:23:57 -0400
Received: from mail-lj1-x235.google.com ([2a00:1450:4864:20::235]:48417)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <ultrono@HIDDEN>) id 1whUaq-0000YU-1Q
 for 81368-done <at> debbugs.gnu.org; Wed, 08 Jul 2026 11:53:49 -0400
Received: by mail-lj1-x235.google.com with SMTP id
 38308e7fff4ca-39c7ef2b1e2so3982711fa.1
 for <81368-done <at> debbugs.gnu.org>; Wed, 08 Jul 2026 08:53:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1783526021; x=1784130821; darn=debbugs.gnu.org;
 h=content-type:mime-version:message-id:date:in-reply-to:subject:cc:to
 :from:from:to:cc:subject:date:message-id:reply-to:content-type;
 bh=jn0N77Y0agLZ4MrGH/k0MMiWDlLT1+yiWY6Io8Xrbdw=;
 b=fC+3whnClg2Xz2K3xqINDF6pR4eLklCEJ6aJ9jGDh4gd3AaoR3/t8ccqS7miUx5DJD
 b+BNUNReA0oFkv15c2GvswGpqxvKOViTEi7kw5vWrYplxGr//qyTTX1YsxRy1oQHdE0g
 NOCniRXDYvvnMFDyonVF8ttuYQxwrl+/sTeFiVWpqG770WDIV4iAKXmoSKheZDaecE6R
 Zp1rl5wrGdeXk85apHbw2aTFlRlyp3HzoTho5tiF8sRC5/DYKw4hS5R8cWas6/+oDvCu
 /cK1JvceyrbG6atlCoSG3Fxc1IaU5f4YBvwx3+/HVj9WTV5+Z2KTXt2e4pk6oZM225ef
 RXrA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1783526021; x=1784130821;
 h=content-type:mime-version:message-id:date:in-reply-to:subject:cc:to
 :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to:content-type;
 bh=jn0N77Y0agLZ4MrGH/k0MMiWDlLT1+yiWY6Io8Xrbdw=;
 b=Y81PuhfdA27ikpVjqhzPIc2ja20Uyux3serH7IIhiQ7ykt2jNmz7F9lsDpKjON6XF5
 HXcxWy6fz3z668+7M7AhU2KHClIdNBWNSx5VPxD4LWOHfX42hb/4euNOArn8djiQ//11
 lHj4Vm8s3QXGfFzfiFt6OrZ/Wmve5nU83QDm9wnF+qfL0UPIgp4pqSMW37L5G0xF7ZXq
 Sgol1j9U5lWalGOQGrruN9Pl3oCEuVopSbv/RJ+t2eTzl/RG0x77Bcg4jAO63WvSwhV+
 abKC1KznpumMx00+t1gbYP1M2CcYcdB03WWIHpThPO0CXffma3Y35RB0j6uKTXSiTOKX
 azdQ==
X-Forwarded-Encrypted: i=1;
 AHgh+RpSJqB5xmfA8PH0nEWS352GkJqhP+a7ZEJbRiMOoXxDy+4bjM5TfxjU5RNmkVnB60wA7oiIaINEmwO7 <at> debbugs.gnu.org
X-Gm-Message-State: AOJu0YxFdE9Mr00C8NJ2uCs6jICr5Pfzjo7Oyro1p84NmZgMSz28jKrS
 rCymaLEQAzkkvCQURI+Uw5wBvykIOnioXC+5D1d1kVcjmSP8m6qbR7dkSzZpMhek
X-Gm-Gg: AfdE7ck9ZDJdeQ8n9rGJ9t0CJRbplP+5874mdlDW/x1Z3NEiBPHE9Es98o/yqGg6zBz
 M84u9qS0kGjOpi6QMUMlWk0HdsleQDVzWoKujhE555IgQZgqhFxXOwPzuWXPslknKpFC6g/uh6n
 imvxPHv3wejiUhXkKC4GaNNPY/61SBI8TaB2S7WYue//G6oZTSzm46EkTkM0hFLJOQxFFsRpZgf
 WC/wIg6El0f35o8c4vUc0oAjSSLXV9rMfXYu002l6uiI0trJ1ROMIYjhBLWv2ajtbTLi1eQ7G40
 ACrXInXLhbHgFML5WsL3RiM/+7wLTHootVGKfvmhCd3DA8JG/VZBwOsMVUTfzrTwtHDrLWAwuZI
 dRHJWjGOLFqwc9OOSku54Vgmc2w+zZ/0igDeK/O+o4/AocsvRDtXvikqKS5q7ziG1y5PLmFcRIO
 YOLp750OBg67wIUzwt08tH/YWVd6CYU/0=
X-Received: by 2002:a05:6402:34c9:b0:697:8d48:7fa7 with SMTP id
 4fb4d7f45d1cf-69ab44993cfmr1271695a12.22.1783525599356; 
 Wed, 08 Jul 2026 08:46:39 -0700 (PDT)
Received: from localhost ([130.225.21.26]) by smtp.gmail.com with ESMTPSA id
 4fb4d7f45d1cf-69a19ce4588sm8438894a12.7.2026.07.08.08.46.37
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 08 Jul 2026 08:46:38 -0700 (PDT)
From: "Paul D. Nelson" <ultrono@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81368: rmail issue when rmail-display-summary is non-nil
In-Reply-To: <86zf0162bl.fsf@HIDDEN> (message from Eli Zaretskii on Wed, 08
 Jul 2026 16:25:18 +0300)
Date: Wed, 08 Jul 2026 17:46:36 +0200
Message-ID: <m2cxwxtrfn.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 2.0 (++)
X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 the administrator of that system for details.
 Content preview: Eli Zaretskii writes: >> From: "Paul D. Nelson" >> Cc:
 da_vid@HIDDEN, 
 81368 <at> debbugs.gnu.org >> Date: Tue, 07 Jul 2026 19:16:45 +0200 >> >> > Paul,
 could you please explain why this solves the problem? I don't >> > thi [...]
 Content analysis details:   (2.0 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 0.0 FREEMAIL_FROM          Sender email is commonly abused enduser mail
 provider (ultrono[at]gmail.com)
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.0 SPF_HELO_NONE          SPF: HELO does not publish an SPF Record
 1.0 FORGED_GMAIL_RCVD      'From' gmail.com does not match 'Received'
 headers
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2a00:1450:4864:20:0:0:0:235 listed in]
 [list.dnswl.org]
 1.0 FREEMAIL_REPLY         From and body contain different freemails
X-Debbugs-Envelope-To: 81368-done
Cc: da_vid@HIDDEN, 81368-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

--=-=-=
Content-Type: text/plain

Eli Zaretskii <eliz@HIDDEN> writes:

>> From: "Paul D. Nelson" <ultrono@HIDDEN>
>> Cc: da_vid@HIDDEN, 81368 <at> debbugs.gnu.org
>> Date: Tue, 07 Jul 2026 19:16:45 +0200
>> 
>> > Paul, could you please explain why this solves the problem?  I don't
>> > think I understand that.
>> 
>> M-x rmail first visits the Rmail file via find-file-noselect.  With the
>> newly added auto-mode-alist entry, that visit can run rmail-mode
>> immediately, before rmail has finished its own setup.
>> 
>> This call to rmail-mode is redundant, and typically harmless, but when
>> rmail-display-summary is enabled, rmail-mode calls rmail-summary, which
>> makes the summary buffer the current buffer.  When find-file-noselect
>> returns, rmail continues its setup in the wrong buffer, yielding the
>> mayhem observed in the report.
>> 
>> By binding auto-mode-alist to nil around the call to find-file-noselect,
>> we avoid the unnecessary call to rmail-mode in rmail.
>
> Ah, so this is to prevent recursive invocation of 'rmail' from
> 'rmail'?  Very well, installed with a suitable comment, and closing
> the bug.
>
> Thanks.

Thanks likewise.  I've attached a follow-up patch clarifying the
comment.  The issue is not recursive invocation: neither 'rmail' nor
'rmail-mode' calls the other.  Rather, 'rmail' does its own setup after
visiting the file, and that setup is disturbed if the file visit
activates 'rmail-mode' via 'auto-mode-alist'.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-lisp-mail-rmail.el-rmail-Clarify-comment-bug-81368.patch

From adefdec60ad7193371ef3d0ef35dadc1b7891b0f Mon Sep 17 00:00:00 2001
From: Paul Nelson <ultrono@HIDDEN>
Date: Wed, 8 Jul 2026 15:57:05 +0200
Subject: [PATCH] ; * lisp/mail/rmail.el (rmail): Clarify comment (bug#81368).

---
 lisp/mail/rmail.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index fcc6a8b89e2..f7770b047b9 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -903,8 +903,8 @@ rmail
       ;; The mail file is either unchanged or not visited.  Visit it.
       (switch-to-buffer
        (let ((enable-local-variables nil)
-             ;; Prevent recursive invocation of 'rmail' via
-             ;; 'auto-mode-alist'.
+             ;; Avoid entering 'rmail-mode' via 'auto-mode-alist';
+             ;; 'rmail' does its own setup after visiting the file.
 	     (auto-mode-alist nil)
 	     ;; Force no-conversion by default, since that's what
 	     ;; pre-mbox Rmail did with BABYL files (via
-- 
2.54.0


--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81368; Package emacs. Full text available.

Message received at 81368-done <at> debbugs.gnu.org:


Received: (at 81368-done) by debbugs.gnu.org; 8 Jul 2026 13:30:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 08 09:30:06 2026
Received: from localhost ([127.0.0.1]:39371 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1whSLl-0001y3-69
	for submit <at> debbugs.gnu.org; Wed, 08 Jul 2026 09:30:05 -0400
Received: from smtp-13.smtpout.orange.fr ([80.12.242.13]:46949
 helo=smtp.smtpout.orange.fr)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <da_vid@HIDDEN>) id 1whSLh-0001x1-T5
 for 81368-done <at> debbugs.gnu.org; Wed, 08 Jul 2026 09:30:04 -0400
Received: from [192.168.1.21] ([90.38.183.166]) by smtp.orange.fr with ESMTPSA
 id hSLfwbPHAajQChSLfwGu4c; Wed, 08 Jul 2026 15:30:00 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr;
 s=t20230301; t=1783517400;
 bh=cY2FZt2pD68UWx3vEatTUNX9u0HIE4fa3DiOu2GmS1Q=;
 h=Message-ID:Date:MIME-Version:Subject:To:From;
 b=mvxQCLnw675RbpxIawPRqCdZJD5UhF69ruJSjaal55cTUregv9sIIsXKI1baq+I2r
 Zg8AP6YA8oTYSnCdXaGpkq17krAm2DJrabtbFUAzu+Lzm4hw+5xgmQ1X96xETc4S1T
 sBf1cpDn4hzUOD65S9z6ctCPVTOrTxSHOF2dxwHldZfn1IYJBTFvKIes5viqjChHcm
 O/K00GtaODFsRWeglvfE+ghpQTCx4zg9853mVd25n0krkRxp2ttUP1KUkrEu0qVgZx
 B1zz6qhLRuIXCwWn3R0mGoaXKGXIuzUQVCSz03cSigrWY8R0JIjR7XDZat8Hzsh1EA
 Py/NEyLtnxmdg==
X-ME-Helo: [192.168.1.21]
X-ME-Auth: ZGFfdmlkQG9yYW5nZS5mcg==
X-ME-Date: Wed, 08 Jul 2026 15:30:00 +0200
X-ME-IP: 90.38.183.166
Message-ID: <df56c4a8-1168-409a-a4a5-3ea96f3c6ade@HIDDEN>
Date: Wed, 8 Jul 2026 15:29:59 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#81368: rmail issue when rmail-display-summary is non-nil
To: Eli Zaretskii <eliz@HIDDEN>, "Paul D. Nelson" <ultrono@HIDDEN>
References: <uxsg7th5masosi.fsf@HIDDEN> <86zf0162bl.fsf@HIDDEN>
Content-Language: fr
From: David Ponce <da_vid@HIDDEN>
In-Reply-To: <86zf0162bl.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 81368-done
Cc: 81368-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Le 2026-07-08 à 15:25, Eli Zaretskii a écrit :
>> From: "Paul D. Nelson" <ultrono@HIDDEN>
>> Cc: da_vid@HIDDEN, 81368 <at> debbugs.gnu.org
>> Date: Tue, 07 Jul 2026 19:16:45 +0200
>>
>>> Paul, could you please explain why this solves the problem?  I don't
>>> think I understand that.
>>
>> M-x rmail first visits the Rmail file via find-file-noselect.  With the
>> newly added auto-mode-alist entry, that visit can run rmail-mode
>> immediately, before rmail has finished its own setup.
>>
>> This call to rmail-mode is redundant, and typically harmless, but when
>> rmail-display-summary is enabled, rmail-mode calls rmail-summary, which
>> makes the summary buffer the current buffer.  When find-file-noselect
>> returns, rmail continues its setup in the wrong buffer, yielding the
>> mayhem observed in the report.
>>
>> By binding auto-mode-alist to nil around the call to find-file-noselect,
>> we avoid the unnecessary call to rmail-mode in rmail.
> 
> Ah, so this is to prevent recursive invocation of 'rmail' from
> 'rmail'?  Very well, installed with a suitable comment, and closing
> the bug.
> 
> Thanks.

Thank you both.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81368; Package emacs. Full text available.

Message received at 81368-done <at> debbugs.gnu.org:


Received: (at 81368-done) by debbugs.gnu.org; 8 Jul 2026 13:25:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jul 08 09:25:31 2026
Received: from localhost ([127.0.0.1]:39339 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1whSHL-0001lA-1e
	for submit <at> debbugs.gnu.org; Wed, 08 Jul 2026 09:25:31 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:52502)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1whSHH-0001ZB-BY
 for 81368-done <at> debbugs.gnu.org; Wed, 08 Jul 2026 09:25:28 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1whSHB-0001xr-Q4; Wed, 08 Jul 2026 09:25:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=+yEZKesZAIRF9UYLPaz3R4LLpqeLbYDhgFH9StVR4Js=; b=EIvyB7o2Jw9c
 mQiLNF0mE3DU7BIHQy0xs5dNoZRsSt6crzeRHSEvvNFGVoy3qlXDGvElX2O1eB0Z/vh07PBqoJini
 0DnOlDZygaACFRrXy9ddBjLPQByT0Z0qA3IVaTJJHIi/9zXu2T6wE1skv366tQIkAr8KS0I0+ZgbU
 8/MkTYKolQmidi/AWW8fTKIFk7sR+tHY8qCUjpf7Mqusxp9nklzQ0On0NN5lL0lFUDdYgqIROtK3L
 XfFYU4BWUmmOFuLHSbhSeb2jkQO3ghjdL89yAsLwEg/AzF/scRVs4d/PNU9c+1zuiEmUgoribC80t
 EpJ62W6z4mEidp4VPt1gvQ==;
Date: Wed, 08 Jul 2026 16:25:18 +0300
Message-Id: <86zf0162bl.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: "Paul D. Nelson" <ultrono@HIDDEN>
In-Reply-To: <uxsg7th5masosi.fsf@HIDDEN> (ultrono@HIDDEN)
Subject: Re: bug#81368: rmail issue when rmail-display-summary is non-nil
References: <uxsg7th5masosi.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 81368-done
Cc: da_vid@HIDDEN, 81368-done <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: "Paul D. Nelson" <ultrono@HIDDEN>
> Cc: da_vid@HIDDEN, 81368 <at> debbugs.gnu.org
> Date: Tue, 07 Jul 2026 19:16:45 +0200
> 
> > Paul, could you please explain why this solves the problem?  I don't
> > think I understand that.
> 
> M-x rmail first visits the Rmail file via find-file-noselect.  With the
> newly added auto-mode-alist entry, that visit can run rmail-mode
> immediately, before rmail has finished its own setup.
> 
> This call to rmail-mode is redundant, and typically harmless, but when
> rmail-display-summary is enabled, rmail-mode calls rmail-summary, which
> makes the summary buffer the current buffer.  When find-file-noselect
> returns, rmail continues its setup in the wrong buffer, yielding the
> mayhem observed in the report.
> 
> By binding auto-mode-alist to nil around the call to find-file-noselect,
> we avoid the unnecessary call to rmail-mode in rmail.

Ah, so this is to prevent recursive invocation of 'rmail' from
'rmail'?  Very well, installed with a suitable comment, and closing
the bug.

Thanks.




Notification sent to David Ponce <da_vid@HIDDEN>:
bug acknowledged by developer. Full text available.
Reply sent to Eli Zaretskii <eliz@HIDDEN>:
You have taken responsibility. Full text available.

Message received at 81368 <at> debbugs.gnu.org:


Received: (at 81368) by debbugs.gnu.org; 7 Jul 2026 17:17:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 07 13:17:00 2026
Received: from localhost ([127.0.0.1]:33735 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wh9Pm-0002nz-Kz
	for submit <at> debbugs.gnu.org; Tue, 07 Jul 2026 13:16:59 -0400
Received: from mail-wr1-x431.google.com ([2a00:1450:4864:20::431]:56655)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <ultrono@HIDDEN>) id 1wh9Pi-0002mZ-E3
 for 81368 <at> debbugs.gnu.org; Tue, 07 Jul 2026 13:16:56 -0400
Received: by mail-wr1-x431.google.com with SMTP id
 ffacd0b85a97d-4720d22c94aso4276526f8f.1
 for <81368 <at> debbugs.gnu.org>; Tue, 07 Jul 2026 10:16:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1783444608; x=1784049408; darn=debbugs.gnu.org;
 h=content-type:mime-version:message-id:date:in-reply-to:subject:cc:to
 :from:from:to:cc:subject:date:message-id:reply-to:content-type;
 bh=bVbbNCchx4pRELxfQDiLfdCwhPQnsyQ/RXmQc+WCRm4=;
 b=isV8VGviVHwugikK8mWCSmzIYTp+m8oF7w2P8JuU0WaKmQ7G4qbVEsnptY6J92XCJl
 ECFRAVuFtHShBarLNw3H8d0+P0JgyHajLoXNsowibfeOcIeVv48MDMPgiORoZcYjjtxX
 o/rTSiYcxe70TJqdvfBuBa07fXcFHeplLSmkAx7UyAsAJchcvTMsXrjRFhjTz5ae8yVp
 /J+jaNY83dawPLQziJMYcH3gXnd4rGVf5XjMsF8Gh2Pkk/lVGRRxT/X24eYp/Y9oXXwM
 NUzuqeI/J7anQk/gmfrijLu6DDe/QYtu6kbFX5WNVzldFyz539ifXSQ5zENhxlIrDFTW
 xt4w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1783444608; x=1784049408;
 h=content-type:mime-version:message-id:date:in-reply-to:subject:cc:to
 :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to:content-type;
 bh=bVbbNCchx4pRELxfQDiLfdCwhPQnsyQ/RXmQc+WCRm4=;
 b=eiMd0C2Fvj4d/BokjbmKuS80CE4TI6XxgVXN55D9CjXcnz731wFLGPqkr/sJa0q+PJ
 8jtp8KXseEDxMcrAsZQfWvI7y0UTvrW6aahlZGGUjuyYcFAqTNXrm8kjYT84J1AG5M7u
 mILHtVgRmnoqyPtSomnbDTRvGhbceyQkwF1rd9FTTvssuSp8QgEov59bYrS+z4reTq7z
 HjyDqLNn88A+pijMp34nGfOFrpiq9+4eIUK6ILOh/5KNVScmJvaNr8A5mM/xeZZjgtli
 eolCkWVn5govXWohR2b/9m8ma/gzYFAYmQPyFbF+KyikBSt8TS2Uue8bQk0vkvK8KOjp
 rm8Q==
X-Forwarded-Encrypted: i=1;
 AHgh+Ro+N3ArfTH2dkgjpJnilaXeryacfsWJT2lVHttrrJUPy9vFugs6p4Z42zXqWFhJK78+CaEevA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YxqldD9AXFih2EOrqy2l9CjImPizn8pydis2Y9irkYiFxkV4Sci
 y64zsJtN1z/q/3WNFIj4MUia+NcZW+cMoZXzP/OE1nEn89tSU0p8GOiU
X-Gm-Gg: AfdE7cnuFV2bYyMwT1F5azHnovRXpF1bLwSmUd87eWP5CJ5Hg7w3RcNZh/UuKwXlvUI
 D9DBmTMqjJ+sdBPB5LfTrAszsArTPCRExS6EmBXz7kQMCLUodDNeW5946cg4Fzxueqj2PkzJ1n2
 prTtzN0YfkqigpJxCj2YIP8a15mE/JY7C7S2/sJdliPSGPNHZzd5YJsUCiN2oxdxyMMiaJBVCBs
 bqd9/mqjUChduAhmknjZ0sDuxYVKINyStUffSN/LMS6cq/P0XEzpDxvWUy6JHiRX3hi4CxCXOTB
 sYwEOoySAdCvBzTjVZu1SFjXo/0ljQZgjVC5JmvL9ycCHK0eue8qvekCvApxsS/lgssCp7iztKi
 FJvK/jxCrXbSuzP+gFg2usQ4QOeMxfPaoiORgUWRhMfY2/niEdFYNpEmAsp06+EuXWTvvfnIxSN
 72eNEPg+z/zB7Yypk5dF3klQ==
X-Received: by 2002:a5d:6609:0:b0:473:673e:3836 with SMTP id
 ffacd0b85a97d-47de66bed41mr6037829f8f.28.1783444607747; 
 Tue, 07 Jul 2026 10:16:47 -0700 (PDT)
Received: from localhost ([185.229.154.39])
 by smtp.gmail.com with UTF8SMTPSA id
 ffacd0b85a97d-47a9de1d8cdsm38262424f8f.1.2026.07.07.10.16.46
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 07 Jul 2026 10:16:46 -0700 (PDT)
From: "Paul D. Nelson" <ultrono@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81368: rmail issue when rmail-display-summary is non-nil
In-Reply-To: <86pl0z6pax.fsf@HIDDEN> (message from Eli Zaretskii on Tue, 07
 Jul 2026 13:56:38 +0300)
Date: Tue, 07 Jul 2026 19:16:45 +0200
Message-ID: <uxsg7th5masosi.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 81368
Cc: da_vid@HIDDEN, 81368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

> Paul, could you please explain why this solves the problem?  I don't
> think I understand that.

M-x rmail first visits the Rmail file via find-file-noselect.  With the
newly added auto-mode-alist entry, that visit can run rmail-mode
immediately, before rmail has finished its own setup.

This call to rmail-mode is redundant, and typically harmless, but when
rmail-display-summary is enabled, rmail-mode calls rmail-summary, which
makes the summary buffer the current buffer.  When find-file-noselect
returns, rmail continues its setup in the wrong buffer, yielding the
mayhem observed in the report.

By binding auto-mode-alist to nil around the call to find-file-noselect,
we avoid the unnecessary call to rmail-mode in rmail.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81368; Package emacs. Full text available.

Message received at 81368 <at> debbugs.gnu.org:


Received: (at 81368) by debbugs.gnu.org; 7 Jul 2026 10:56:52 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jul 07 06:56:52 2026
Received: from localhost ([127.0.0.1]:59856 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wh3Tv-0003Jq-Mf
	for submit <at> debbugs.gnu.org; Tue, 07 Jul 2026 06:56:52 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:35000)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wh3Ts-0003JX-B2
 for 81368 <at> debbugs.gnu.org; Tue, 07 Jul 2026 06:56:49 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wh3Tm-0006Ye-2r; Tue, 07 Jul 2026 06:56:42 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=VOJfqtwXauwTvg7emtpKUjL7RFReWcHx3eGuMUK6RmE=; b=nJAHMjAupQDsrhz0PEsk
 8dEyF52qQqJbnFhYba0rfyOsD0etDXjuP67NLp+JUnLogrb4PnhYArxdAXlf1+DXD4z65TRXYDU/F
 LuVy4u50x1SOUjGTDoNB1mKwvHd5vncuTg/0xokvr1K4IQ3srCSUzlZLqvvLPmjqVn6OpJfkSzyLj
 5CgDhVzDvkTEgKafVMYPbVJFBqtfMojKJ3l1X2p6rXFQ3gqozgvpSZ2jbY6I/ianOHZGGo9Ebohtz
 3y5QNJdNeRDwi2vlk2wSpmBBLTGursMdtjmABuqu6fN3qUxBtOoxAII5F2GxjJPAwlKVTfr6FVo83
 nJvtTgROnw7ezg==;
Date: Tue, 07 Jul 2026 13:56:38 +0300
Message-Id: <86pl0z6pax.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: David Ponce <da_vid@HIDDEN>
In-Reply-To: <0ce1b97c-c873-443a-8ab4-d7eb98ba6ee3@HIDDEN> (message from
 David Ponce on Mon, 6 Jul 2026 20:45:11 +0200)
Subject: Re: bug#81368: rmail issue when rmail-display-summary is non-nil
References: <m2y0fo5dnr.fsf@HIDDEN>
 <0ce1b97c-c873-443a-8ab4-d7eb98ba6ee3@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 81368
Cc: 81368 <at> debbugs.gnu.org, ultrono@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Mon, 6 Jul 2026 20:45:11 +0200
> Cc: 81368 <at> debbugs.gnu.org
> From: David Ponce <da_vid@HIDDEN>
> 
> Le 2026-07-06 à 17:41, Paul D. Nelson a écrit :
> > Eli Zaretskii <eliz@HIDDEN> writes:
> > 
> >>> Date: Mon, 6 Jul 2026 13:10:36 +0200
> >>> From: David Ponce via "Bug reports for GNU Emacs,
> >>>   the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> >>>
> >>> Hello,
> >>>
> >>> Since this commit:
> >>>
> >>> author	Paul Nelson <ultrono@HIDDEN>	
> >>> 	Sun, 21 Jun 2026 18:19:26 +0200 (18:19 +0200)
> >>> commit	35af392aee538254f92fb2386f1dd69c7d0fb82b
> >>> Keep Rmail collection buffers unibyte
> >>>
> >>>
> >>> When `rmail-display-summary' is non-nil, the `rmail' command fails to
> >>> get new messages and creates an unexpected "RMAIL-summary-summary"
> >>> buffer in addition to the expected "RMAIL-summary" and "RMAIL"
> >>> buffers.  All these buffers are empty.
> >>>
> >>> My recipe:
> >>>
> >>> I checked that I have new messages in my /var/spool mailbox.
> >>>
> >>> In emacs -Q, I eval (setopt rmail-display-summary t)
> >>> then type M-x rmail
> >>>
> >>> When `rmail-display-summary' is nil, or if `rmail-display-summary' is
> >>> non-nil AND the new `rmail-mode' entry is `auto-mode-alist' is
> >>> removed, `M-x rmail' works as expected and displays both the
> >>> "RMAIL-summary" and "RMAIL" buffers with the new messages.
> >>>
> >>> It seems there is a nasty side-effect of `rmail-mode' automatic setup,
> >>> and rmail-summary, but I did not find the root cause.
> >>
> >> I cannot reproduce this.  I tried
> >>
> >>    C-u M-x rmail RET mail.new RET
> >>
> >> after setting rmail-display-summary non-nil in "emacs -Q", and the
> >> summary buffer has a reasonable name.  Maybe there are other factors
> >> at work here?
> >>
> >> Paul, could you please look into this?
> > 
> > I believe the attached patch fixes David's issue.
> > 
> 
> Hi Paul,
> 
> I confirm that your patch fixed my issue.

Thanks for testing.

Paul, could you please explain why this solves the problem?  I don't
think I understand that.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81368; Package emacs. Full text available.

Message received at 81368 <at> debbugs.gnu.org:


Received: (at 81368) by debbugs.gnu.org; 6 Jul 2026 18:45:19 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 06 14:45:18 2026
Received: from localhost ([127.0.0.1]:55839 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wgoJi-0002gv-Ec
	for submit <at> debbugs.gnu.org; Mon, 06 Jul 2026 14:45:18 -0400
Received: from smtp-77.smtpout.orange.fr ([80.12.242.77]:60883
 helo=smtp.smtpout.orange.fr)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <da_vid@HIDDEN>) id 1wgoJe-0002gP-Kz
 for 81368 <at> debbugs.gnu.org; Mon, 06 Jul 2026 14:45:16 -0400
Received: from [192.168.1.21] ([90.38.183.166]) by smtp.orange.fr with ESMTPSA
 id goJbwjONvROpXgoJbwK523; Mon, 06 Jul 2026 20:45:12 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr;
 s=t20230301; t=1783363512;
 bh=gUUc8dnkRUmyqdF09qDp56P9yke4Ui4SjHtohniemAY=;
 h=Message-ID:Date:MIME-Version:Subject:To:From;
 b=KL9pdf1ud37d4ldTN4Krlvr3I5CZug7gK0s/qsAUvwqebPILvRqOXCZua8n/KABKy
 vJM4Ya8UPJCz2DvMv2JoSGXXOy+wN6OUfk3Y/UFQCNPCWKslR5bwxjpRyLAyDOxyq1
 LD2Nh0MDm3xcfhSeFp7bzt3UjCXPvwBCdvDKIS7A718fMIbyD4PV1Q6fFHqQZsXl7X
 3371seDe1EhHN393D8CF4/hKNmmtY5wTcKjz8B/o7iYD5e62I41R6S4eH/7s9VR58A
 kougFnCMSJfffR3O7S9l5wYBdPErjUdcAwOiAGC/4Uq5g+j4ZPgA7fwpvIhQRezLH9
 oGsu8ZLLzoEHw==
X-ME-Helo: [192.168.1.21]
X-ME-Auth: ZGFfdmlkQG9yYW5nZS5mcg==
X-ME-Date: Mon, 06 Jul 2026 20:45:12 +0200
X-ME-IP: 90.38.183.166
Message-ID: <0ce1b97c-c873-443a-8ab4-d7eb98ba6ee3@HIDDEN>
Date: Mon, 6 Jul 2026 20:45:11 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#81368: rmail issue when rmail-display-summary is non-nil
To: "Paul D. Nelson" <ultrono@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>
References: <m2y0fo5dnr.fsf@HIDDEN>
Content-Language: fr
From: David Ponce <da_vid@HIDDEN>
In-Reply-To: <m2y0fo5dnr.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 81368
Cc: 81368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Le 2026-07-06 à 17:41, Paul D. Nelson a écrit :
> Eli Zaretskii <eliz@HIDDEN> writes:
> 
>>> Date: Mon, 6 Jul 2026 13:10:36 +0200
>>> From: David Ponce via "Bug reports for GNU Emacs,
>>>   the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>>>
>>> Hello,
>>>
>>> Since this commit:
>>>
>>> author	Paul Nelson <ultrono@HIDDEN>	
>>> 	Sun, 21 Jun 2026 18:19:26 +0200 (18:19 +0200)
>>> commit	35af392aee538254f92fb2386f1dd69c7d0fb82b
>>> Keep Rmail collection buffers unibyte
>>>
>>>
>>> When `rmail-display-summary' is non-nil, the `rmail' command fails to
>>> get new messages and creates an unexpected "RMAIL-summary-summary"
>>> buffer in addition to the expected "RMAIL-summary" and "RMAIL"
>>> buffers.  All these buffers are empty.
>>>
>>> My recipe:
>>>
>>> I checked that I have new messages in my /var/spool mailbox.
>>>
>>> In emacs -Q, I eval (setopt rmail-display-summary t)
>>> then type M-x rmail
>>>
>>> When `rmail-display-summary' is nil, or if `rmail-display-summary' is
>>> non-nil AND the new `rmail-mode' entry is `auto-mode-alist' is
>>> removed, `M-x rmail' works as expected and displays both the
>>> "RMAIL-summary" and "RMAIL" buffers with the new messages.
>>>
>>> It seems there is a nasty side-effect of `rmail-mode' automatic setup,
>>> and rmail-summary, but I did not find the root cause.
>>
>> I cannot reproduce this.  I tried
>>
>>    C-u M-x rmail RET mail.new RET
>>
>> after setting rmail-display-summary non-nil in "emacs -Q", and the
>> summary buffer has a reasonable name.  Maybe there are other factors
>> at work here?
>>
>> Paul, could you please look into this?
> 
> I believe the attached patch fixes David's issue.
> 

Hi Paul,

I confirm that your patch fixed my issue.

Thanks




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81368; Package emacs. Full text available.

Message received at 81368 <at> debbugs.gnu.org:


Received: (at 81368) by debbugs.gnu.org; 6 Jul 2026 15:41:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 06 11:41:29 2026
Received: from localhost ([127.0.0.1]:54779 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wglRn-0002Xf-Dl
	for submit <at> debbugs.gnu.org; Mon, 06 Jul 2026 11:41:29 -0400
Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]:61492)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <ultrono@HIDDEN>) id 1wglRh-0002WM-UQ
 for 81368 <at> debbugs.gnu.org; Mon, 06 Jul 2026 11:41:24 -0400
Received: by mail-ej1-x633.google.com with SMTP id
 a640c23a62f3a-c12788a75abso430069166b.2
 for <81368 <at> debbugs.gnu.org>; Mon, 06 Jul 2026 08:41:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20251104; t=1783352475; x=1783957275; darn=debbugs.gnu.org;
 h=content-type:mime-version:message-id:date:in-reply-to:subject:cc:to
 :from:from:to:cc:subject:date:message-id:reply-to:content-type;
 bh=aV2vaVxMfGja9pwjpCIjN8x/umGv4uGad47FOEb3S7Y=;
 b=bMrzeR0ipBxWXV9vNTx5YbwjJXqQ7118tcfNyH2dEr67fQNIMu9TkKbUDaLDm6jdfX
 BWEBrIaIgGlSKWyfrw2VWN5rdG5vl8dovD4538lB6tM1fotKmqDqLPL4uObPxNKjOZXa
 BPyZ4y08AJvZuIUMGwJL3wpaJC0+7yQySnVLXqI9utICgow0JSLAVkZwav0Z78FhkbAy
 5r4MLHi83vqIo0egiCbmGCQXjK6cTcxqotgvo97qb6RmudBf4DS6rWG0PLGZvFr7CRP6
 JVwAU76mJvN7sbn9ecMRNk/2JPFWXMxJRFHTc/NPoj459KIIpYTbEMhT3pv9xTfjpJ9l
 2QCA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20251104; t=1783352475; x=1783957275;
 h=content-type:mime-version:message-id:date:in-reply-to:subject:cc:to
 :from:x-gm-gg:x-gm-message-state:from:to:cc:subject:date:message-id
 :reply-to:content-type;
 bh=aV2vaVxMfGja9pwjpCIjN8x/umGv4uGad47FOEb3S7Y=;
 b=WUK3+ore2cwAbRG/Qzj0GgCMYr8iqKaT59FARPYeB7Z4wRUcfhuLfVrUZUdRzoPHZ3
 tSgr+tCJYFvWgsfWXmkLVCZt+TrWAZClUx3LVbtK/Q090Vbsleo2mQES42G2V48LI5zL
 nlssu93zOj6SovaujL84pnDD4ns9MuV7yG4zJBD9umKE+Ze3PWntGOrYtNCwEASHR2Ec
 NBojXyx5HPKZMzHkJ7FqcrdKqmZby9EJoDclYWPpPppFx8hMUXyJ6M/7B2M6TAjffrH0
 S72tOQ9J2Nuv8GdD3tFRiH1V7uFQGWLlTYm4xBR5YaXurJAQu/xwW6WSz5/hAnwKG3PE
 K9tw==
X-Forwarded-Encrypted: i=1;
 AHgh+Rr4eqYRHFoFmUKHUOzoZRSlqEHy1jZVdPDC0hDMqH8fr7gKozWMGe1nLsNEasXH0GogFVOhwA==@debbugs.gnu.org
X-Gm-Message-State: AOJu0YzT/NNIyAsp9AOOd73S5XA2EdwzCUdZzdiJ5f4zlAX1yykF11zw
 ONzeZecC0CIvww8BLbsaSb+0wp8S1xNOSfnBAhRXcGPwSgoZz00BMVjRcAM6G3J9
X-Gm-Gg: AfdE7cnUT3RXns2v/o2WgeubKIo7z8H0njjOtoj1mb38fNFe5sc6LvX7zE2hV7YlsEs
 Eg8UdnDZlKyTAcWSkXct4EJLWndu937zkn9BTmFz9wchbDkC6pYxZxBCP3LQtx31vCSwBFx0KkR
 +TGZ3bRy8VsioIQMOHQHTD5mgQ9kftGBTHY965Hrx5qhEpWX6+TTR+YnvGEAJFza5Y9cYRQbgCW
 QIQOT1K5H/EyXDacJUJPKemfNrosJT57eFIe6lsaNtuDVYSzHYK7soOhh03FMvUDKuWAo8t6Bv8
 F1vyJV4GLkaIyT/UgOEvyjxgTtaF7056maKR0geh2rMk/kxGyEKay/MPf511KmcYPyiZK1kvZmd
 q1USsoPuhztHXgJM7+GgrvCPRWxO4EpH6wB3XZPt/mzQHL9sh9RIeYptZjIBllvFvlRdDwQ8CBM
 qpvmAmAaq8jPuEiP4A5c36
X-Received: by 2002:a17:906:fa05:b0:c12:b31:a1c1 with SMTP id
 a640c23a62f3a-c15a676e218mr44808366b.1.1783352475354; 
 Mon, 06 Jul 2026 08:41:15 -0700 (PDT)
Received: from localhost ([130.225.21.22]) by smtp.gmail.com with ESMTPSA id
 a640c23a62f3a-c12b6091785sm801574566b.16.2026.07.06.08.41.13
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Mon, 06 Jul 2026 08:41:14 -0700 (PDT)
From: "Paul D. Nelson" <ultrono@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#81368: rmail issue when rmail-display-summary is non-nil
In-Reply-To: <8633xw8g2w.fsf@HIDDEN> (message from Eli Zaretskii on Mon, 06
 Jul 2026 15:20:39 +0300)
Date: Mon, 06 Jul 2026 17:41:12 +0200
Message-ID: <m2y0fo5dnr.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: 81368
Cc: da_vid@HIDDEN, 81368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: 0.0 (/)

--=-=-=
Content-Type: text/plain

Eli Zaretskii <eliz@HIDDEN> writes:

>> Date: Mon, 6 Jul 2026 13:10:36 +0200
>> From: David Ponce via "Bug reports for GNU Emacs,
>>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
>> 
>> Hello,
>> 
>> Since this commit:
>> 
>> author	Paul Nelson <ultrono@HIDDEN>	
>> 	Sun, 21 Jun 2026 18:19:26 +0200 (18:19 +0200)
>> commit	35af392aee538254f92fb2386f1dd69c7d0fb82b
>> Keep Rmail collection buffers unibyte
>> 
>> 
>> When `rmail-display-summary' is non-nil, the `rmail' command fails to
>> get new messages and creates an unexpected "RMAIL-summary-summary"
>> buffer in addition to the expected "RMAIL-summary" and "RMAIL"
>> buffers.  All these buffers are empty.
>> 
>> My recipe:
>> 
>> I checked that I have new messages in my /var/spool mailbox.
>> 
>> In emacs -Q, I eval (setopt rmail-display-summary t)
>> then type M-x rmail
>> 
>> When `rmail-display-summary' is nil, or if `rmail-display-summary' is
>> non-nil AND the new `rmail-mode' entry is `auto-mode-alist' is
>> removed, `M-x rmail' works as expected and displays both the
>> "RMAIL-summary" and "RMAIL" buffers with the new messages.
>> 
>> It seems there is a nasty side-effect of `rmail-mode' automatic setup,
>> and rmail-summary, but I did not find the root cause.
>
> I cannot reproduce this.  I tried
>
>   C-u M-x rmail RET mail.new RET
>
> after setting rmail-display-summary non-nil in "emacs -Q", and the
> summary buffer has a reasonable name.  Maybe there are other factors
> at work here?
>
> Paul, could you please look into this?

I believe the attached patch fixes David's issue.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-Disable-auto-mode-alist-during-M-x-rmail.patch

From 3c26a878c1ae3e934e735ba88cfb6ca55c99158c Mon Sep 17 00:00:00 2001
From: Paul Nelson <ultrono@HIDDEN>
Date: Mon, 6 Jul 2026 17:25:17 +0200
Subject: [PATCH] Disable 'auto-mode-alist' during M-x rmail

* lisp/mail/rmail.el (rmail): Bind 'auto-mode-alist' to nil
while visiting the Rmail file, so that filename-based major mode
selection does not interfere.  (Bug#81368)
---
 lisp/mail/rmail.el | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lisp/mail/rmail.el b/lisp/mail/rmail.el
index 9f495ddf0f8..123c16d0e04 100644
--- a/lisp/mail/rmail.el
+++ b/lisp/mail/rmail.el
@@ -903,6 +903,7 @@ rmail
       ;; The mail file is either unchanged or not visited.  Visit it.
       (switch-to-buffer
        (let ((enable-local-variables nil)
+	     (auto-mode-alist nil)
 	     ;; Force no-conversion by default, since that's what
 	     ;; pre-mbox Rmail did with BABYL files (via
 	     ;; auto-coding-regexp-alist).
-- 
2.54.0


--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81368; Package emacs. Full text available.

Message received at 81368 <at> debbugs.gnu.org:


Received: (at 81368) by debbugs.gnu.org; 6 Jul 2026 12:20:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 06 08:20:49 2026
Received: from localhost ([127.0.0.1]:52826 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wgiJd-0006S1-7q
	for submit <at> debbugs.gnu.org; Mon, 06 Jul 2026 08:20:49 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:52976)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1wgiJb-0006Re-H4
 for 81368 <at> debbugs.gnu.org; Mon, 06 Jul 2026 08:20:48 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1wgiJV-0005Ud-Dh; Mon, 06 Jul 2026 08:20:41 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=+VuJhjgQ0grrIwKDYpWNti6gGT+qQCOFTu4/MPk72dE=; b=dcjewLokrZnS
 jiiT/tIUNhcaxAz4OgnNR/EjTYavGNHjzbaT8QLPnrbvpHO4hKTzZW4amYOriw5DLWu/cEnneiymg
 EejAKsjsP8mQisH5hvaBbYUio10UDabKHuwFXElOmqxpB0ZmkkZcS2Bwbw6Zmzh7RQ0ejE6OGNf7S
 FzE0X8vCgYoz6QqfhwkGAgk4ZaumKRQJMsfERPJCP8QwkHEvrq0XawmoAYZDpdYxsBhoq6rnd0yNy
 J3NnjAjRO/mPtY8wyyuuFOAGIO1/MqGmJy1UiXhrprauFubEbGd4mj2dByLM4D5NINIObqzjdgGfH
 CQ61jiYCQ1D2whZhBD03Lw==;
Date: Mon, 06 Jul 2026 15:20:39 +0300
Message-Id: <8633xw8g2w.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: David Ponce <da_vid@HIDDEN>, Paul Nelson <ultrono@HIDDEN>
In-Reply-To: <c8ee4fd0-7eb7-489e-b562-a396ca30c4e5@HIDDEN>
 (bug-gnu-emacs@HIDDEN)
Subject: Re: bug#81368: rmail issue when rmail-display-summary is non-nil
References: <c8ee4fd0-7eb7-489e-b562-a396ca30c4e5@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 81368
Cc: 81368 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Date: Mon, 6 Jul 2026 13:10:36 +0200
> From: David Ponce via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs@HIDDEN>
> 
> Hello,
> 
> Since this commit:
> 
> author	Paul Nelson <ultrono@HIDDEN>	
> 	Sun, 21 Jun 2026 18:19:26 +0200 (18:19 +0200)
> commit	35af392aee538254f92fb2386f1dd69c7d0fb82b
> Keep Rmail collection buffers unibyte
> 
> 
> When `rmail-display-summary' is non-nil, the `rmail' command fails to
> get new messages and creates an unexpected "RMAIL-summary-summary"
> buffer in addition to the expected "RMAIL-summary" and "RMAIL"
> buffers.  All these buffers are empty.
> 
> My recipe:
> 
> I checked that I have new messages in my /var/spool mailbox.
> 
> In emacs -Q, I eval (setopt rmail-display-summary t)
> then type M-x rmail
> 
> When `rmail-display-summary' is nil, or if `rmail-display-summary' is
> non-nil AND the new `rmail-mode' entry is `auto-mode-alist' is
> removed, `M-x rmail' works as expected and displays both the
> "RMAIL-summary" and "RMAIL" buffers with the new messages.
> 
> It seems there is a nasty side-effect of `rmail-mode' automatic setup,
> and rmail-summary, but I did not find the root cause.

I cannot reproduce this.  I tried

  C-u M-x rmail RET mail.new RET

after setting rmail-display-summary non-nil in "emacs -Q", and the
summary buffer has a reasonable name.  Maybe there are other factors
at work here?

Paul, could you please look into this?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#81368; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 6 Jul 2026 11:11:00 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jul 06 07:11:00 2026
Received: from localhost ([127.0.0.1]:52228 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1wghE4-0006j1-4p
	for submit <at> debbugs.gnu.org; Mon, 06 Jul 2026 07:11:00 -0400
Received: from lists1p.gnu.org ([2001:470:142::17]:35560)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <da_vid@HIDDEN>) id 1wghE2-0006iQ-7g
 for submit <at> debbugs.gnu.org; Mon, 06 Jul 2026 07:10:59 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <da_vid@HIDDEN>) id 1wghDr-0008ET-Az
 for bug-gnu-emacs@HIDDEN; Mon, 06 Jul 2026 07:10:48 -0400
Received: from smtp-26.smtpout.orange.fr ([80.12.242.26]
 helo=smtp.smtpout.orange.fr)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <da_vid@HIDDEN>) id 1wghDm-0003TI-Gh
 for bug-gnu-emacs@HIDDEN; Mon, 06 Jul 2026 07:10:46 -0400
Received: from [192.168.1.21] ([90.38.183.166]) by smtp.orange.fr with ESMTPSA
 id ghDgw9kYhvEgsghDgwA1Hq; Mon, 06 Jul 2026 13:10:37 +0200
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.fr;
 s=t20230301; t=1783336237;
 bh=CWn4kkTRpFINELTM1n46X7bAHvFaW38qb0wjoMlDzqU=;
 h=Message-ID:Date:MIME-Version:To:From:Subject;
 b=ItRUoZLD29yGdNzyhSiFZU4YACRSq+lDK0wAB4sZL+SUlUpIlaTEEB7PLGciOlgVV
 c+dGffAJefWnJ3BSur6cgybL9jXqkFIqihgOo+eoop+An9Ix/xjWv7jpxpMmP2w7MR
 UFsfsYKTJIuJFl52gt1TPM1J8qZdLyEHxWppXMexBmBzekannFKataWSPbu3W8hM7O
 FY9iZ7urgncmBT8ga8IwBQzvhRgIHwePu0ScE6v500wdixGSaW9BdTgYP94UdMkC9U
 hZfgz9vTn2ucz4IlDjXm9TakbiFl3VSaiLvmkXcQfLzA3Q9dzTIRt0kQN4sfrfTzM7
 76cqp8qumjqTg==
X-ME-Helo: [192.168.1.21]
X-ME-Auth: ZGFfdmlkQG9yYW5nZS5mcg==
X-ME-Date: Mon, 06 Jul 2026 13:10:37 +0200
X-ME-IP: 90.38.183.166
Message-ID: <c8ee4fd0-7eb7-489e-b562-a396ca30c4e5@HIDDEN>
Date: Mon, 6 Jul 2026 13:10:36 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: fr
To: bug-gnu-emacs@HIDDEN
From: David Ponce <da_vid@HIDDEN>
Subject: rmail issue when rmail-display-summary is non-nil
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=80.12.242.26; envelope-from=da_vid@HIDDEN;
 helo=smtp.smtpout.orange.fr
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.0 (/)

Hello,

Since this commit:

author	Paul Nelson <ultrono@HIDDEN>	
	Sun, 21 Jun 2026 18:19:26 +0200 (18:19 +0200)
commit	35af392aee538254f92fb2386f1dd69c7d0fb82b
Keep Rmail collection buffers unibyte


When `rmail-display-summary' is non-nil, the `rmail' command fails to
get new messages and creates an unexpected "RMAIL-summary-summary"
buffer in addition to the expected "RMAIL-summary" and "RMAIL"
buffers.  All these buffers are empty.

My recipe:

I checked that I have new messages in my /var/spool mailbox.

In emacs -Q, I eval (setopt rmail-display-summary t)
then type M-x rmail

When `rmail-display-summary' is nil, or if `rmail-display-summary' is
non-nil AND the new `rmail-mode' entry is `auto-mode-alist' is
removed, `M-x rmail' works as expected and displays both the
"RMAIL-summary" and "RMAIL" buffers with the new messages.

It seems there is a nasty side-effect of `rmail-mode' automatic setup,
and rmail-summary, but I did not find the root cause.

Thanks

In GNU Emacs 32.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
   3.24.52, cairo version 1.18.4) of 2026-07-06
Repository revision: b31954283556a8e9fdc0081e83deb3cdcfe992cb
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101023
System Description: Fedora Linux 44 (KDE Plasma Desktop Edition)

Configured using:
   'configure -q --with-native-compilation=no
   --with-tree-sitter=no --with-x --with-x-toolkit=gtk3 --with-cairo
   --without-xft --with-harfbuzz --with-gnutls --with-gsettings
   --with-modules --with-threads --with-libgmp --with-xml2 --with-zlib
   --with-file-notification=inotify --without-libotf --without-xim
   --without-gpm




Acknowledgement sent to David Ponce <da_vid@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#81368; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Thu, 9 Jul 2026 00:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.