GNU bug report logs - #80082
31.0.50; Buffer-menu-unmark-all-buffers removes too much flags

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: Manuel Giraud <manuel@HIDDEN>; Done: Juri Linkov <juri@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug marked as fixed in version 31.0.50, send any further explanations to 80082 <at> debbugs.gnu.org and Manuel Giraud <manuel@HIDDEN> Request was from Juri Linkov <juri@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 80082) by debbugs.gnu.org; 13 Jan 2026 18:50:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jan 13 13:50:46 2026
Received: from localhost ([127.0.0.1]:43610 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vfjTZ-0000ec-LH
	for submit <at> debbugs.gnu.org; Tue, 13 Jan 2026 13:50:45 -0500
Received: from mout-p-201.mailbox.org ([80.241.56.171]:55720)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>)
 id 1vfjTX-0000eF-6c; Tue, 13 Jan 2026 13:50:44 -0500
Received: from smtp102.mailbox.org (smtp102.mailbox.org [10.196.197.102])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4drJGf3VKwz9v8Q;
 Tue, 13 Jan 2026 19:50:34 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1768330234;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 in-reply-to:in-reply-to:references:references;
 bh=R+KGtxvfIY5JvUsUq3A9ZS/8ELICVFCxz7gtInvO5r0=;
 b=aO+qpbuxCIdEBumrecPUtHorcQUCkMsAmfmEW0Lo+9hwTgxLdsJ9UafNw8bXHGvhDYeLKM
 Op9p+ZgiXWSDPuPYPMdySzMSvtNbrHg6Vzs8bEzI7PDLMGxiazebGGjW9Rvy3EqIFCVW8R
 jzkYK/5o/K/Vxn8S32/1NqNy5NWJx2UiwD1fi7aZvMY8iaOw1m7TL77AMWdPHvCzuCyGwD
 IskTerJLKDciL0t5edAavzGAHXGHu4AKPq6OqIA86pz20tZeiNeflIpiRwNa33R2NDICDQ
 4MS6hJsMuJB/86IcQMTIO8pnYvAB80MIwZ5qDMqRIItHonwlMZi+KUdXAxk6Mw==
From: Juri Linkov <juri@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#80082: 31.0.50; Buffer-menu-unmark-all-buffers removes too
 much flags
In-Reply-To: <87a4yoecss.fsf@HIDDEN>
Organization: LINKOV.NET
References: <878qemeqj0.fsf@HIDDEN> <87qzscjsd6.fsf@HIDDEN>
 <87a4yoecss.fsf@HIDDEN>
Date: Tue, 13 Jan 2026 20:49:22 +0200
Message-ID: <87h5sp5owd.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80082
Cc: 80082 <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.7 (-)

close 80082 31.0.50
thanks

> I think the attached patch fixes this issue.

Thanks, I confirm, so now pushed and closed.




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

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


Received: (at 80082) by debbugs.gnu.org; 8 Jan 2026 08:20:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jan 08 03:20:10 2026
Received: from localhost ([127.0.0.1]:41006 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vdlFZ-0004G6-KO
	for submit <at> debbugs.gnu.org; Thu, 08 Jan 2026 03:20:10 -0500
Received: from ledu-giraud.fr ([51.159.28.247]:27689)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1vdlFW-0004Dr-J8
 for 80082 <at> debbugs.gnu.org; Thu, 08 Jan 2026 03:20:08 -0500
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=WHA5ePWD
 cNjX2rr+XzjHoM1AowsfofNB0glA062aFxM=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=ZWO08KJvF/Vrx4007USS+uZvO1XxiM
 awGanfoHJDL73vyfnX8AMzxKt0r/sTqjfMTUS3g8uoTnFMb2teuUk7AA==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=WHA5ePWDcNjX2rr+
 XzjHoM1AowsfofNB0glA062aFxM=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=njBd775YYOGL4+Bk5p6M//D+s9HxqH8D8CU6jh
 qsbOnGnaqf+Bm9bIICRqkmQ4B36OB9KjQ+ljyegmgKx5iARhQE4rwSIv+wltc5KdAGIf5S
 b1/IikWJ58cf/GaQMehKQFnHlDAVAduaYUEl0itLT3GAv925axyPq/Xm3bqX7nqHQhvhvj
 xPLnfJKLQcei8/Bo8EPVeFFnx0QQ4LDqZjDzSxNz6836GSCrIoHXzAXQfczSZqxPsWOuGM
 gEqajgfwa2Wp1ZrbX+PFC9al+Swq6zLwx14XDyvOI3zphy1TNtQsbtn9sSOOL/pWiuYWyP
 zniV3sf0F26MT0UlwkIopjmA==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id f66f3c5c
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Thu, 8 Jan 2026 09:20:04 +0100 (CET)
From: Manuel Giraud <manuel@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#80082: 31.0.50; Buffer-menu-unmark-all-buffers removes too
 much flags
In-Reply-To: <87qzscjsd6.fsf@HIDDEN>
References: <878qemeqj0.fsf@HIDDEN> <87qzscjsd6.fsf@HIDDEN>
Date: Thu, 08 Jan 2026 09:20:03 +0100
Message-ID: <87a4yoecss.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 80082
Cc: 80082 <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 (-)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Juri Linkov <juri@HIDDEN> writes:

>> I'm not sure that 'Buffer-menu-unmark-all-buffers' works as intended.
>> The recipe:
>>
>>     - emacs -Q
>>     - Open some files and buffers
>>     - M-x buffer-menu
>>     - s s s p d
>>     - M-<DEL> D
>>     - Observe that, on the previous line, the 'S' mark is removed as
>>       well as the 'D' mark.
>>
>> The manual states that:
>>
>> =E2=80=98M-<DEL>=E2=80=99
>>      Remove a particular flag from all lines
>>      (=E2=80=98Buffer-menu-unmark-all-buffers=E2=80=99).  This asks for =
a single
>>      character, and unmarks buffers marked with that character; typing
>>      <RET> removes all marks.
>>
>> So I guess that only the 'D' mark should have been removed in the
>> previous line with my recipe.  What am i missing?
>
> Looks like your interpretation is correct.

Hi Juri (and thanks),

I think the attached patch fixes this issue.

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-Fix-buffer-menu-unmark-bug-80082.patch

From 6cd0668294081584164396d44ca33465d7a790f4 Mon Sep 17 00:00:00 2001
From: Manuel Giraud <manuel@HIDDEN>
Date: Thu, 8 Jan 2026 08:45:04 +0100
Subject: [PATCH] Fix buffer menu unmark (bug#80082)

Now when calling 'Buffer-menu-unmark-all-buffers', only the
selected mark is removed.

* lisp/buff-menu.el (Buffer-menu--unmark): Add a mark parameter
to correctly select it in the entry.
(Buffer-menu-unmark, Buffer-menu-unmark-all-buffers)
(Buffer-menu-backup-unmark): Usage.
---
 lisp/buff-menu.el | 33 ++++++++++++++++++---------------
 1 file changed, 18 insertions(+), 15 deletions(-)

diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index 2f1a0251183..972448fe545 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -465,7 +465,7 @@ Buffer-menu-unmark
 heading line, this command will unmark all entries in the outline."
   (interactive "P" Buffer-menu-mode)
   (cond ((tabulated-list-get-id)
-         (Buffer-menu--unmark)
+         (Buffer-menu--unmark ?\r)
          (forward-line (if backup -1 1)))
         ((and (bound-and-true-p outline-minor-mode) (outline-on-heading-p))
          (let ((old-pos (point))
@@ -488,11 +488,7 @@ Buffer-menu-unmark-all-buffers
   (save-excursion
     (goto-char (point-min))
     (while (not (eobp))
-      (when-let* ((entry (tabulated-list-get-entry)))
-        (let ((xmarks (list (aref entry 0) (aref entry 2))))
-          (when (or (char-equal mark ?\r)
-                    (member (char-to-string mark) xmarks))
-            (Buffer-menu--unmark))))
+      (Buffer-menu--unmark mark)
       (forward-line))))
 
 (defun Buffer-menu-unmark-all ()
@@ -506,15 +502,22 @@ Buffer-menu-backup-unmark
   (forward-line -1)
   (while (and (not (tabulated-list-get-id)) (not (bobp)))
     (forward-line -1))
-  (if (tabulated-list-get-id) (Buffer-menu--unmark)))
-
-(defun Buffer-menu--unmark ()
-  (tabulated-list-set-col 0 " " t)
-  (let ((buf (Buffer-menu-buffer)))
-    (when buf
-      (if (buffer-modified-p buf)
-          (tabulated-list-set-col 2 "*" t)
-        (tabulated-list-set-col 2 " " t)))))
+  (if (tabulated-list-get-id) (Buffer-menu--unmark ?\r)))
+
+(defun Buffer-menu--unmark (mark)
+  "Remove MARK in current entry.
+If MARK is \\`RET' remove all marks."
+  (when-let* ((entry (tabulated-list-get-entry)))
+    ;; A mark could appear in column 0 or 2.
+    (dolist (col '(0 2))
+      (when (or (char-equal mark ?\r)
+                (char-equal mark (string-to-char (aref entry col))))
+        (tabulated-list-set-col col " " t)))
+    ;; Reset modified mark in column 2.
+    (let ((buf (Buffer-menu-buffer)))
+      (when (and buf (buffer-modified-p buf)
+                 (string-equal (aref entry 2) " "))
+        (tabulated-list-set-col 2 "*" t)))))
 
 (defun Buffer-menu-delete (&optional arg)
   "Mark the buffer on this Buffer Menu buffer line for deletion.
-- 
2.52.0


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

-- 
Manuel Giraud

--=-=-=--




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

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


Received: (at 80082) by debbugs.gnu.org; 30 Dec 2025 18:13:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Dec 30 13:13:56 2025
Received: from localhost ([127.0.0.1]:46769 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vaeEF-0000SV-1A
	for submit <at> debbugs.gnu.org; Tue, 30 Dec 2025 13:13:56 -0500
Received: from mout-p-202.mailbox.org ([2001:67c:2050:0:465::202]:53032)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1vaeE9-0000Qb-LB
 for 80082 <at> debbugs.gnu.org; Tue, 30 Dec 2025 13:13:52 -0500
Received: from smtp2.mailbox.org (smtp2.mailbox.org [10.196.197.2])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
 (No client certificate requested)
 by mout-p-202.mailbox.org (Postfix) with ESMTPS id 4dgh6V5rM4z9sp7;
 Tue, 30 Dec 2025 19:13:38 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linkov.net; s=MBO0001; 
 t=1767118418;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
 content-transfer-encoding:content-transfer-encoding:
 in-reply-to:in-reply-to:references:references;
 bh=3BW4RtlXq+5FnQyjbHmOy0e/85o18cPJRQpK23chCWM=;
 b=XB2HnAAsZTRRlwK/CRjBZDsonv1OnLAGuf7ZWGohUSC2LSB0oF0YlJfybRu/P9s+2WxaTL
 OTA1CWWbVS/VJrKcz5cSNFl+K3xUx1W1VbC0M09DC3o3B+jwWpajQ9N5OYmA6I45JGNb9r
 9DBdwPHzC6Soo7FNkMvCxJ/rUczT0qZuP9KpWyym91PCMrsfJa7iVjKiIddCkjHrC7drQT
 8YI6hvzXuwLO61uEaTKlK/QHTNgDieMgdIb+ar+mmXFOTneN4MeJjgsAHH8GLJeKCKXM4i
 aa/wE1ms2WB8s6oJIHepMeIM96LKFlLhFPenqToT5UPCsj+/3mybyZFxdmXkIQ==
From: Juri Linkov <juri@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#80082: 31.0.50; Buffer-menu-unmark-all-buffers removes too
 much flags
In-Reply-To: <878qemeqj0.fsf@HIDDEN>
Organization: LINKOV.NET
References: <878qemeqj0.fsf@HIDDEN>
Date: Tue, 30 Dec 2025 19:47:41 +0200
Message-ID: <87qzscjsd6.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 80082
Cc: 80082 <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.7 (-)

> I'm not sure that 'Buffer-menu-unmark-all-buffers' works as intended.
> The recipe:
>
>     - emacs -Q
>     - Open some files and buffers
>     - M-x buffer-menu
>     - s s s p d
>     - M-<DEL> D
>     - Observe that, on the previous line, the 'S' mark is removed as
>       well as the 'D' mark.
>
> The manual states that:
>
> ‘M-<DEL>’
>      Remove a particular flag from all lines
>      (‘Buffer-menu-unmark-all-buffers’).  This asks for a single
>      character, and unmarks buffers marked with that character; typing
>      <RET> removes all marks.
>
> So I guess that only the 'D' mark should have been removed in the
> previous line with my recipe.  What am i missing?

Looks like your interpretation is correct.




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

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


Received: (at submit) by debbugs.gnu.org; 28 Dec 2025 12:32:12 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Dec 28 07:32:12 2025
Received: from localhost ([127.0.0.1]:60618 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1vZpwR-000074-KP
	for submit <at> debbugs.gnu.org; Sun, 28 Dec 2025 07:32:12 -0500
Received: from lists.gnu.org ([2001:470:142::17]:51762)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1vZpwP-00005x-9r
 for submit <at> debbugs.gnu.org; Sun, 28 Dec 2025 07:32:10 -0500
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 <manuel@HIDDEN>)
 id 1vZpwB-0000e1-Km
 for bug-gnu-emacs@HIDDEN; Sun, 28 Dec 2025 07:31:56 -0500
Received: from ledu-giraud.fr ([51.159.28.247])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <manuel@HIDDEN>)
 id 1vZpw8-0006dC-IF
 for bug-gnu-emacs@HIDDEN; Sun, 28 Dec 2025 07:31:55 -0500
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=IgVYaudt
 EePwS+rdcVJ2/tVJXdKwnh0wRAOsUtKrMWY=; h=date:subject:to:from; 
 d=ledu-giraud.fr;
 b=DSP3VJ4OK7zb9zephNNWs4c4xcS3VUrSjIgyd4P6mYS4mrJ3IS
 DLK4iZa+AVdO1DTY0ObekAwvyvIG+u3i5tCw==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=IgVYaudtEePwS+rd
 cVJ2/tVJXdKwnh0wRAOsUtKrMWY=; h=date:subject:to:from;
 d=ledu-giraud.fr; b=uW1w/U/BVIGwwM53xMuj1SSnS9glCpZpkc7cIDJvG44V4yfEZ7
 2HhGbOoGscZLM8hxKrFqlQ90D1pIrOPynkHcZb3PDvNYWkzBFlkz0JODsxVx8DtYAQ6agZ
 DyIsha+N2RKB57m2sr1aahizekPKwC4CRaPz37fshK3EqklyojmBUJcPAGduw8a44E85nk
 Z/mLkPXeYrwfl6ROBIxujpbP+rWYHX09BWVxGdHRH4T1j9FNyGciE+1Swjk8JBnV08PzNQ
 ezIy/BrZtrTsSTYRpKybA/U4vAk4JXwX5qn760wVwg5O6iau40hG31YAceoG4+aLBAMcu5
 9jAlFAINIqTA==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 917e51be
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <bug-gnu-emacs@HIDDEN>;
 Sun, 28 Dec 2025 13:31:48 +0100 (CET)
From: Manuel Giraud <manuel@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; Buffer-menu-unmark-all-buffers removes too much flags
X-Debbugs-Cc: 
Date: Sun, 28 Dec 2025 13:31:47 +0100
Message-ID: <878qemeqj0.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@HIDDEN;
 helo=ledu-giraud.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,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
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.1 (/)


Hi,

I'm not sure that 'Buffer-menu-unmark-all-buffers' works as intended.
The recipe:

    - emacs -Q
    - Open some files and buffers
    - M-x buffer-menu
    - s s s p d
    - M-<DEL> D
    - Observe that, on the previous line, the 'S' mark is removed as
      well as the 'D' mark.

The manual states that:

=E2=80=98M-<DEL>=E2=80=99
     Remove a particular flag from all lines
     (=E2=80=98Buffer-menu-unmark-all-buffers=E2=80=99).  This asks for a s=
ingle
     character, and unmarks buffers marked with that character; typing
     <RET> removes all marks.

So I guess that only the 'D' mark should have been removed in the
previous line with my recipe.  What am i missing?
=20=20=20=20


In GNU Emacs 31.0.50 (build 1, x86_64-unknown-openbsd7.8) of 2025-12-27
 built on computer
Repository revision: ab7ed33f6dc8965da22f1200ccfacc1899064fd2
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101020
System Description: OpenBSD computer 7.8 GENERIC.MP#182 amd64

Configured using:
 'configure CC=3Degcc CPPFLAGS=3D-I/usr/local/include
 LDFLAGS=3D-L/usr/local/lib MAKEINFO=3Dgmakeinfo --prefix=3D/home/manuel/em=
acs
 --bindir=3D/home/manuel/bin --with-x-toolkit=3Dno
 --with-toolkit-scroll-bars=3Dno --without-cairo --without-dbus
 --without-gconf --without-gsettings --without-compress-install'

Configured features:
FREETYPE GIF GLIB GMP GNUTLS HARFBUZZ JPEG LCMS2 LIBOTF LIBXML2 M17N_FLT
MODULES NOTIFY KQUEUE OLDXMENU PDUMPER PNG RSVG SQLITE3 THREADS TIFF
TREE_SITTER WEBP X11 XDBE XFT XIM XINERAMA XINPUT2 XPM XRANDR ZLIB

Important settings:
  value of $LC_CTYPE: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Info

Minor modes in effect:
  display-time-mode: t
  display-battery-mode: t
  desktop-save-mode: t
  exwm-randr-mode: t
  server-mode: t
  electric-pair-mode: t
  repeat-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  isearch-fold-quotes-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-nonselected-mode: t
  minibuffer-regexp-mode: t
  buffer-read-only: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
/home/manuel/prog/elisp/exwm/exwm hides /home/manuel/.emacs.d/elpa/exwm-0.3=
4/exwm
/home/manuel/prog/elisp/exwm/exwm-xsettings hides /home/manuel/.emacs.d/elp=
a/exwm-0.34/exwm-xsettings
/home/manuel/prog/elisp/exwm/exwm-xim hides /home/manuel/.emacs.d/elpa/exwm=
-0.34/exwm-xim
/home/manuel/prog/elisp/exwm/exwm-workspace hides /home/manuel/.emacs.d/elp=
a/exwm-0.34/exwm-workspace
/home/manuel/prog/elisp/exwm/exwm-randr hides /home/manuel/.emacs.d/elpa/ex=
wm-0.34/exwm-randr
/home/manuel/prog/elisp/exwm/exwm-manage hides /home/manuel/.emacs.d/elpa/e=
xwm-0.34/exwm-manage
/home/manuel/prog/elisp/exwm/exwm-layout hides /home/manuel/.emacs.d/elpa/e=
xwm-0.34/exwm-layout
/home/manuel/prog/elisp/exwm/exwm-input hides /home/manuel/.emacs.d/elpa/ex=
wm-0.34/exwm-input
/home/manuel/prog/elisp/exwm/exwm-floating hides /home/manuel/.emacs.d/elpa=
/exwm-0.34/exwm-floating
/home/manuel/prog/elisp/exwm/exwm-systemtray hides /home/manuel/.emacs.d/el=
pa/exwm-0.34/exwm-systemtray
/home/manuel/prog/elisp/exwm/exwm-core hides /home/manuel/.emacs.d/elpa/exw=
m-0.34/exwm-core
/home/manuel/prog/elisp/exwm/exwm-background hides /home/manuel/.emacs.d/el=
pa/exwm-0.34/exwm-background
/home/manuel/.el/lua-mode hides /home/manuel/emacs/share/emacs/31.0.50/lisp=
/progmodes/lua-mode
/home/manuel/.emacs.d/elpa/idlwave-6.5.1/idlwave hides /home/manuel/emacs/s=
hare/emacs/31.0.50/lisp/obsolete/idlwave
/home/manuel/.emacs.d/elpa/idlwave-6.5.1/idlw-toolbar hides /home/manuel/em=
acs/share/emacs/31.0.50/lisp/obsolete/idlw-toolbar
/home/manuel/.emacs.d/elpa/idlwave-6.5.1/idlw-shell hides /home/manuel/emac=
s/share/emacs/31.0.50/lisp/obsolete/idlw-shell
/home/manuel/.emacs.d/elpa/idlwave-6.5.1/idlw-help hides /home/manuel/emacs=
/share/emacs/31.0.50/lisp/obsolete/idlw-help
/home/manuel/.emacs.d/elpa/idlwave-6.5.1/idlw-complete-structtag hides /hom=
e/manuel/emacs/share/emacs/31.0.50/lisp/obsolete/idlw-complete-structtag

Features:
(shadow sort mail-extr emacsbug lisp-mnt shortdoc comp-common tramp-cmds
tramp-sh help-fns radix-tree misearch multi-isearch dabbrev pcmpl-unix
edmacro calc-units calc-arith calccomp calc-aent calc-misc calc-alg
calc-menu calc-prog pulse face-remap display-line-numbers texinfo
texinfo-loaddefs make-mode view conf-mode css-mode sgml-mode facemenu
imenu flyspell ispell tex-mode flymake-cc flymake macrostep-c cmacexp
emacs-news-mode dired-aux gnus-dired org-indent vc-hg vc-bzr vc-src
vc-sccs vc-svn vc-cvs vc-rcs oc-basic ol-eww eww vtable mule-util
url-queue mm-url ol-rmail ol-mhe ol-irc ol-info ol-gnus nnselect
ol-docview doc-view filenotify jka-compr image-mode exif ol-bibtex
bibtex ol-bbdb ol-w3m ol-doi org-link-doi org-agenda org-element
org-persist org-id org-element-ast inline avl-tree log-view log-edit
add-log pcvs-util vc-git diff-mode track-changes vc-dir ewoc vc
vc-dispatcher ob-lisp ob-gnuplot ob-shell time battery desktop frameset
exwm-randr xcb-randr exwm exwm-input xcb-keysyms xcb-xkb exwm-manage
exwm-floating xcb-cursor xcb-render exwm-layout exwm-workspace exwm-core
xcb-ewmh xcb-icccm xcb xcb-xproto xcb-types xcb-debug kmacro server
doric-themes modus-themes osm bookmark zone speed-type url-http url-auth
url-gw nsm ytdious mpdired transmission color calc-bin calc-ext calc
calc-loaddefs rect calc-macs debbugs-browse bug-reference supercite regi
ebdb-gnus gnus-msg ebdb-message ebdb-mua ebdb-com crm ebdb-format ebdb
eieio-opt speedbar ezimage dframe eieio-base timezone gnus-icalendar
org-capture org-refile gnus-art mm-uu mml2015 mm-view mml-smime smime
gnutls dig gnus-sum shr pixel-fill kinsoku url-file svg dom gnus-group
gnus-undo gnus-start gnus-dbus dbus xml gnus-cloud nnimap nnmail
mail-source utf7 nnoo gnus-spec gnus-int gnus-range message yank-media
puny rfc822 mml mml-sec epa derived epg rfc6068 epg-config mailabbrev
mailheader gnus-win mm-decode mm-bodies mm-encode gmm-utils icalendar
gnus nnheader gnus-util range sendmail mail-parse rfc2231 rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils erlang-start idlwave
idlwave-menus idlw-menus idlwave-bindings idlw-bindings idlwave-routine
idlw-routine idlwave-scan idlw-scan idlwave-help idlw-help
idlwave-complete idlw-complete idlwave-variables idlw-variables skeleton
cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine
cc-vars cc-defs slime-asdf grep slime-tramp tramp-cache time-stamp tramp
trampver tramp-integration files-x tramp-message tramp-compat shell
parse-time iso8601 tramp-loaddefs slime-fancy slime-indentation
slime-cl-indent cl-indent slime-trace-dialog slime-fontifying-fu
slime-package-fu slime-references slime-compiler-notes-tree advice
slime-scratch slime-presentations slime-macrostep macrostep compat
slime-mdot-fu slime-enclosing-context slime-fuzzy slime-fancy-trace
slime-fancy-inspector slime-c-p-c slime-editing-commands slime-autodoc
slime-repl slime-parse slime easy-mmode apropos compile
text-property-search etags fileloop generator xref project arc-mode
archive-mode hyperspec elec-pair org ob ob-tangle ob-ref ob-lob ob-table
ob-exp org-macro org-src sh-script smie treesit executable ob-comint
org-pcomplete pcomplete comint ansi-osc ansi-color ring org-list
org-footnote org-faces org-entities time-date noutline outline
org-version ob-emacs-lisp ob-core ob-eval org-cycle org-table ol rx
org-fold org-fold-core org-keys oc org-loaddefs thingatpt find-func
org-compat org-macs format-spec appt diary-lib diary-loaddefs cal-menu
calendar cal-loaddefs pcase dired-x dired dired-loaddefs repeat cus-edit
pp cus-start cus-load wid-edit debbugs-autoloads doric-themes-autoloads
ebdb-autoloads cl-extra help-mode ef-themes-autoloads elpher-autoloads
exwm-autoloads gnuplot-autoloads idlwave-autoloads
modus-themes-autoloads notmuch-autoloads osm-autoloads
pdf-tools-autoloads warnings reddigg-autoloads ht-autoloads
dash-autoloads promise-autoloads rust-mode-autoloads info
slime-autoloads macrostep-autoloads speed-type-autoloads
sudo-edit-autoloads svg-clock-autoloads tablist-autoloads
tomorrow-night-deepblue-theme-autoloads transmission-autoloads
xelb-autoloads ytdious-autoloads package browse-url xdg url url-proxy
url-privacy url-expand url-methods url-history url-cookie
generate-lisp-file url-domsuf url-util mailcap url-handlers url-parse
auth-source cl-seq eieio eieio-core cl-macs icons password-cache json
subr-x map byte-opt gv bytecomp byte-compile url-vars cl-loaddefs cl-lib
rmc iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt
fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode
register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads kqueue lcms2 dynamic-setting font-render-setting xinput2 x
multi-tty move-toolbar make-network-process tty-child-frames emacs)

Memory information:
((conses 16 949699 639758) (symbols 48 56908 30)
 (strings 32 270013 38561) (string-bytes 1 6682064)
 (vectors 16 156728) (vector-slots 8 2198360 56364) (floats 8 789 724)
 (intervals 56 30596 4168) (buffers 1064 181))

--=20
Manuel Giraud




Acknowledgement sent to Manuel Giraud <manuel@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#80082; 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: Tue, 13 Jan 2026 19:00:02 UTC

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