GNU bug report logs - #76769
31.0.50; marking inconsistency between VC-Dir and dired-vc-next-action

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: Sean Whitton <spwhitton@HIDDEN>; dated Thu, 6 Mar 2025 03:58:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

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


Received: (at 76769) by debbugs.gnu.org; 16 Mar 2025 03:39:35 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 23:39:35 2025
Received: from localhost ([127.0.0.1]:44657 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tteqb-00086z-KL
	for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 23:39:35 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:41838)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1tteqY-00085x-9j
 for 76769 <at> debbugs.gnu.org; Sat, 15 Mar 2025 23:39:31 -0400
DKIM-Signature: a=rsa-sha256;
 b=NJuTczwoAOBTmfNnwHLWm4FR0stqFHXopgWVxsoN3QF+EcpNheFAgYeLbof6n4MPfZdB1gGPu7I3ydUg4lB0hLysKL7MxmgIZWClKam4wXj+Nnl78yC0KnNkQxdi2n5wybgDgWwncGee/ozposmmHiuyeP6d2fhAWtO5E8ezglvZd6T/N8VYU/N25VX4Or+X0ZoM4CfqKITqxqUGY27k9YS7wPD7GMiDhZm53tzjoCTMczWt87klYH/+UMhocG2aQ5fGAAfLqLNHOGhcFcDgv+Ewqur3rUR30tveo/Nv81/VjhJ1zBxgpBglVeVxYKnzG83t2VUw6+YJD/eX5AXAmQ==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=bVLsasTaj5JPtMz6r5TR9FK5Rrcxr7iEyiYmPyQj8Jk=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=FXfSJF8NaaMcEfv91VrDexP8wUonNqOi++Kb1uZtJpJpnw8z0IsRb4plSerSIFeA4Hl4sFU9qipcFAhQdKRn4m2p8dL30np/UsPLNItROMMtcFRacTRqxp9D6ulkIuQuS/zv+NLxy39WYa38I5uFcZM/X0Zf8oVhRLrjt8vDz3YOtdXBgbsQZxZdJ8/EP9T7FZnfEXOWzMdIYTChIelfuACjeO5j97SoeOXi2oLjee0Xoh8s2WQ3abSB48+cGDQzAsQgowTmnStuP93gmqRzYfNEKTdCr0KQK+Dl9vbaE5lebI+mfdbzGazQ1aquW9vSm2vpS//xtayLAMxbxsnvvg==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=bVLsasTaj5JPtMz6r5TR9FK5Rrcxr7iEyiYmPyQj8Jk=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 76769 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1331088465; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sun, 16 Mar 2025 03:39:23 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 78FE97ED0CF; Sun, 16 Mar 2025 11:39:19 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
In-Reply-To: <e8fa7795-4827-4a14-bb7b-acefb273c907@HIDDEN>
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN> <86jz8zkdby.fsf@HIDDEN>
 <87senlo4w5.fsf@HIDDEN> <86frjkevl0.fsf@HIDDEN>
 <87wmcwiazv.fsf@HIDDEN> <868qpbd9dk.fsf@HIDDEN>
 <87tt7y90mx.fsf@HIDDEN> <86ldta5nlb.fsf@HIDDEN>
 <87h63w2s9d.fsf@HIDDEN>
 <d247ce66-7f45-4af6-b851-1222f6a0d6fd@HIDDEN>
 <871puyrbse.fsf@HIDDEN>
 <e8fa7795-4827-4a14-bb7b-acefb273c907@HIDDEN>
Date: Sun, 16 Mar 2025 11:39:19 +0800
Message-ID: <87wmcplk48.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
Cc: sbaugh@HIDDEN, Eli Zaretskii <eliz@HIDDEN>, 76769 <at> debbugs.gnu.org,
 juri@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: -1.0 (-)

Hello,

On Sat 15 Mar 2025 at 10:08pm +02, Dmitry Gutov wrote:

> The rest of the scenarios you described seem to make sense unconditionally,
> without extra prompt. Or might anyway.
> [...]
> Yeah, IME it might be an error because I would just be going through the items
> in VC-Dir, pressing 'm' to mark one after another - right now it ends at the
> first element after a dir, and it would start to work differently.

These are good points.  I now think perhaps only the more surprising
ones ought to be behind the defcustom, possibly only just this one.

> Anyway, I just wanted to voice a concern. Probably not a big deal, and
> it might help to test the changes in practice for a while.

Yes, there's a good chance we'll want to change which ones are behind
the defcustom after trying to use it for a while.

-- 
Sean Whitton




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

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


Received: (at 76769) by debbugs.gnu.org; 15 Mar 2025 20:08:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 16:08:28 2025
Received: from localhost ([127.0.0.1]:43677 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttXo3-00085m-Oa
	for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 16:08:28 -0400
Received: from fhigh-b1-smtp.messagingengine.com ([202.12.124.152]:57527)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1ttXny-00084t-1O
 for 76769 <at> debbugs.gnu.org; Sat, 15 Mar 2025 16:08:25 -0400
Received: from phl-compute-03.internal (phl-compute-03.phl.internal
 [10.202.2.43])
 by mailfhigh.stl.internal (Postfix) with ESMTP id 0DDC72540160;
 Sat, 15 Mar 2025 16:08:16 -0400 (EDT)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-03.internal (MEProxy); Sat, 15 Mar 2025 16:08:16 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm3; t=1742069295;
 x=1742155695; bh=LptM0Tw17Jr7SW9J/pYLSwF7aaTdVCAxP5QsEJ1Dmds=; b=
 Flvi8No5pjL8cGTYnqaWxJWG0mkLfDGQJn+gnlzyvNaxoQ8S+STqyLHiHK4IQeZa
 aXEgJ55sqTWfj5emvi48gKkWncO8PZgenU5aJgYQwatHAkLaTP4ju7F77L5mNe42
 2/8Yf1DXkMgh+OVLs+ARksb92QxBS4ZRAnw7tEyLl20kdHAV2qkp0B2EEtDVXKje
 aGZojlB4t3mKIiVgloJZuoZpnKUFdwwWk3qOPMugNFwqLmZU0SJBweQwgUjJIiln
 yQoHTzwF+a06VaGhvMsIZtVFOaMeRUmSZ/T/Q7wYgfKJd/eE8OoXCxtDQ8BaJKEQ
 iobmJ5mJe2C6SayCZYO+pg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1742069295; x=
 1742155695; bh=LptM0Tw17Jr7SW9J/pYLSwF7aaTdVCAxP5QsEJ1Dmds=; b=i
 b7qV7K6QKh/N3ge87BocO33DPxPMRams2JT7TmRbI/Jx1ICg1sljXZ4E/jRrtWtH
 dUlex0suiUNMqOrInTwJydJL6vLL/hWL5CHZ6xeCk32w7K/lJd8rrm3wxmhALd/B
 kcPP6yAvLN6Nr2FLcqdIES21hD5a3TJU56osn+lymyMxYXXVYbfoTFn1VWjZ8r9o
 4VORV02EOYguPNOXNgIsw6B5hwH19AzjmbmIsNpd7G4tAhOJyajI43F3aN2978Qh
 RgdTUCSRnd56olLPTf1ro+XoCvHyM6MQ3uywop4zGrTcuccRaKLnJX7po8rZasDj
 6he8riOyD/IW4l4IXBlWg==
X-ME-Sender: <xms:L97VZ96rXm-FJ9vHPU2A6eyZy4z8uBhX1uT26GSIlVBZj2k0lmvlhA>
 <xme:L97VZ669VraTvTXefmVL9almjLmK6AomaplKvAn4x_658MEsBM1GM4n4lD-n5eC_M
 ItrlZLhmgotv_L6lNg>
X-ME-Received: <xmr:L97VZ0dvIUkvKpQbPOvcG9GFd0SqlaQvI8m_LgFaoXgsFmUlT8-iwqkx1BP6dCePTuWf>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddufeegieegucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv
 pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih
 gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddt
 vdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovh
 druggvvheqnecuggftrfgrthhtvghrnhepteduleejgeehtefgheegjeekueehvdevieek
 ueeftddvtdevfefhvdevgedujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg
 hmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphht
 thhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehsphifhhhithhtohhnse
 hsphifhhhithhtohhnrdhnrghmvgdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrghdp
 rhgtphhtthhopeejieejieelseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtoh
 epjhhurhhisehlihhnkhhovhdrnhgvthdprhgtphhtthhopehssggruhhghhesjhgrnhgv
 shhtrhgvvghtrdgtohhm
X-ME-Proxy: <xmx:L97VZ2KXjZk5hljdrhX-eGk6MCG11lA_VAqU5DAS-CeloEYHicwIOw>
 <xmx:L97VZxJF513hgrAwL6kUgZVAr6-0wk6eer-_wBTYksGs0iEzaPeEvQ>
 <xmx:L97VZ_wwBY3LG6yoExQIwftrszEAVLq8NXNie-aOfsg7JXa_gYqxGA>
 <xmx:L97VZ9LUJdiaanvUtlWslMNMnsxd6svCnbzxEoJG1bFtxipJaPMAyw>
 <xmx:L97VZ_gKIfa3s1GF_VDoZckNBelONBS-3wFUx0E32EnTrpt4-PkzKpvz>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sat,
 15 Mar 2025 16:08:13 -0400 (EDT)
Message-ID: <e8fa7795-4827-4a14-bb7b-acefb273c907@HIDDEN>
Date: Sat, 15 Mar 2025 22:08:11 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
To: Sean Whitton <spwhitton@HIDDEN>
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN> <86jz8zkdby.fsf@HIDDEN>
 <87senlo4w5.fsf@HIDDEN> <86frjkevl0.fsf@HIDDEN>
 <87wmcwiazv.fsf@HIDDEN> <868qpbd9dk.fsf@HIDDEN>
 <87tt7y90mx.fsf@HIDDEN> <86ldta5nlb.fsf@HIDDEN>
 <87h63w2s9d.fsf@HIDDEN>
 <d247ce66-7f45-4af6-b851-1222f6a0d6fd@HIDDEN>
 <871puyrbse.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <871puyrbse.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
Cc: sbaugh@HIDDEN, Eli Zaretskii <eliz@HIDDEN>, 76769 <at> debbugs.gnu.org,
 juri@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: -1.0 (-)

On 15/03/2025 09:30, Sean Whitton wrote:

>> That one sounds a little odd, doesn't it? Marking something would be expected
>> to extend the set of files acted upon, and here it the opposite.
> 
> I see what you mean, but I'd argue it's still the most useful behaviour,
> especially after a confirmation prompt -- I'll make it clear what's
> going to happen in the prompt, e.g. "Unmark this directory in order to
> mark this single file?"

I've based my response expecting to set the new defcustom to t if the 
behavior makes sense.

Perhaps you have a point that with an extra prompt there's not much 
downside. And the upside, I suppose, is in saving time not having to go 
to the directory node (to "unmark"), or unmarking all the other entries 
under that directory. If the user intent is indeed to keep only some of 
the entries marked, not the whole dir.

The rest of the scenarios you described seem to make sense 
unconditionally, without extra prompt. Or might anyway.

> To put it another way, why would you want to mark that file if the
> directory is already marked?  Either it's an error, and you can just say
> 'n' to the prompt, or it's deliberate and it's because you want to mark
> that file for your next operation, whether or not you've noticed that
> you need to unmark the directory first.

Yeah, IME it might be an error because I would just be going through the 
items in VC-Dir, pressing 'm' to mark one after another - right now it 
ends at the first element after a dir, and it would start to work 
differently.

Anyway, I just wanted to voice a concern. Probably not a big deal, and 
it might help to test the changes in practice for a while.




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

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


Received: (at 76769) by debbugs.gnu.org; 15 Mar 2025 07:30:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 15 03:30:40 2025
Received: from localhost ([127.0.0.1]:38406 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttLyh-0005A7-Lw
	for submit <at> debbugs.gnu.org; Sat, 15 Mar 2025 03:30:40 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:60622)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1ttLyd-00059r-Sy
 for 76769 <at> debbugs.gnu.org; Sat, 15 Mar 2025 03:30:37 -0400
DKIM-Signature: a=rsa-sha256;
 b=Muw3o5LG2KgIbmZG4B/zcHZ25MIt2eN8rQm+D6M8EFhiWXR5aBvBJD3rUeP6bZwaKXkXp8SkbzVbGCDkseiN4Eszs+J3SFLXahrhS+L7qwaVroG365jihyVXHJaEcOjsdmEVZnkMEQw+givC8TSnkbSppLAFLvQsuZcXcfNnjZ9q6j2cDR19p4msYbMh9C+r9vDTuxgKALpr2+2mvWEBkaOFEHLMGd3PK+pDz/tFlEFsxjuvXTywr10gM5WHTelznrhWu+rRP0Tg5+KGnYJOFlSKiTZ64J91A0VQqAjzsifesppBSxuf4cHJhkrim5skgv8f/aGwYH2Zr1fF0ide0w==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=eSujJPyMJ0U5fWd2zrAalWdioZRIKbpSjTIxB6plq8g=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=MbOpEa2PBukkKFsRwhzaglEIOMoiAms+iQassegYFB2gIwcfEVWqLS97ZlhBjlutnvjF5P4U45Ti8mMcDOosFPOnN7W6EjRti0cSJxt6OHSqnGl77TCKydNORstmhtM5MPYAkk3iXqcO22BBSheJUnc27+gyDuMJxHrpcn2ZXjQ04GRN+SRSoQaLhDvyh1gC0Mp+agpntM/jIEpLugulg50PbFcnaocj28Of3ZjI3HXDb7AYW1qaE1qCe8Drv85fBpNdTiVgk32TXgc42pNiIODj3Tt/PGJuAUldQaDBHSlYi1CXtPbZcZxiuoGPGSlNTtRQ7nwaHnBpU3okf48oCA==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=eSujJPyMJ0U5fWd2zrAalWdioZRIKbpSjTIxB6plq8g=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 76769 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -2138658112; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sat, 15 Mar 2025 07:30:28 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id C657A7EE9FF; Sat, 15 Mar 2025 15:30:25 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
In-Reply-To: <d247ce66-7f45-4af6-b851-1222f6a0d6fd@HIDDEN>
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN> <86jz8zkdby.fsf@HIDDEN>
 <87senlo4w5.fsf@HIDDEN> <86frjkevl0.fsf@HIDDEN>
 <87wmcwiazv.fsf@HIDDEN> <868qpbd9dk.fsf@HIDDEN>
 <87tt7y90mx.fsf@HIDDEN> <86ldta5nlb.fsf@HIDDEN>
 <87h63w2s9d.fsf@HIDDEN>
 <d247ce66-7f45-4af6-b851-1222f6a0d6fd@HIDDEN>
Date: Sat, 15 Mar 2025 15:30:25 +0800
Message-ID: <871puyrbse.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
Cc: sbaugh@HIDDEN, Eli Zaretskii <eliz@HIDDEN>, 76769 <at> debbugs.gnu.org,
 juri@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: -1.0 (-)

Hello,

On Sat 15 Mar 2025 at 03:18am +02, Dmitry Gutov wrote:

> On 14/03/2025 05:41, Sean Whitton wrote:
>
>> - When you try to mark a file but you can't because the directory is
>>    already marked, unmark the directory first.
>
> That one sounds a little odd, doesn't it? Marking something would be expected
> to extend the set of files acted upon, and here it the opposite.

I see what you mean, but I'd argue it's still the most useful behaviour,
especially after a confirmation prompt -- I'll make it clear what's
going to happen in the prompt, e.g. "Unmark this directory in order to
mark this single file?"

To put it another way, why would you want to mark that file if the
directory is already marked?  Either it's an error, and you can just say
'n' to the prompt, or it's deliberate and it's because you want to mark
that file for your next operation, whether or not you've noticed that
you need to unmark the directory first.

-- 
Sean Whitton




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

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


Received: (at 76769) by debbugs.gnu.org; 15 Mar 2025 01:18:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 14 21:18:43 2025
Received: from localhost ([127.0.0.1]:36907 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ttGAl-0002KK-5X
	for submit <at> debbugs.gnu.org; Fri, 14 Mar 2025 21:18:43 -0400
Received: from fout-a6-smtp.messagingengine.com ([103.168.172.149]:35411)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1ttGAi-0002Jz-U3
 for 76769 <at> debbugs.gnu.org; Fri, 14 Mar 2025 21:18:41 -0400
Received: from phl-compute-07.internal (phl-compute-07.phl.internal
 [10.202.2.47])
 by mailfout.phl.internal (Postfix) with ESMTP id 7612C1382D28;
 Fri, 14 Mar 2025 21:18:34 -0400 (EDT)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-07.internal (MEProxy); Fri, 14 Mar 2025 21:18:34 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :content-transfer-encoding:content-type:content-type:date:date
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm3; t=1742001514;
 x=1742087914; bh=U0xKhvGYIfsTLCWbJup6wxkw7V0W4CmZUIW12Jy6UZs=; b=
 QWuueiENFmCnIMm7zwdY+u2HBFBWf+vEhfT3npiQqJW2CBry0aCVVGb9oDB9bcNB
 ARXK/SvRd7xuVUPca8UZmulWWtlmUy5QXGK7WHwknhAqyX73MSryQL+M6RvhwDgB
 3sFivmj8cvsjgvekwjXVpSGCDcmhUY+u7X2dOar96AlW/pqBK3NrZxJc5cU4ulS7
 KC5VVUgrNO1F+K8LotJ/ZsX2CtCwufhGgZFgbu6Tehv0WrMIRD4w9qxmRj3Hu3lw
 tJEae0SOU/SlWwTZKzwMHrvNjwGHYRQoz6xR5PPDe6ssJxT+g1WZm0uXvrCyYCoP
 5CGeVc1tet1Hp5U/10We7Q==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:content-transfer-encoding:content-type
 :content-type:date:date:feedback-id:feedback-id:from:from
 :in-reply-to:in-reply-to:message-id:mime-version:references
 :reply-to:subject:subject:to:to:x-me-proxy:x-me-sender
 :x-me-sender:x-sasl-enc; s=fm1; t=1742001514; x=1742087914; bh=U
 0xKhvGYIfsTLCWbJup6wxkw7V0W4CmZUIW12Jy6UZs=; b=dsmkD2TyXaRP3l520
 KZthb+YDTOHUeeWMIJpUPDu+c/oekIGgrC6mV5SQ9B/iDcYAPsBE1w1htgrYHZRx
 bnOG9cJZB83JUYQh7EqZxiLA+mAJnItDjrGr8/DEXJ2ZqDE3eDttDb8o6k2W00kP
 Ib29Cn4cAP1ty6ZJl6VDfUHjJXfKS1uCXaK7eBnsd8TULcxAQZTlznAE86GqA53A
 fg3TMSuLyu+fwer9bnDhKDPSEjZeObxIXHotyEe2SZiDMOco446cmXTGG3S2VdWn
 G7pgujraojqonjZozxmcc5921onFjpQEjGczFMMv8eVJfdnArXU0ntxwMsUGBeVz
 QhxeQ==
X-ME-Sender: <xms:aNXUZ47mrP5_mNp9cUMfwgkCDI5p8PJ8U4rR0M1kKiI_63bLDHJcoA>
 <xme:aNXUZ57an73NI_BIewZRlWQYX6yrivdYz0Vb7fSQ01IU5jxBW9BWvgSLcBuwCt7MN
 hu6feL8pZQcE2hrj9k>
X-ME-Received: <xmr:aNXUZ3dhguCjF3d0XStZFHvxwkjNW08Bpo2IhMPauKzle6-5u8qbtwQ9wGbpET_K1Gpy>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddufedvfeejucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv
 pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih
 gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvfhfhjggtgfesthejredttddv
 jeenucfhrhhomhepffhmihhtrhihucfiuhhtohhvuceoughmihhtrhihsehguhhtohhvrd
 guvghvqeenucggtffrrghtthgvrhhnpedthfeuvddtveelgeeuleevvdejveehffevveeh
 vdeuffdtfefhvdeugefgtefgtdenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmh
 epmhgrihhlfhhrohhmpegumhhithhrhiesghhuthhovhdruggvvhdpnhgspghrtghpthht
 ohephedpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepshhpfihhihhtthhonhessh
 hpfihhihhtthhonhdrnhgrmhgvpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpdhr
 tghpthhtohepjeeijeeileesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhope
 hjuhhriheslhhinhhkohhvrdhnvghtpdhrtghpthhtohepshgsrghughhhsehjrghnvghs
 thhrvggvthdrtghomh
X-ME-Proxy: <xmx:aNXUZ9LVqwvCf8zbP4H8hGb7FRoPz3IWZD1gnKyEQleowbHpKXmHaQ>
 <xmx:aNXUZ8J6INBDT9jGuHuyr0R3CkVfoAICrYnUgskw91HEQuPMJ11VtQ>
 <xmx:aNXUZ-ws3bNlTxn4vb4tpeZI1QpcED7QPaiR0X2WYVLTJLig2Z3zUA>
 <xmx:aNXUZwK6tc99jkjz7Yi0sMpYJCakWCpkwp32Qfu9aDwNrFXQpHNw5g>
 <xmx:atXUZ2j-JYnHV4e1aaYKIjQ7x0muDdhp5OrwZCh1417FytZVpX0GzU6F>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 14 Mar 2025 21:18:31 -0400 (EDT)
Message-ID: <d247ce66-7f45-4af6-b851-1222f6a0d6fd@HIDDEN>
Date: Sat, 15 Mar 2025 03:18:29 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
To: Sean Whitton <spwhitton@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>,
 76769 <at> debbugs.gnu.org, juri@HIDDEN, sbaugh@HIDDEN
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN> <86jz8zkdby.fsf@HIDDEN>
 <87senlo4w5.fsf@HIDDEN> <86frjkevl0.fsf@HIDDEN>
 <87wmcwiazv.fsf@HIDDEN> <868qpbd9dk.fsf@HIDDEN>
 <87tt7y90mx.fsf@HIDDEN> <86ldta5nlb.fsf@HIDDEN>
 <87h63w2s9d.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <87h63w2s9d.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
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 (-)

On 14/03/2025 05:41, Sean Whitton wrote:

> - When you try to mark a file but you can't because the directory is
>    already marked, unmark the directory first.

That one sounds a little odd, doesn't it? Marking something would be 
expected to extend the set of files acted upon, and here it the opposite.

> - When you use unmark on a file that is not explicitly marked but its
>    directory is marked, unmark the directory and mark all files under it
>    except the current one.
> 
> - When you try to mark a directory but you can't because a file under it
>    is already marked, unmark all files under it and mark the directory,
>    instead.
> 
> - When you use unmark on a directory that is not marked but has some
>    files under it marked, unmark all of those.

All these sound great.




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

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


Received: (at 76769) by debbugs.gnu.org; 14 Mar 2025 08:24:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 14 04:24:26 2025
Received: from localhost ([127.0.0.1]:60026 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tt0LC-0004Y8-7q
	for submit <at> debbugs.gnu.org; Fri, 14 Mar 2025 04:24:26 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47408)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tt0L8-0004Xl-S7
 for 76769 <at> debbugs.gnu.org; Fri, 14 Mar 2025 04:24:23 -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 1tt0L0-0004lu-9t; Fri, 14 Mar 2025 04:24:14 -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=EJcJKG6C3n/gUGpm3RQIWEme6zI/eo+5huppTPGAdR4=; b=DN/G5XUSrgek
 VZ1Znt1MvlDy8f49tzJK0KRT/aPpdGlSEg4rycqRJEu2tw9kijgptQfGba5YlHw1qrVNMrlItlbYz
 1TAP9VIEwBBaN7//gYP6rVedLfpvgBJ3Qy0AFQaX2UWAAG7XmBFgz+7ppTQSLnn04XvvQfMeVTq+/
 uP885W7loxEkoCVDUMEp1foNhMSWl5X9xowDyOnyED4S9zDFGZOZfTTOtEIvivaQWv7E8XhrXeBpE
 Jca2eA/f++N38k93Bi44KGTcNLDV+ukz06stqjEq++4WVsgZVqjwBi8x3PTPWsF2UVMc46MoaVltR
 5uBajAE7OWF5WG2GrtHF8A==;
Date: Fri, 14 Mar 2025 10:24:11 +0200
Message-Id: <86tt7wyq8k.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87h63w2s9d.fsf@HIDDEN> (message from Sean
 Whitton on Fri, 14 Mar 2025 11:41:34 +0800)
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN> <86jz8zkdby.fsf@HIDDEN>
 <87senlo4w5.fsf@HIDDEN> <86frjkevl0.fsf@HIDDEN>
 <87wmcwiazv.fsf@HIDDEN> <868qpbd9dk.fsf@HIDDEN>
 <87tt7y90mx.fsf@HIDDEN> <86ldta5nlb.fsf@HIDDEN>
 <87h63w2s9d.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76769
Cc: dmitry@HIDDEN, 76769 <at> debbugs.gnu.org, sbaugh@HIDDEN,
 juri@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 (---)

> From: Sean Whitton <spwhitton@HIDDEN>
> Date: Fri, 14 Mar 2025 11:41:34 +0800
> 
> Ah, these are good questions.  Here is a revised proposal:
> 
> A defcustom with values nil, 'ask, t.  nil is the current behaviour.
> 'ask means to do the follow things after a y/n prompt, t means to do
> them unconditionally:
> 
> - When you try to mark a file but you can't because the directory is
>   already marked, unmark the directory first.
> 
> - When you use unmark on a file that is not explicitly marked but its
>   directory is marked, unmark the directory and mark all files under it
>   except the current one.
> 
> - When you try to mark a directory but you can't because a file under it
>   is already marked, unmark all files under it and mark the directory,
>   instead.
> 
> - When you use unmark on a directory that is not marked but has some
>   files under it marked, unmark all of those.
> 
> Plus fixing dired-vc-next-action.

SGTM, thanks.




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

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


Received: (at 76769) by debbugs.gnu.org; 14 Mar 2025 03:41:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 13 23:41:46 2025
Received: from localhost ([127.0.0.1]:59231 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tsvvd-0002XO-Mh
	for submit <at> debbugs.gnu.org; Thu, 13 Mar 2025 23:41:46 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:38596)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1tsvva-0002X6-SZ
 for 76769 <at> debbugs.gnu.org; Thu, 13 Mar 2025 23:41:43 -0400
DKIM-Signature: a=rsa-sha256;
 b=LykKq5SRuFMnmx0uBtTno6AJDzCZagpvwXtjx90/NvmQI2hoXamu/EDhAM6BLTJvzsL/FGdBmixrq6lp5r1mygBXxNbddNAaJERFhR0XvmjFFdo2qyuSLhdTel95k0cyRT1F49WDqWcqVqeBWTPgkytVypZWJFPuLguiUwP8F+slZyILaCDA1PQSK2KA8WZ+Nudh5FT5unmFsnNFBeud4G1SPSYzquzCzAsGxgR82ZGpwwSvb3HCID6vyLPMaPS/Ffe5m2CDXsuP6KdcDq+2yvWavzeh4ikv9imGM3tT0B0QWxlbj05bKbRn7cA01IMyD/XSZkm840NVUfiSZAUCmQ==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=tapxcbz3m+zbcnfhvTs9hsrjewqvBMY5IsP4mA1PuxM=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=GSHRTxx6n5szPlk/LAgJmxbqbnS0NNvR6EoB7xKjyPg6ogf/VWbrd4Hd8m5LKr6hos4LSOzNJ8JuuttUkbWWXnyeWVENbxRr4dFSV2C294nS1q3SnHxQTuHbDpdAaZ0/hhdRNS7n68TrKB+umrNWwIbECIWy9GriXSfQJ4zj0p+91ex9BIPieJsT5XdiVdCPbKHYSTpD2uVC++5lnfZLSgHyJRYQFGGkGWi4eiMZQczJT0ymj0T3VYKZyNQ7m7zkWIjHjdXJjxQn/G8QCorifHikzlQ4ScofzJeHr8ma52Tz1HjWalu6siYkgWFgLDBr9cValRRBD66akck/JkJZtw==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=tapxcbz3m+zbcnfhvTs9hsrjewqvBMY5IsP4mA1PuxM=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 76769 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 819318470; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Fri, 14 Mar 2025 03:41:36 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 40AF97EE68C; Fri, 14 Mar 2025 11:41:34 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>, dmitry@HIDDEN,  76769 <at> debbugs.gnu.org,
 juri@HIDDEN,  sbaugh@HIDDEN
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
In-Reply-To: <86ldta5nlb.fsf@HIDDEN>
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN> <86jz8zkdby.fsf@HIDDEN>
 <87senlo4w5.fsf@HIDDEN> <86frjkevl0.fsf@HIDDEN>
 <87wmcwiazv.fsf@HIDDEN> <868qpbd9dk.fsf@HIDDEN>
 <87tt7y90mx.fsf@HIDDEN> <86ldta5nlb.fsf@HIDDEN>
Date: Fri, 14 Mar 2025 11:41:34 +0800
Message-ID: <87h63w2s9d.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
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 (-)

Hello,

On Wed 12 Mar 2025 at 04:29pm +02, Eli Zaretskii wrote:

>> - When you try to mark a file but you can't because the directory is
>>   already marked, unmark the directory first.
>
> I'm asking: what if I want to unmark a file whose directory is already
> unmarked?
> [...]
>
>> - When you try to mark a directory but you can't because a file under it
>>   is already marked, unmark all files under it and mark the directory,
>>   instead.
>
> I'm asking: what if I want to unmark a directory which has a file
> under it already unmarked?

Ah, these are good questions.  Here is a revised proposal:

A defcustom with values nil, 'ask, t.  nil is the current behaviour.
'ask means to do the follow things after a y/n prompt, t means to do
them unconditionally:

- When you try to mark a file but you can't because the directory is
  already marked, unmark the directory first.

- When you use unmark on a file that is not explicitly marked but its
  directory is marked, unmark the directory and mark all files under it
  except the current one.

- When you try to mark a directory but you can't because a file under it
  is already marked, unmark all files under it and mark the directory,
  instead.

- When you use unmark on a directory that is not marked but has some
  files under it marked, unmark all of those.

Plus fixing dired-vc-next-action.

-- 
Sean Whitton




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

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


Received: (at 76769) by debbugs.gnu.org; 12 Mar 2025 14:29:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 12 10:29:54 2025
Received: from localhost ([127.0.0.1]:51202 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tsN5l-0002aM-SN
	for submit <at> debbugs.gnu.org; Wed, 12 Mar 2025 10:29:54 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:54754)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tsN5h-0002a2-7V
 for 76769 <at> debbugs.gnu.org; Wed, 12 Mar 2025 10:29:50 -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 1tsN5Z-0003Sw-D9; Wed, 12 Mar 2025 10:29: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=v43cyG0p3IkB9JBhbg4L/quUHK7wOE9LbYCHdSIm9a0=; b=E0S1Gmy9CRP3
 PS4YUFWu2iy3vulptq7xS2acj0BPjBRdEjSU4B0sEKzqlAczvvw8RFUZxi27ucK4zA2sk9Td7VkOm
 x7e4/trYJ7i8mjnrfZetVgx42+3Z5ysoeQ5ja0vtw3F4CnguPWKJkgDNjZbFrJIzOasy8ismOkiYX
 Cttw37CeruUVxpzGHzxgtCLKpm1TK0lMyDgluSr43tg7G8u8va7dcAdEoL1CYIEX/VMCOE69uRNvo
 ydrRDrG7mytSzaXM9d8wtCMnp7NDR3Lm+E4OJEo3KvNqn+QllLtF7eM2+dSjhOLjjl86NB6DCzigf
 666jWDpbaDjIJZxaaT8Tig==;
Date: Wed, 12 Mar 2025 16:29:36 +0200
Message-Id: <86ldta5nlb.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87tt7y90mx.fsf@HIDDEN> (message from Sean
 Whitton on Wed, 12 Mar 2025 15:19:34 +0800)
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN> <86jz8zkdby.fsf@HIDDEN>
 <87senlo4w5.fsf@HIDDEN> <86frjkevl0.fsf@HIDDEN>
 <87wmcwiazv.fsf@HIDDEN> <868qpbd9dk.fsf@HIDDEN>
 <87tt7y90mx.fsf@HIDDEN>
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 76769
Cc: dmitry@HIDDEN, 76769 <at> debbugs.gnu.org, juri@HIDDEN,
 sbaugh@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: -2.6 (--)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: dmitry@HIDDEN,  76769 <at> debbugs.gnu.org,  sbaugh@HIDDEN,
>   juri@HIDDEN
> Date: Wed, 12 Mar 2025 15:19:34 +0800
> 
> Hello,
> 
> On Tue 11 Mar 2025 at 02:44pm +02, Eli Zaretskii wrote:
> 
> > The toggle part is usually very handy.
> 
> I'm not sure what you mean here.  Do you mean these two features:
> 
> --8<---------------cut here---------------start------------->8---
> U - if the cursor is on a file: unmark all the files with the same state
>       as the current file
>   - if the cursor is on a directory: unmark all child files
> --8<---------------cut here---------------end--------------->8---

No.  You said:

> - When you try to mark a file but you can't because the directory is
>   already marked, unmark the directory first.

I'm asking: what if I want to unmark a file whose directory is already
unmarked?

You said:

> - When you try to mark a directory but you can't because a file under it
>   is already marked, unmark all files under it and mark the directory,
>   instead.

I'm asking: what if I want to unmark a directory which has a file
under it already unmarked?




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

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


Received: (at 76769) by debbugs.gnu.org; 12 Mar 2025 07:19:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 12 03:19:48 2025
Received: from localhost ([127.0.0.1]:47139 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tsGNX-0003IU-LJ
	for submit <at> debbugs.gnu.org; Wed, 12 Mar 2025 03:19:47 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:47490)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1tsGNV-0003IC-Nb
 for 76769 <at> debbugs.gnu.org; Wed, 12 Mar 2025 03:19:46 -0400
DKIM-Signature: a=rsa-sha256;
 b=TPCBc00uRLk5k20LzANepBSg+2cVRYQ2L83mbJYLDezaqAxzc21GBXtAwg9MatQ8SnksJy4aySx7gC0aDDuKhBAkxUzUbY4Xdlj77wIOjnTTfXBbw5O6mKs5LG4Z3klznHb3nejWEs5S7B2obmCW2v2JU7Wy41V/ITqr1onG7s/rxBHeN8Z8OgBTsDVWMJrqThdYBr1t6e+XxtAWf9VyvqfCmaybE1UMguO3+4Maad7s9WWXLZDAdzSvXxsX6uwYzDh72YMWwLYf7tzQRdmQVzTHF9OEKcMacwQMa/sDt/dwibik/p3RXpx9mm3moOCNtbz2QjSNbv59uI6IsofPYw==;
 s=purelymail1; d=spwhitton.name; v=1;
 bh=vCDWbXpGRx7BgpJRWJewZTTm9MBJMyJHAEOz4Ejo3aA=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=kp8HmyIostNPCdBoolDjB4VdlVQV4hSa4ThmqGOYFbcUz0g2GOszWNuzdwH8hiSxr2qyf0x0FmCJyh1UMfWuCW8q83LxaPOwA2v8ii96uRoaRzBCKTnhPISs2ecev+4uyvKH3Gf6hEKERVD3GxGDEuqud4vo64JlrVcarc3HXY7fVLqi3SMenQufZ0cVSp/9hNHpa3UwnxoosqkhxGcTxFk5lNvkzsfvkTMgj03EB9iz4uoubZBsayzEIOWwAS5LtKyWas12j1naTgvCXzDArESRAqeMx3AMpsDkdZSQpZq6XtuDj8cSKUpjWEq4JCOLotyqBh/9EVCXy9Gnhr/AxA==;
 s=purelymail1; d=purelymail.com; v=1;
 bh=vCDWbXpGRx7BgpJRWJewZTTm9MBJMyJHAEOz4Ejo3aA=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 76769 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1024149014; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Wed, 12 Mar 2025 07:19:37 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 7957E7EE0C4; Wed, 12 Mar 2025 15:19:34 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
In-Reply-To: <868qpbd9dk.fsf@HIDDEN>
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN> <86jz8zkdby.fsf@HIDDEN>
 <87senlo4w5.fsf@HIDDEN> <86frjkevl0.fsf@HIDDEN>
 <87wmcwiazv.fsf@HIDDEN> <868qpbd9dk.fsf@HIDDEN>
Date: Wed, 12 Mar 2025 15:19:34 +0800
Message-ID: <87tt7y90mx.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
Cc: dmitry@HIDDEN, 76769 <at> debbugs.gnu.org, juri@HIDDEN,
 sbaugh@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: -1.0 (-)

Hello,

On Tue 11 Mar 2025 at 02:44pm +02, Eli Zaretskii wrote:

> The toggle part is usually very handy.

I'm not sure what you mean here.  Do you mean these two features:

--8<---------------cut here---------------start------------->8---
U - if the cursor is on a file: unmark all the files with the same state
      as the current file
  - if the cursor is on a directory: unmark all child files
--8<---------------cut here---------------end--------------->8---

-- 
Sean Whitton




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

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


Received: (at 76769) by debbugs.gnu.org; 11 Mar 2025 12:45:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 11 08:45:14 2025
Received: from localhost ([127.0.0.1]:42116 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tryyt-0005Wv-54
	for submit <at> debbugs.gnu.org; Tue, 11 Mar 2025 08:45:14 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:47028)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tryyp-0005RK-AH
 for 76769 <at> debbugs.gnu.org; Tue, 11 Mar 2025 08:45:08 -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 1tryyg-0005aM-6P; Tue, 11 Mar 2025 08:44:59 -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=7jBGBRMtFRz9kC7OMW4ezFNPNYUedub47F0HMS1heqM=; b=kb1N8LGmajEc
 Pp7wxmwD7nxUm20wlXh/NNeG85ycHTXZzxIGEgLhH5REgLJH5k2Uipp+/TcCxRLR/gL7u4Zv4KA/F
 ThhRTFqlrDPWxc8wq1vpQkkogXteFpLbaRzSSlTR7UAdhCpeSL+lC7mtBb5URQKPwCO5+k2kE4deH
 AKBWcOgtmwxZrqqktkLUuP+yKMF0auD9wv+TxfaCWPBapSkI2rrGmAyEl3EvrFKy21dDbHYhK+wcM
 9T5SkwdCRYi1FtLXRg9Wbp/zbvN6Q2RUjKCTszuc+u9iEEhGlZkhPXyV5Ujp9ny71WxNLWAzDrYoP
 tDhcTbQAODNIRvPcfQHPqA==;
Date: Tue, 11 Mar 2025 14:44:55 +0200
Message-Id: <868qpbd9dk.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87wmcwiazv.fsf@HIDDEN> (message from Sean
 Whitton on Tue, 11 Mar 2025 09:58:44 +0800)
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN> <86jz8zkdby.fsf@HIDDEN>
 <87senlo4w5.fsf@HIDDEN> <86frjkevl0.fsf@HIDDEN>
 <87wmcwiazv.fsf@HIDDEN>
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 76769
Cc: dmitry@HIDDEN, 76769 <at> debbugs.gnu.org, sbaugh@HIDDEN,
 juri@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: -2.6 (--)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: dmitry@HIDDEN,  76769 <at> debbugs.gnu.org,  juri@HIDDEN,
>   sbaugh@HIDDEN
> Date: Tue, 11 Mar 2025 09:58:44 +0800
> 
> Hello,
> 
> On Mon 10 Mar 2025 at 05:47pm +02, Eli Zaretskii wrote:
> 
> > So one will be able to mark files easily and conveniently, using these
> > new features, but will be unable to unmark files with the same
> > convenience?
> 
> No, unmarking is already perfectly convenient, I think?
> 
> Could you perhaps describe the ways in which you find unmarking
> inconvenient, or you think our users do?

The toggle part is usually very handy.




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

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


Received: (at 76769) by debbugs.gnu.org; 11 Mar 2025 01:58:58 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 10 21:58:58 2025
Received: from localhost ([127.0.0.1]:40619 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1trotV-0001JS-Nb
	for submit <at> debbugs.gnu.org; Mon, 10 Mar 2025 21:58:57 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:44090)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1trotU-0001JA-3L
 for 76769 <at> debbugs.gnu.org; Mon, 10 Mar 2025 21:58:56 -0400
DKIM-Signature: a=rsa-sha256;
 b=FLULWloFijeDkWj7sGRxBwrGu29/gTHDoNRBu92MA5LU45xW/Nlm47Y0Yy6nOlxqQEjbcDwodWKzGEhE0jn40Z8Xwm6WLt359OIv/CS4ZIxYOmPHo/IiYkI2eHJmxVLteYi8gRJbyRUPtp7CBeoOp0iUXMS5TjQqQZLOD5F9qld94PfLnlPf7zr2r2Med8Rx5mHQmgvL4paKBEVUQrJXmFmJucVqjG4FELSPyLuqdqanWYoOT2cIGaRDCg8na9XRAwqvBmjc+E/iRhgq8pOC6Q8Fv5c7Rzem3wioIttzc8O1qTIgSJAKfbV+flveIiwLuZP/QN+mCzQ+G7yQPPvB9Q==;
 s=purelymail3; d=spwhitton.name; v=1;
 bh=FacJ/yaLbZTm7a+1a8GzdpOEpJkz2TYHA0TOA6uVbKg=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=nCUla3Yp8vlKoJNhHKi0V/9i+oYH2tx5RKbj91I2xr1rln55vDRX+Xt0ZlfLU/5N8naMOuGZD0AZo/jTHoiTZFtg60ngQlJH1tRva09m2u6n66kOry87RHiGK8OZrJcCXqsDY5L4U0X6WoT7Os+NqjHtCzb5PCg0BlvDqconmBwiXGc4fIANn8JMnI8HgQ+svC21KkX+TjEI9gE+CMK6OSSsQaGDCqmEELMzTe0IFzmKwpmhJLiJi3UTBdT0BFYzctKi1GRMndc7rU9jxyUg2twDu3SA1c32GhzNlrouczauz1eXg0wu56MYQ5tCuLVyrK70YQ83pPXikjnmwHRnRg==;
 s=purelymail3; d=purelymail.com; v=1;
 bh=FacJ/yaLbZTm7a+1a8GzdpOEpJkz2TYHA0TOA6uVbKg=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 76769 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1841877014; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Tue, 11 Mar 2025 01:58:46 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 7ED367E1AC3; Tue, 11 Mar 2025 09:58:44 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
In-Reply-To: <86frjkevl0.fsf@HIDDEN>
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN> <86jz8zkdby.fsf@HIDDEN>
 <87senlo4w5.fsf@HIDDEN> <86frjkevl0.fsf@HIDDEN>
Date: Tue, 11 Mar 2025 09:58:44 +0800
Message-ID: <87wmcwiazv.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
Cc: dmitry@HIDDEN, 76769 <at> debbugs.gnu.org, sbaugh@HIDDEN,
 juri@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: -1.0 (-)

Hello,

On Mon 10 Mar 2025 at 05:47pm +02, Eli Zaretskii wrote:

> So one will be able to mark files easily and conveniently, using these
> new features, but will be unable to unmark files with the same
> convenience?

No, unmarking is already perfectly convenient, I think?

Could you perhaps describe the ways in which you find unmarking
inconvenient, or you think our users do?

-- 
Sean Whitton




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

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


Received: (at 76769) by debbugs.gnu.org; 10 Mar 2025 15:48:10 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 10 11:48:10 2025
Received: from localhost ([127.0.0.1]:39373 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1trfMQ-0007kz-8z
	for submit <at> debbugs.gnu.org; Mon, 10 Mar 2025 11:48:10 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:60768)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1trfMN-0007kF-BS
 for 76769 <at> debbugs.gnu.org; Mon, 10 Mar 2025 11:48:08 -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 1trfMD-0004cQ-Ly; Mon, 10 Mar 2025 11:47:57 -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=PGwptmyvPqyGDnhkXpJbuAiIu9HRFmw7fpz50brjqiI=; b=keSe0T8BNe+a
 /xFolMzkLWEAgGekdU+ek+ahQHH5XOqTnlJH4PZLbNz611NY+i14hVrNZ8sXJKnlRzpI/8BePLbsL
 UCKColhGRxa42MUoQh9zf1HZeuDsv58+f1PWR1iSnUf82zKMb1hmIlOuGwLNZ0O59+VUQVRVh9zSI
 XCn3lFpYuRN8ATeLhLPcPermijauQDx+fRqljWZm9mUtFguamR8n8BQR7orxjtd2YLPCyCcJr2Ybn
 Fz/CbE2TE3RDK5xMiowXHZwwyNSx2D6vEWdzqRKcUTqhzbXQ6MVkmIfKaGoaxWwbw9umkYhsu0BDT
 zWsagXVdRQrlgN6qHNTzFQ==;
Date: Mon, 10 Mar 2025 17:47:39 +0200
Message-Id: <86frjkevl0.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87senlo4w5.fsf@HIDDEN> (message from Sean
 Whitton on Mon, 10 Mar 2025 13:01:46 +0800)
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN> <86jz8zkdby.fsf@HIDDEN>
 <87senlo4w5.fsf@HIDDEN>
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 76769
Cc: dmitry@HIDDEN, 76769 <at> debbugs.gnu.org, juri@HIDDEN,
 sbaugh@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: -2.6 (--)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: dmitry@HIDDEN,  76769 <at> debbugs.gnu.org,  sbaugh@HIDDEN,
>   juri@HIDDEN
> Date: Mon, 10 Mar 2025 13:01:46 +0800
> 
> On Sat 08 Mar 2025 at 12:48pm +02, Eli Zaretskii wrote:
> 
> >> From: Sean Whitton <spwhitton@HIDDEN>
> >> Date: Sat, 08 Mar 2025 10:50:01 +0800
> >>
> >> Here's an alternative proposal that sits only at the UI level.
> >>
> >> A defcustom with values nil, 'ask, t.  nil is the current behaviour.
> >> 'ask means to do the follow things after a y/n prompt, t means to do
> >> them unconditionally:
> >>
> >> - When you try to mark a file but you can't because the directory is
> >>   already marked, unmark the directory first.
> >>
> >> - When you try to mark a directory but you can't because a file under it
> >>   is already marked, unmark all files under it and mark the directory,
> >>   instead.
> >
> > What about unmarking -- how will that work in your proposal?
> 
> Just the same as it does now, I think.

So one will be able to mark files easily and conveniently, using these
new features, but will be unable to unmark files with the same
convenience?




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

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


Received: (at 76769) by debbugs.gnu.org; 10 Mar 2025 05:01:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 10 01:01:59 2025
Received: from localhost ([127.0.0.1]:35869 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1trVH5-0000gr-7S
	for submit <at> debbugs.gnu.org; Mon, 10 Mar 2025 01:01:59 -0400
Received: from sendmail.purelymail.com ([34.202.193.197]:53474)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1trVH2-0000ge-RW
 for 76769 <at> debbugs.gnu.org; Mon, 10 Mar 2025 01:01:57 -0400
DKIM-Signature: a=rsa-sha256;
 b=RXWqRm/ANTIZLqclFQsaY2fTLGYMHhCqn7FrNpW2BSLlTNTKwskNGgnotkuBlqTRMcC9CpvBj7/Sl00pRUVQ5tV11k30B8sRgXYnSNT/FLajMy2WOm0Nja2/YTBVvelJnlMDsQdyvruiZ+GY1SzAc7XnwNSZJwIIsxPT/C+dABoGTwjmpFRHgv8Eo/NjdTvH93pQSbb9MG7v/pG6YRVhYxCzuovfg1uEaAWA9QUKyiJxSB8yv/EVzq5j2y7/r32uphFrWw+bqRn9j21oysRTb5XcpJh+Gmg5ElmhlvEWCxKMSyGckhcz52WRpgGIuCQuGiL1lJK7Ses7D9z8aDA9Zw==;
 s=purelymail3; d=spwhitton.name; v=1;
 bh=iU+6siyeRFfMF2WCaZLZQgG7FrpMvMRPRQ8VVPembEE=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=uTSa2f7YTroY/RkMLNVUjmpqC4HumYN2WFEQhJL11KCw7ZTdvT2eaXSeEHqmXdduiJX9kHcg6FDmOovgvmDIHIPoiTosc24rKS7f1vcWMalMAgTn29BKgNDZu7fA5nX7akTRzxjT9PbWxmSA8Mt5Z5faPWRDDzApTX1YBcz66uPZhSNTCW1wti5MY4A8eoFZiscWc2FJEXjK6KTqxMlGpLlxrJad8dFoAI6dZ6MGw9KJLsC86Ch57RYfyk5TjzDzphsQVi0EkkTSDyp1aYvrZXLu2QkRqToRhet0VRdVA7fU5j2sEh90gCjdl8gg+fSWaAQmsikf+iCXPaTs9VEYfQ==;
 s=purelymail3; d=purelymail.com; v=1;
 bh=iU+6siyeRFfMF2WCaZLZQgG7FrpMvMRPRQ8VVPembEE=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 76769 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -1619676641; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Mon, 10 Mar 2025 05:01:48 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 83A227E10FB; Mon, 10 Mar 2025 13:01:46 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
In-Reply-To: <86jz8zkdby.fsf@HIDDEN>
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN> <86jz8zkdby.fsf@HIDDEN>
Date: Mon, 10 Mar 2025 13:01:46 +0800
Message-ID: <87senlo4w5.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
Cc: dmitry@HIDDEN, 76769 <at> debbugs.gnu.org, juri@HIDDEN,
 sbaugh@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: -1.0 (-)

Hello,

On Sat 08 Mar 2025 at 12:48pm +02, Eli Zaretskii wrote:

>> From: Sean Whitton <spwhitton@HIDDEN>
>> Date: Sat, 08 Mar 2025 10:50:01 +0800
>>
>> Here's an alternative proposal that sits only at the UI level.
>>
>> A defcustom with values nil, 'ask, t.  nil is the current behaviour.
>> 'ask means to do the follow things after a y/n prompt, t means to do
>> them unconditionally:
>>
>> - When you try to mark a file but you can't because the directory is
>>   already marked, unmark the directory first.
>>
>> - When you try to mark a directory but you can't because a file under it
>>   is already marked, unmark all files under it and mark the directory,
>>   instead.
>
> What about unmarking -- how will that work in your proposal?

Just the same as it does now, I think.

-- 
Sean Whitton




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

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


Received: (at 76769) by debbugs.gnu.org; 8 Mar 2025 10:48:44 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 08 05:48:44 2025
Received: from localhost ([127.0.0.1]:53040 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tqrjY-0002jg-Gm
	for submit <at> debbugs.gnu.org; Sat, 08 Mar 2025 05:48:44 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:59132)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tqrjW-0002jT-NP
 for 76769 <at> debbugs.gnu.org; Sat, 08 Mar 2025 05:48:43 -0500
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 1tqrjR-00044i-3n; Sat, 08 Mar 2025 05:48:37 -0500
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=AZVYMtofFdqsw/p7/OvxuGUEvqWWyuaWU6jsvIvrJHI=; b=cNTuVQYN0Nzu
 Popn40/0soqeqSrb9uvGKSXV7ZI4F7lGlHDg/owQ264EKOpoq8SwUogyzlccPhU6xkFY4jl6KWPdO
 bCfXKXo8dlssl5aUbulL3zLrSxdPN6CEmcfRF1ttN6Fw8ciesMCm6qV21RDKra9YCWc1LZx7nd8zE
 WnIj/yCzJup73D9sUvcgkIScMcQ9183Y5RMgY2Ngav/33mtc2zxmmSDZJUwSXpux1eltgceqcj/ia
 I9uecS0wfawxo9klYZz+Dvf9jV9Z+2rl1HH1CL+qVnkEEScznbREue3Rf5xBU2tTkE17Err8veG9u
 7q9sxt6yV+9jPGQSF962Ag==;
Date: Sat, 08 Mar 2025 12:48:33 +0200
Message-Id: <86jz8zkdby.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87ldtgnsme.fsf@HIDDEN> (message from Sean
 Whitton on Sat, 08 Mar 2025 10:50:01 +0800)
Subject: Re: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
References: <875xkmvmk4.fsf@HIDDEN>
 <87ldtgnsme.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 76769
Cc: dmitry@HIDDEN, 76769 <at> debbugs.gnu.org, sbaugh@HIDDEN,
 juri@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 (---)

> From: Sean Whitton <spwhitton@HIDDEN>
> Date: Sat, 08 Mar 2025 10:50:01 +0800
> 
> Here's an alternative proposal that sits only at the UI level.
> 
> A defcustom with values nil, 'ask, t.  nil is the current behaviour.
> 'ask means to do the follow things after a y/n prompt, t means to do
> them unconditionally:
> 
> - When you try to mark a file but you can't because the directory is
>   already marked, unmark the directory first.
> 
> - When you try to mark a directory but you can't because a file under it
>   is already marked, unmark all files under it and mark the directory,
>   instead.

What about unmarking -- how will that work in your proposal?




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

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


Received: (at 76769) by debbugs.gnu.org; 8 Mar 2025 10:46:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat Mar 08 05:46:33 2025
Received: from localhost ([127.0.0.1]:53031 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tqrhR-0002fd-4H
	for submit <at> debbugs.gnu.org; Sat, 08 Mar 2025 05:46:33 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:51664)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tqrhO-0002fI-NP
 for 76769 <at> debbugs.gnu.org; Sat, 08 Mar 2025 05:46:31 -0500
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 1tqrhI-0002BS-24; Sat, 08 Mar 2025 05:46:24 -0500
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=+7JoCFhK3UeMKFTO+nPAya4OX5yTsfszzfPNHuIf5kk=; b=Cxcu/1XdVOug
 E2a4mC1VFsy4fb1jfNFWSPa4cX0xVIrASJdUaC77/p2PL06cvVwQWh7DoO95CPyzb7Ks/yMu1+7O1
 5sYpdeTxHQcW9htj0Mx1Kcx4cjrwIYTfpO182wlW6M5T0Yh3Xsj8Q50TRkmlQV9HzHcZo9VB2murN
 iu5D9vxVMZx3fONMIxrAbpSDxk6DhS7lnAmvBkE4RMYBJ5BaqsdESob8N3x5MxppDpBrWhTuBfP9W
 bAtsbNNBqhzbjHFT00lb2J8VK3r3VvBSzMbh/5qlDhPibIu2bsqLyHcSfq7yfDgcXX6F50Odpcbzu
 wk5bGU/9X2fAZvituzLiTg==;
Date: Sat, 08 Mar 2025 12:46:20 +0200
Message-Id: <86ldtfkdfn.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <87y0xgntca.fsf@HIDDEN> (message from Sean
 Whitton on Sat, 08 Mar 2025 10:34:29 +0800)
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
References: <875xkmvmk4.fsf@HIDDEN> <868qpioaec.fsf@HIDDEN>
 <87y0xgntca.fsf@HIDDEN>
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 76769
Cc: dmitry@HIDDEN, 76769 <at> debbugs.gnu.org, juri@HIDDEN,
 sbaugh@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: -2.6 (--)

> From: Sean Whitton <spwhitton@HIDDEN>
> Cc: dmitry@HIDDEN,  76769 <at> debbugs.gnu.org,  sbaugh@HIDDEN,
>   juri@HIDDEN
> Date: Sat, 08 Mar 2025 10:34:29 +0800
> 
> On Thu 06 Mar 2025 at 10:01am +02, Eli Zaretskii wrote:
> 
> >> Cc: juri@HIDDEN, dmitry@HIDDEN, sbaugh@HIDDEN
> >> From: Sean Whitton <spwhitton@HIDDEN>
> >> Date: Thu, 06 Mar 2025 11:56:59 +0800
> >>
> >> I think that for all the operations VC supports, passing a whole
> >> directory along with some of the files in it is semantically equivalent
> >> to just passing the whole directory.  If would have to be an esoteric,
> >> highly VCS-specific operation to do anything other than that, I think?
> >
> > Are you sure this is true for all the supported VCSes?  AFAIR, some of
> > them considered directories in special ways, others ignored them.
> 
> I'm not I'm expert in all of them, and so I'm not sure, no.
> 
> Can you remember anything more specific, or point me to a particular
> VCS that you think might be different, that I could look into?

I think SVN might be such a VCS.




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

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


Received: (at 76769) by debbugs.gnu.org; 8 Mar 2025 02:50:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 07 21:50:17 2025
Received: from localhost ([127.0.0.1]:51308 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tqkGX-0001ty-4I
	for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 21:50:17 -0500
Received: from sendmail.purelymail.com ([34.202.193.197]:33894)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1tqkGV-0001pQ-AY
 for 76769 <at> debbugs.gnu.org; Fri, 07 Mar 2025 21:50:16 -0500
DKIM-Signature: a=rsa-sha256;
 b=IXUAxgsC5PUtJ8I5DM8e3iR1Rr0XmUr1f9VZOTVQKEVaqlV38nO2Pf0K7RafsPWXHeOR6GERg4ojTSdzcp1sP/wya5eIXVcBw1C1M6EZqVMzglj/M/aebKx4gTr2zq4GdtrIld4u2s7LHXSXwAZbMKxt79xMkokSWC9rCTGpZwk2oOpip2nLt8APNHKP7RZVPgGduOsu11y8TTKUs7mHMBsX+jwIiGm0BMYBmwvwpA03HfV9Du86AErAQJiF+QmNRXDusD4HMx42u67IPtPecAMecZkFtOV6vrpnWP8lYlMJPNPGse2cOe2wtdbdrVfVyvGiv0SGhR0n/6DUEnLnIQ==;
 s=purelymail3; d=spwhitton.name; v=1;
 bh=6T5W+vaaAplEEI/67N3x/5CQMXrO4dSodZnN/OhQHxE=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=k2TzTZbkl/BTLC+RI0dfjPq5znXWSofj5Lg6U/EeVcxQ2hwXQd2ZuX5P4VTrS2C3Hxz6a1pNIG9e74L+o5rMwuKhtkKpsJygA3163SN9kA36QdCaVtf9bS3ItOYT2RDmhaMledHieo6SxGK5o7z+PUbFTb0zb264wqc+ovnEl2Qz22m7BYyShhsgPidIiknnjYigPq8FP0Vofmh0QTtHPe9Iswz2nx2G2dB+5659pME1C08U/I0lNcxytOsyTkg9Rc/jytDdCI0aGkHRgDSusKrZ2Eblj5o4KNRhKZTmNZXmjbapWtK2fX2uLP8QR9WZwe8OFc5Zh7KMQooyypoLlQ==;
 s=purelymail3; d=purelymail.com; v=1;
 bh=6T5W+vaaAplEEI/67N3x/5CQMXrO4dSodZnN/OhQHxE=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 76769 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 1558691079; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sat, 08 Mar 2025 02:50:03 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id AF9B37ED9F5; Sat,  8 Mar 2025 10:50:01 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Juri Linkov <juri@HIDDEN>, dmitry@HIDDEN, 76769 <at> debbugs.gnu.org,
 sbaugh@HIDDEN, Eli Zaretskii <eliz@HIDDEN>
Subject: Re: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
In-Reply-To: <875xkmvmk4.fsf@HIDDEN>
References: <875xkmvmk4.fsf@HIDDEN>
Date: Sat, 08 Mar 2025 10:50:01 +0800
Message-ID: <87ldtgnsme.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
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 (-)

Hello,

Thanks for the feedback.

Here's an alternative proposal that sits only at the UI level.

A defcustom with values nil, 'ask, t.  nil is the current behaviour.
'ask means to do the follow things after a y/n prompt, t means to do
them unconditionally:

- When you try to mark a file but you can't because the directory is
  already marked, unmark the directory first.

- When you try to mark a directory but you can't because a file under it
  is already marked, unmark all files under it and mark the directory,
  instead.

Plus fixing dired-vc-next-action.

I still think it's worth discussing more thoroughgoing changes, but this
is a simpler proposal to fall back on.

-- 
Sean Whitton




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

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


Received: (at 76769) by debbugs.gnu.org; 8 Mar 2025 02:44:11 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 07 21:44:11 2025
Received: from localhost ([127.0.0.1]:51292 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tqkAc-0001Za-SZ
	for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 21:44:11 -0500
Received: from sendmail.purelymail.com ([34.202.193.197]:40536)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1tqkAa-0001ZK-4Z
 for 76769 <at> debbugs.gnu.org; Fri, 07 Mar 2025 21:44:08 -0500
DKIM-Signature: a=rsa-sha256;
 b=Vuhwc5ONmn4jD5AnWfiM0ghksi79uNNSAK30JjbaKRXxZK76Bi3rttB5mHLNQGro78NyilxDU+47BaBnyPpaAZbImiZGuCujAssb7voRalfiLHaaUFQckNhZRkGoxOYIajNEOx623iNQks0n2ltywU2iSshiVBuQjmUCqof1nW46bHTk+N6qGH3hUS7lK4AWbbrEqgUASLgdG198GtDpjoz6LORMY6lmo+hISi+rvle09Vtu34M9umYum0DbNdiAfjDrANrsvoYWrOFlaExU4/guskFiGxnVg3Svd0JIZ1y+9d+Debj4Se3aylUtllR3DHm4blV0ar5mCh32ef6BFQ==;
 s=purelymail3; d=spwhitton.name; v=1;
 bh=CDmVvp3YEvsphVJ3mS9U/MsqhBA24+wkJ91xK2ancLo=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=hoNvySEbS/2DW9TXJoS13sOqp8ZkVIjqcq5U1QREEMHOj6aUZjy4nfeBOIPw9u1V1Kc3RJnwJgVRTzRCBnlvIrtR1LrA/mZYS9ClxazJ/aRAHU7IUTHKuH1CRXjzueA675Ul5NaZ0DHcdSSD2WyDYss4AYSpFWpiFWA59w/BhZ8DoZeXsb/yn6NHZZMkMxgPrayCkCA2r9Wu9LKDJly1bsJ7dqXmJuLZoLVHiUESKg11X0aPiwLJ+0c5BavEFP+u/2abzTcfQKvS+m3NkH2ku9Pl7wct0PQQdh2gwjvUVr4BlV67Wr8J5+SDSoL1le7iWGn6RQVp/+RfAicth4grcg==;
 s=purelymail3; d=purelymail.com; v=1;
 bh=CDmVvp3YEvsphVJ3mS9U/MsqhBA24+wkJ91xK2ancLo=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 76769 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -582084396; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sat, 08 Mar 2025 02:44:00 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 6E7677ED9F5; Sat,  8 Mar 2025 10:43:58 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Juri Linkov <juri@HIDDEN>, dmitry@HIDDEN,  76769 <at> debbugs.gnu.org,
 sbaugh@HIDDEN
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
In-Reply-To: <87y0xiha3i.fsf@HIDDEN>
References: <875xkmvmk4.fsf@HIDDEN>
 <87y0xiha3i.fsf@HIDDEN>
Date: Sat, 08 Mar 2025 10:43:58 +0800
Message-ID: <87plisnswh.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
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 (-)

Hello,

On Thu 06 Mar 2025 at 09:49am +02, Juri Linkov wrote:

> So this defcustom will permit an inconsistent state in VC-Dir?

I don't think it's an inconsistent state.  VC-Dir has very strong
opinions on what is allowed to be marked, but it's not clear to me they
are justified and they are certainly not user friendly.

> I think that dired-vc-next-action should be fixed to handle the current
> default behavior in any case, even without adding the above defcustom.
> Maybe it should raise an error for an inconsistent state instead of
> trying to guess the user's intention.

Yes, that would be an improvement.

> This looks like handling a group of checkbox selections in some UI
> where the group checkbox has the third state [-]:
>
>                            ./
>      -                     src/
>      * edited              src/cm.c
>        edited              src/emacs.c

Yes, it's kind of an inverse of that.

-- 
Sean Whitton




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

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


Received: (at 76769) by debbugs.gnu.org; 8 Mar 2025 02:40:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 07 21:40:22 2025
Received: from localhost ([127.0.0.1]:51286 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tqk6v-0001Sp-I1
	for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 21:40:21 -0500
Received: from sendmail.purelymail.com ([34.202.193.197]:44416)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1tqk6t-0001Oc-M2
 for 76769 <at> debbugs.gnu.org; Fri, 07 Mar 2025 21:40:20 -0500
DKIM-Signature: a=rsa-sha256;
 b=kZ9cWg1eS84JnngGXqddjCmA4nGkt4uHdADj6THBtC+ys/CXUt/HERBoaM7NVf++N1jDtVT1/vFZ2H7KdnQMg5vkWiIZXd4VErwg9WEq3IxRbUE3tY8iwE8UwiTF/gKl6CKtbowS0GzQ4ig10BwOtTF6ERLMys6PHFXAhiQwEY9p8jYd2gFXiP0jUFVrKfUjnWj7PfCXdBjTv2fkEq3hwNmiQmrTFidPsIoZgva9KWYuWFqRd6o+yWrObmFGGLs4/1xSHYsTdPQ7hmbWLZ2ZYveNQzaMEIAE54LlrMuzQ5zFJpWL12e+lJaLKAMG/5RANlfhqjLhHpQCwR7JPgDs6Q==;
 s=purelymail3; d=spwhitton.name; v=1;
 bh=4aZEMhbXzhcz/LSa7H97DKWy0xD6f12F8rzGEjdZp10=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=Sg0E3WxcZQZdADn1H7GgF4PKqzfuAYadJnznmsUnFwCnOEzs96RxFucW8Zi82rd3yDDmxXj9Lr109AKvNFpPMbyBK4Ue8HTDaOSf/lSI1O2T8IGmOKpg/MPzhu37IqcYm1zb7taiB5XPTe0HOm/yYEjj0HpFli2Jpzg8kris9r2F3oN0FzO50RpBCTSwIJXWiVHAJ/cpxu5Pd+9oNT+A8VOPh14qYT2yKpwxohTPJaBGMTI8siYl3J50a63+jYNvk5JrTq77WVjRYc9P1SQRBTPxurz74Dgvkr3BOI1aJbZcmmeeOgbEtgP4jEnZQMVOAwt2ImefQtsMIPF+0CWrng==;
 s=purelymail3; d=purelymail.com; v=1;
 bh=4aZEMhbXzhcz/LSa7H97DKWy0xD6f12F8rzGEjdZp10=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 76769 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 874344515; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sat, 08 Mar 2025 02:40:11 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id 3F1017EDAD2; Sat,  8 Mar 2025 10:40:09 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
In-Reply-To: <8ff2be2c-d204-4a2a-b278-02e058ea45ea@HIDDEN>
References: <875xkmvmk4.fsf@HIDDEN>
 <8ff2be2c-d204-4a2a-b278-02e058ea45ea@HIDDEN>
Date: Sat, 08 Mar 2025 10:40:09 +0800
Message-ID: <87tt84nt2u.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
Cc: sbaugh@HIDDEN, 76769 <at> debbugs.gnu.org, juri@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: -1.0 (-)

Hello,

On Fri 07 Mar 2025 at 05:13am +02, Dmitry Gutov wrote:

> Hi!
>
> On 06/03/2025 05:56, Sean Whitton wrote:
>>    --8<---------------cut here---------------start------------->8---
>>                             ./
>>      *                      src/
>>      *  edited              src/emacs.c
>>    --8<---------------cut here---------------end--------------->8---
>>    Currently vc-dir-deduce-fileset returns ("src/" "src/emacs.c"),
>>    it should return just ("src/").
>
> Could you give an example of when this is a problem in practice? If you just
> pass this list to 'git diff' or 'git log', either command would behave as if
> the fileset contained only a directory.
>
> I suppose the list of files in log-edit would be more awkward. Is that all?

No, my thought here is that the VC-Dir abstraction is leaking through.

Modulo possible cases which I'm hoping to hear more about from Eli, if
the user has marked a directory, then the operation is on that directory
and everything in it, and passing through the information that the user
happened to have src/emacs.c marked as well is strange.

> Speaking of interface changes, I wonder if marking (or unmarking) a directory
> should select/unselect all of its files instead (those displayed in the
> buffer). But that's a more drastic change.

I hope that we can figure out something more subtle, but having the
ability to opt into that would be an improvement over what we have now,
I think.

-- 
Sean Whitton




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

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


Received: (at 76769) by debbugs.gnu.org; 8 Mar 2025 02:34:42 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 07 21:34:42 2025
Received: from localhost ([127.0.0.1]:51274 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tqk1R-00017x-Qr
	for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 21:34:42 -0500
Received: from sendmail.purelymail.com ([34.202.193.197]:54938)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1tqk1O-00017i-Qz
 for 76769 <at> debbugs.gnu.org; Fri, 07 Mar 2025 21:34:39 -0500
DKIM-Signature: a=rsa-sha256;
 b=sb+/21uWyLEOQDDR/s0ud/8Aa65QF3Pk+BPRBLau/G+IQGk8XevzlywsmxlxqY1oUowLCpHm/nx2gtKGKQcZoRwpmcWTetCz1P1FtAFKAuLqhWV4w4i2ep+vOIOWG/WTTErza2TMkpaP6l2l3HWy3oo4YaIdfWYbrB6OFTdl5UxlGEAyNytpWOBaUgbNPOzdDBBNVBEmzHtGvaFFlISjGVPxDxJUaQNh3YenyVKb/q+A3s7KBgwbp31DWuvJN147i5g+1vmDFpF8Pe0TcQ6jtkBXE1ZZH2QYQFfbc3+QAZ/V2XaCFudBtBUtBJzCuXsj5ZeGdW7gP0MV+H+M9+7EZA==;
 s=purelymail3; d=spwhitton.name; v=1;
 bh=yAfJfc7BBFrbAJPIGb/CJRv42wGow/dFZ6lx2sC/+/s=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=Mi6J/hkiZ3eaJpxbdbXEaYWknvTw124bpsIaJpDAPJ1C/A0ptI+llgtAopFOeaGzHJJO4hVhRd43cGpsgc68cPbPnUrWwQxOO8unGarluobo5C/W0/DQX7BXR3nj4YDTYBbwC/SYSHOz9PGLx/uDvP7bCpCqLz1CJWB0/+BHfGmmBuaxBCRdwQjV3NYRR/xQUJF43FXykYJSwSMcebf65URBGQYyWTebceKhI3zrcMUp2NtwtfFPQuasXYhCn0Iyi4l8PQu9MH2851YjsLHDM8mySTvhhG4++WHyl+yPZLU3dRez9azReGUBYSIHyII4XzNuXrLO5TpZQCejc5xqMg==;
 s=purelymail3; d=purelymail.com; v=1;
 bh=yAfJfc7BBFrbAJPIGb/CJRv42wGow/dFZ6lx2sC/+/s=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: 76769 <at> debbugs.gnu.org
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id 862259337; 
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Sat, 08 Mar 2025 02:34:32 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id A425D7EA544; Sat,  8 Mar 2025 10:34:29 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
In-Reply-To: <868qpioaec.fsf@HIDDEN>
References: <875xkmvmk4.fsf@HIDDEN> <868qpioaec.fsf@HIDDEN>
Date: Sat, 08 Mar 2025 10:34:29 +0800
Message-ID: <87y0xgntca.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.7 (/)
X-Debbugs-Envelope-To: 76769
Cc: dmitry@HIDDEN, 76769 <at> debbugs.gnu.org, juri@HIDDEN,
 sbaugh@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: -0.3 (/)

Hello,

On Thu 06 Mar 2025 at 10:01am +02, Eli Zaretskii wrote:

>> Cc: juri@HIDDEN, dmitry@HIDDEN, sbaugh@HIDDEN
>> From: Sean Whitton <spwhitton@HIDDEN>
>> Date: Thu, 06 Mar 2025 11:56:59 +0800
>>
>> I think that for all the operations VC supports, passing a whole
>> directory along with some of the files in it is semantically equivalent
>> to just passing the whole directory.  If would have to be an esoteric,
>> highly VCS-specific operation to do anything other than that, I think?
>
> Are you sure this is true for all the supported VCSes?  AFAIR, some of
> them considered directories in special ways, others ignored them.

I'm not I'm expert in all of them, and so I'm not sure, no.

Can you remember anything more specific, or point me to a particular
VCS that you think might be different, that I could look into?

> We shouldn't design new VC features by looking at just one VCS.

Yes, very much agree.

-- 
Sean Whitton




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

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


Received: (at 76769) by debbugs.gnu.org; 7 Mar 2025 15:12:54 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 07 10:12:54 2025
Received: from localhost ([127.0.0.1]:49590 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tqZNe-0007US-AN
	for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 10:12:54 -0500
Received: from fout-a7-smtp.messagingengine.com ([103.168.172.150]:57251)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1tqZNb-0007UA-7j
 for 76769 <at> debbugs.gnu.org; Fri, 07 Mar 2025 10:12:52 -0500
Received: from phl-compute-06.internal (phl-compute-06.phl.internal
 [10.202.2.46])
 by mailfout.phl.internal (Postfix) with ESMTP id 1FFF613826AE;
 Fri,  7 Mar 2025 10:12:45 -0500 (EST)
Received: from phl-mailfrontend-01 ([10.202.2.162])
 by phl-compute-06.internal (MEProxy); Fri, 07 Mar 2025 10:12:45 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm3; t=1741360365;
 x=1741446765; bh=CvVKDeqGaXuLeKzLrTzmn5wsjpmxNtVYktYT5YQMFL8=; b=
 yV8aGyEuF6bSLeRa/yuLUPR6OxpkVlmtm6hb60fU3kvneuj16vDhk8ogvf/DKtAi
 Nj63nekuINt1EeMX0R1pUUjcNJOW5YAyURjzledmKXnqizrN9/wsefRPzks2iWUV
 RPTQMK64SrH0AMvGlawEDn+LriiuQDR06IYv7/zCHWCg1X15jMNfXtc1/3TSW1bu
 cUMUiSjK6S0PPYyJe+fb/9OelKlbY+7nH/YW6rG3VIz+dJIaxz60kYRIEQHrw2M1
 mSvTqIoLbGEJKgjefvovTdVyc8eBdZNhBnDBW3d7tPFswWDV59TNSUjAjL3xRj/0
 3XIG5HIc0l/SR77aivyXhw==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1741360365; x=
 1741446765; bh=CvVKDeqGaXuLeKzLrTzmn5wsjpmxNtVYktYT5YQMFL8=; b=I
 oGpLKMRAIQA+QOUMC5PjJOQA5WtViOrRJx97t2Ul7A5uxwkLAatA8BSvRVkP3BIQ
 RGtGjOmg15fKXpdByDG17W61EDKKtXPKIYoJdMu7E47tbkAM5QCJZk5dfKD9It7q
 h2qr4LW03cYhXL2BOo3u81k8zEjMiDAQMpRCrSeCaZHMjf/cHpVMmiV9UXJYiCal
 TnNh+Xt+mG/kUsclBOGral3xWWffQwwbWQXWRM5XwCne/i/IddkITKHDfXtDkB/j
 1JqD7huL46nTeqDEqCyyB2xo79rRD5UgyMbmVQBkcXMXKQ3/9ZrOefRnaMNv+gl6
 FYhenuaxeZfGWiofzMyiw==
X-ME-Sender: <xms:7AzLZ-2K0UWspHO4tBUIRIu2ovrMr6JddKFx3gf4e9gC-zB2O-USwQ>
 <xme:7AzLZxExe90RllbeE0HTpWmW7osWqiZD8F_G8AiNiGr8euWGHYYijXvGrwsx61a2T
 9IgBxS7rljLgvn_oSQ>
X-ME-Received: <xmr:7AzLZ26Clew0Vr00fPzQRVjOn7JhU0nolN0r2tjdaOmBaHUUDQ3rTgGaibwF5nvBX1Dm>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduuddtleelucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv
 pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih
 gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddt
 vdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovh
 druggvvheqnecuggftrfgrthhtvghrnhepteduleejgeehtefgheegjeekueehvdevieek
 ueeftddvtdevfefhvdevgedujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg
 hmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphht
 thhopeehpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopegvlhhiiiesghhnuhdroh
 hrghdprhgtphhtthhopehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvgdp
 rhgtphhtthhopeejieejieelseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtoh
 epshgsrghughhhsehjrghnvghsthhrvggvthdrtghomhdprhgtphhtthhopehjuhhrihes
 lhhinhhkohhvrdhnvght
X-ME-Proxy: <xmx:7AzLZ_3IIvVDjSQA-DH6PexpJdTcO6-xpXy1uZMUJKYk1PRdcxrOaw>
 <xmx:7AzLZxGm4osivRoZCaaDouGxKvxucP7bPOoRUJfyCiCPspmJDKBH1A>
 <xmx:7AzLZ4-XRocPjeBcotd4lTNMwLouqGZZRDpDsGoWUiGxoyQej5FMxA>
 <xmx:7AzLZ2mTqjFNBmiJ-cBlORbHQTpLzUP_4po5UA1OWmHEFtxbGf8uNQ>
 <xmx:7QzLZ6N55Xcwk4rPDp9DVconNg0-NW0j8qxLGGkE5WTF1509u4BrTeTQ>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri,
 7 Mar 2025 10:12:42 -0500 (EST)
Message-ID: <6ad3fa87-53cc-44a4-8627-e71ba55618fd@HIDDEN>
Date: Fri, 7 Mar 2025 17:12:40 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
To: Eli Zaretskii <eliz@HIDDEN>
References: <875xkmvmk4.fsf@HIDDEN>
 <8ff2be2c-d204-4a2a-b278-02e058ea45ea@HIDDEN> <86ldthl1p4.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <86ldthl1p4.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
Cc: sbaugh@HIDDEN, 76769 <at> debbugs.gnu.org, juri@HIDDEN,
 spwhitton@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: -1.0 (-)

On 07/03/2025 09:49, Eli Zaretskii wrote:
>> Cc:sbaugh@HIDDEN,juri@HIDDEN
>> Date: Fri, 7 Mar 2025 05:13:03 +0200
>> From: Dmitry Gutov<dmitry@HIDDEN>
>>
>> People mentioned some VCS handling directories special - does there
>> exist a specific tracking of directories in commit history in some?
> I think svn does that.

Any chance someone could describe the scenario which behaves better with 
SVN because of that?




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

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


Received: (at 76769) by debbugs.gnu.org; 7 Mar 2025 07:50:21 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Mar 07 02:50:21 2025
Received: from localhost ([127.0.0.1]:46772 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tqSTN-0002tS-B5
	for submit <at> debbugs.gnu.org; Fri, 07 Mar 2025 02:50:21 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:48972)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tqSTJ-0002oW-NG
 for 76769 <at> debbugs.gnu.org; Fri, 07 Mar 2025 02:50:18 -0500
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 1tqSTC-0002zb-Bf; Fri, 07 Mar 2025 02:50:10 -0500
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=Gp5LA3PdG0m/2BpFIMip7wf8BjH6BclGhRxoTJ0ateg=; b=JI96mdV9TZ9U
 TIJEnc1kIbeflg7GWuFjdHn0qGS0FKViGSrF6yTG2UocnL0kwjeya/HzV77zLVSlrTyDn8wogzC59
 NUKVoPwdxx5U16eWep1OYGwghH+BPf6oJM19aTKgeAvih6oh6vhNZfo3bN3ZDox4UFJT/eIJc3ghu
 8pI3qynvNxLXBUHd9pvhjP0cB9muoWvz+ce2CT7BZq+eZhh/3vq3nppVrkH/X5bW3agvU43tbERdV
 a+1pTSv7pSNiqzS6O4o0qoOoZCcMQzup0vrVo4BQqarmsqxNDLhUS+g7zOvNbzCjT1MIerOgRLwIZ
 YgME06jpI1+iTqTKCtZKrg==;
Date: Fri, 07 Mar 2025 09:49:59 +0200
Message-Id: <86ldthl1p4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <8ff2be2c-d204-4a2a-b278-02e058ea45ea@HIDDEN> (message from
 Dmitry Gutov on Fri, 7 Mar 2025 05:13:03 +0200)
Subject: Re: bug#76769: 31.0.50;
 marking inconsistency between VC-Dir and dired-vc-next-action
References: <875xkmvmk4.fsf@HIDDEN>
 <8ff2be2c-d204-4a2a-b278-02e058ea45ea@HIDDEN>
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 76769
Cc: sbaugh@HIDDEN, 76769 <at> debbugs.gnu.org, juri@HIDDEN,
 spwhitton@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: -2.6 (--)

> Cc: sbaugh@HIDDEN, juri@HIDDEN
> Date: Fri, 7 Mar 2025 05:13:03 +0200
> From: Dmitry Gutov <dmitry@HIDDEN>
> 
> People mentioned some VCS handling directories special - does there 
> exist a specific tracking of directories in commit history in some?

I think svn does that.




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

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


Received: (at 76769) by debbugs.gnu.org; 7 Mar 2025 03:13:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 06 22:13:17 2025
Received: from localhost ([127.0.0.1]:46186 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tqO9E-0000ld-TE
	for submit <at> debbugs.gnu.org; Thu, 06 Mar 2025 22:13:17 -0500
Received: from fout-a8-smtp.messagingengine.com ([103.168.172.151]:60185)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <dmitry@HIDDEN>) id 1tqO9A-0000lH-Nt
 for 76769 <at> debbugs.gnu.org; Thu, 06 Mar 2025 22:13:13 -0500
Received: from phl-compute-07.internal (phl-compute-07.phl.internal
 [10.202.2.47])
 by mailfout.phl.internal (Postfix) with ESMTP id 1916013814D6;
 Thu,  6 Mar 2025 22:13:07 -0500 (EST)
Received: from phl-mailfrontend-02 ([10.202.2.163])
 by phl-compute-07.internal (MEProxy); Thu, 06 Mar 2025 22:13:07 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gutov.dev; h=cc
 :cc:content-transfer-encoding:content-type:content-type:date
 :date:from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to; s=fm3; t=1741317187;
 x=1741403587; bh=YHh+6SRRLHHSm5pJtr/zJ0srFPg8ly6UHcpqVSL+orY=; b=
 BRsROnEoXr04lGrJGlotCHnhXwSILj/eAywqhv1TWkF85uJWhenPGiVMZK+aa2Gs
 td6KOOYRsRrHbJSvXs7wEtC+eu28mi4+IQ7gGhgY3Ny6+Q++ZTpD9g5JJWtW3s+8
 g4hrhz4mCCti+opcAjwdnxNTFQ2wMyID9RUrerx9DqLpr2lNneUPT/JzwW8GSkWN
 VJEX2l/D9aARy9Nn2GPz4xa638sdDdqtfypGMdqcOoa4JYkbS6jyZqIDYR8RyfJO
 0zCSZyvrv8q8fLICpCSV2C7ey7bLb6xucmixbwb0o0bwvtQJe/Je24P3IYXSByHw
 SH0YOttXx12bJ9D3YfUMRg==
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=
 messagingengine.com; h=cc:cc:content-transfer-encoding
 :content-type:content-type:date:date:feedback-id:feedback-id
 :from:from:in-reply-to:in-reply-to:message-id:mime-version
 :references:reply-to:subject:subject:to:to:x-me-proxy
 :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; t=1741317187; x=
 1741403587; bh=YHh+6SRRLHHSm5pJtr/zJ0srFPg8ly6UHcpqVSL+orY=; b=x
 7W797DoEYhz5pd7IolgCzZoGoiZfGF4qyb3jQhS+ttEJz1fECNaKf22kI5ei1DKB
 4WioFPFcZJ9iloy8hsgHrXBs/0Iz5Li3PhEINdPsxMz1gYxFPpzLmwoIuUehTvwH
 dUdQO5/5Bv2yqh3etwZluikDtUKIWl1CFNiXYoHIoWLK1cAqHoFh8HCPBNil0yup
 wQALXkoiC8t3tdBywRaCbcZ3bjsIEsj36inYvjdUH1VY9EwWhkMPbLVkuDO8Tyff
 6dIdv+tAriAethjD8Dzwj5R86XTBHolhXKv1TW8cjT0ZFkPOB3HKB8XYparqewX+
 Im9F8+8j5oHDNgiEoUP7w==
X-ME-Sender: <xms:QmTKZzHUTBJaE0s0HBrv5yXDnNjIr_kvzmV3AARAfeAMMvTAuUDGGg>
 <xme:QmTKZwV7fDR9Ck9TMBc8uM7hCtXlgRO9zimIL9sdVR1H5obfRbeSAMy3XTLj-4TF7
 U3pj0tFqppwN9P-bkY>
X-ME-Received: <xmr:QmTKZ1I3g-USM13_7WtLawiRhmkhxT5Ecc2Q4Ljj3rXRL6IqL1lG1ejGXskyroL7Nx_q>
X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddutdelheegucetufdoteggodetrf
 dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggv
 pdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpih
 gvnhhtshculddquddttddmnecujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddt
 vdejnecuhfhrohhmpeffmhhithhrhicuifhuthhovhcuoegumhhithhrhiesghhuthhovh
 druggvvheqnecuggftrfgrthhtvghrnhepteduleejgeehtefgheegjeekueehvdevieek
 ueeftddvtdevfefhvdevgedujeehnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrg
 hmpehmrghilhhfrhhomhepughmihhtrhihsehguhhtohhvrdguvghvpdhnsggprhgtphht
 thhopeegpdhmohguvgepshhmthhpohhuthdprhgtphhtthhopehsphifhhhithhtohhnse
 hsphifhhhithhtohhnrdhnrghmvgdprhgtphhtthhopeejieejieelseguvggssghughhs
 rdhgnhhurdhorhhgpdhrtghpthhtohepjhhurhhisehlihhnkhhovhdrnhgvthdprhgtph
 htthhopehssggruhhghhesjhgrnhgvshhtrhgvvghtrdgtohhm
X-ME-Proxy: <xmx:QmTKZxGmDf1xtodb2LLqiBfXCg6iBoJhuCOTIK6SUeH1fx1thlfzIw>
 <xmx:QmTKZ5W_8hMUKYwL4gEPwMUq9TjzaAJfkmiBBNRdZGuXDbm_b7rhPw>
 <xmx:QmTKZ8MMvuoZARg6xFH3fraFWxR64JCXGn6NKgV6CWCfGZ3TGI4yQg>
 <xmx:QmTKZ40yxAK4zEp5OmYXrlKYxKpDA9zDwNFZGtshI7bs4joYP6iw9A>
 <xmx:Q2TKZ_ylAm3Wy-idpnTAPJXvUejB40HY0QBnQDWwKyta9swxGj5dkMiY>
Feedback-ID: i07de48aa:Fastmail
Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu,
 6 Mar 2025 22:13:05 -0500 (EST)
Message-ID: <8ff2be2c-d204-4a2a-b278-02e058ea45ea@HIDDEN>
Date: Fri, 7 Mar 2025 05:13:03 +0200
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
To: Sean Whitton <spwhitton@HIDDEN>, 76769 <at> debbugs.gnu.org
References: <875xkmvmk4.fsf@HIDDEN>
Content-Language: en-US
From: Dmitry Gutov <dmitry@HIDDEN>
In-Reply-To: <875xkmvmk4.fsf@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 76769
Cc: sbaugh@HIDDEN, juri@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: -1.0 (-)

Hi!

On 06/03/2025 05:56, Sean Whitton wrote:
>    --8<---------------cut here---------------start------------->8---
>                             ./
>      *                      src/
>      *  edited              src/emacs.c
>    --8<---------------cut here---------------end--------------->8---
>    Currently vc-dir-deduce-fileset returns ("src/" "src/emacs.c"),
>    it should return just ("src/").

Could you give an example of when this is a problem in practice? If you 
just pass this list to 'git diff' or 'git log', either command would 
behave as if the fileset contained only a directory.

I suppose the list of files in log-edit would be more awkward. Is that all?

Speaking of interface changes, I wonder if marking (or unmarking) a 
directory should select/unselect all of its files instead (those 
displayed in the buffer). But that's a more drastic change.

People mentioned some VCS handling directories special - does there 
exist a specific tracking of directories in commit history in some?




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

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


Received: (at 76769) by debbugs.gnu.org; 6 Mar 2025 08:01:47 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 06 03:01:47 2025
Received: from localhost ([127.0.0.1]:41305 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tq6At-0002Cs-3g
	for submit <at> debbugs.gnu.org; Thu, 06 Mar 2025 03:01:47 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:37300)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1tq6Ap-0002CZ-HC
 for 76769 <at> debbugs.gnu.org; Thu, 06 Mar 2025 03:01:44 -0500
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 1tq6Ai-0006Vw-W0; Thu, 06 Mar 2025 03:01:37 -0500
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=p+jtqdFFMdXf8RWr2A77iRUfk/AXh5Wf9ftmYYv9E40=; b=Y5beeu/mAkZU
 wV6aXUkiCLC4pUrvXLqafNa7qqFjc5q+ofnW84taTK6WVScCknAgKRZAjC1OiWd49dASx2goe/it8
 zBQdkV+Ju5RrdLgXtAKcIa6euvelZx1B9HqDc5qe2wepRD3GHBkFV7YV1alf8M3jcvbDo/EQf88uN
 g+d835U7DKowYr1X5vkXzoJisjQ0I+CfN8Nwx4ba/jGrSEKTw61rd8O4B2xg1hojK8H4cAvjgTWBj
 dAEN6ogWn79QRLCDEA+257f0LHe1SKRiqQMLSNri+PlLalXe4KU990xiNlEDn8VDebenp4NaitIg6
 onEeCh8VfC7wD4AJAmdw7Q==;
Date: Thu, 06 Mar 2025 10:01:31 +0200
Message-Id: <868qpioaec.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
In-Reply-To: <875xkmvmk4.fsf@HIDDEN> (message from Sean
 Whitton on Thu, 06 Mar 2025 11:56:59 +0800)
Subject: Re: bug#76769: 31.0.50;
 marking inconsistency between VC-Dir and dired-vc-next-action
References: <875xkmvmk4.fsf@HIDDEN>
X-Spam-Score: -1.6 (-)
X-Debbugs-Envelope-To: 76769
Cc: dmitry@HIDDEN, 76769 <at> debbugs.gnu.org, sbaugh@HIDDEN,
 juri@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: -2.6 (--)

> Cc: juri@HIDDEN, dmitry@HIDDEN, sbaugh@HIDDEN
> From: Sean Whitton <spwhitton@HIDDEN>
> Date: Thu, 06 Mar 2025 11:56:59 +0800
> 
> I think that for all the operations VC supports, passing a whole
> directory along with some of the files in it is semantically equivalent
> to just passing the whole directory.  If would have to be an esoteric,
> highly VCS-specific operation to do anything other than that, I think?

Are you sure this is true for all the supported VCSes?  AFAIR, some of
them considered directories in special ways, others ignored them.  We
shouldn't design new VC features by looking at just one VCS.




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

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


Received: (at 76769) by debbugs.gnu.org; 6 Mar 2025 07:56:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Mar 06 02:56:55 2025
Received: from localhost ([127.0.0.1]:41293 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tq66B-0001wH-1f
	for submit <at> debbugs.gnu.org; Thu, 06 Mar 2025 02:56:55 -0500
Received: from relay6-d.mail.gandi.net ([217.70.183.198]:47159)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1tq662-0001vQ-Vh
 for 76769 <at> debbugs.gnu.org; Thu, 06 Mar 2025 02:56:47 -0500
Received: by mail.gandi.net (Postfix) with ESMTPSA id 1162441C84;
 Thu,  6 Mar 2025 07:56:37 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Sean Whitton <spwhitton@HIDDEN>
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
In-Reply-To: <875xkmvmk4.fsf@HIDDEN>
Organization: LINKOV.NET
References: <875xkmvmk4.fsf@HIDDEN>
Date: Thu, 06 Mar 2025 09:49:53 +0200
Message-ID: <87y0xiha3i.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddutdejvddtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepgedprhgtphhtthhopehssggruhhghhesjhgrnhgvshhtrhgvvghtrdgtohhmpdhrtghpthhtohepughmihhtrhihsehguhhtohhvrdguvghvpdhrtghpthhtohepjeeijeeileesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehsphifhhhithhtohhnsehsphifhhhithhtohhnrdhnrghmvg
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 76769
Cc: dmitry@HIDDEN, 76769 <at> debbugs.gnu.org, sbaugh@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: -1.7 (-)

> So my proposal to make things more consistent would be:
>
> - a new defcustom, which when non-nil, allows freely marking both files
>   in directories, and those directories themselves, in VC-Dir
>
>   (I think we should default it to non-nil)

So this defcustom will permit an inconsistent state in VC-Dir?

> - fix dired-vc-next-action to respect that defcustom, i.e., when it is
>   nil, dired-vc-next-action shouldn't generate a VC-Dir buffer with
>   both src/ and src/emacs.c marked, in the example above

I think that dired-vc-next-action should be fixed to handle the current
default behavior in any case, even without adding the above defcustom.
Maybe it should raise an error for an inconsistent state instead of
trying to guess the user's intention.

> - change vc-dir-deduce-fileset to filter out individual files when the
>   directory containing them is marked.  E.g.
>
>   --8<---------------cut here---------------start------------->8---
>                            ./
>     *                      src/
>     *  edited              src/emacs.c
>   --8<---------------cut here---------------end--------------->8---
>   Currently vc-dir-deduce-fileset returns ("src/" "src/emacs.c"),
>   it should return just ("src/").

Not sure how this would affect various VCSes.  It would be better
to leave the decision to the user what should be selected
unless such a selected state causes ambiguity to a VCS.

> I think that for all the operations VC supports, passing a whole
> directory along with some of the files in it is semantically equivalent
> to just passing the whole directory.  If would have to be an esoteric,
> highly VCS-specific operation to do anything other than that, I think?
>
> For a case like this:
>
>                          ./
>    *                     src/
>    * edited              src/cm.c
>      edited              src/emacs.c
>
>
> the UI is a little confusing, because any operation will also act on
> emacs.c, but it is not marked.  I would propose that we add another
> symbol next to src/emacs.c, say '-', in a less prominently coloured
> face, indicating that despite not having been explictly marked, it is
> still effectively part of the fileset:
>
>                          ./
>    *                     src/
>    * edited              src/cm.c
>    - edited              src/emacs.c
>
> (imagine the '-' is in a different colour).

It seems this UI still doesn't resolve the ambiguity for a VCS.

> How does this design look?

This looks like handling a group of checkbox selections in some UI
where the group checkbox has the third state [-]:

                           ./
     -                     src/
     * edited              src/cm.c
       edited              src/emacs.c




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

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


Received: (at submit) by debbugs.gnu.org; 6 Mar 2025 03:57:23 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Mar 05 22:57:23 2025
Received: from localhost ([127.0.0.1]:40739 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1tq2MN-0000f4-CF
	for submit <at> debbugs.gnu.org; Wed, 05 Mar 2025 22:57:23 -0500
Received: from lists.gnu.org ([2001:470:142::17]:52266)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <spwhitton@HIDDEN>)
 id 1tq2MJ-0000ef-Kc
 for submit <at> debbugs.gnu.org; Wed, 05 Mar 2025 22:57:20 -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 <spwhitton@HIDDEN>)
 id 1tq2MC-0000Yv-TF
 for bug-gnu-emacs@HIDDEN; Wed, 05 Mar 2025 22:57:13 -0500
Received: from sendmail.purelymail.com ([34.202.193.197])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <spwhitton@HIDDEN>)
 id 1tq2MA-0005xB-Is
 for bug-gnu-emacs@HIDDEN; Wed, 05 Mar 2025 22:57:12 -0500
DKIM-Signature: a=rsa-sha256;
 b=AcHrqNLxjG+KyW2Q2kL6zapNr6iyQYsgQMHWV/tfPuVsHEt0kiP5mU/JVBvzds4qinJuw4QSNtJJM8o0qAGbdn/fj/lLyZy/gg60XPtb0+o7iVF45AaMZSnP6daLosQJi4zn/0hoNSxS9OzTYuSFY24jJjEeBZ0bxuU3/fgg27+KhHcmDuTR0tJhGJmEV03za0OEbvG+Jc2JqSj76rwKRwwU5WcrAChf+TNUgH26wrcAwuJ1f3XZgBs5Ax9w6ochzPLLAOUzVtPDFE9hSmTNPVe+DvEPRWcqOcBoRJDPefpXSmvnR46OD3ymjOoSxDYPuaekC11JtlkQwlqoKJGcXg==;
 s=purelymail3; d=spwhitton.name; v=1;
 bh=cAreKVcL4VDAg1BKdj8p9ifgrAOPYIxr0jKNBERiOxk=;
 h=Received:Received:From:To:Subject:Date; 
DKIM-Signature: a=rsa-sha256;
 b=NrI0emGAn/JzTTrKP04qZZJ4lZf859pGM7G2eiOAr1DiePkOqqvTVx/gEEulDxp5F5+g/0Rdl5yNylicISU0hRe/YxZC2lXyEVPS5JkH60VHoTqTBnEg2wQXgXakVzLf3PrwBi1yMqp9AFu4/ZTJNx4Ph4mQH99nffjyBv8A9KNPIayh6WQBvod0AV2g8hU3ciL4/10e7MnIgbMLMAVrdumV0PFdfdGwtOdg7q1jwrBfhd6MojF/9Nt1cJ8rUInOUAbqUd9g0+7skMivajhGrvfVFyVGxStZEIYm2DQNkOe8zW6DUxY1F1EZxzXR6/LgBX3OM+3dk02XEGlKv9W2jg==;
 s=purelymail3; d=purelymail.com; v=1;
 bh=cAreKVcL4VDAg1BKdj8p9ifgrAOPYIxr0jKNBERiOxk=;
 h=Feedback-ID:Received:Received:From:To:Subject:Date; 
Feedback-ID: 20115:3760:null:purelymail
X-Pm-Original-To: bug-gnu-emacs@HIDDEN
Received: by smtp.purelymail.com (Purelymail SMTP) with ESMTPSA id -624480481
 for <bug-gnu-emacs@HIDDEN>
 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384);
 Thu, 06 Mar 2025 03:57:03 +0000 (UTC)
Received: by melete.silentflame.com (Postfix, from userid 1000)
 id CFD327E1C76; Thu,  6 Mar 2025 11:56:59 +0800 (CST)
From: Sean Whitton <spwhitton@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 31.0.50; marking inconsistency between VC-Dir and dired-vc-next-action
Date: Thu, 06 Mar 2025 11:56:59 +0800
Message-ID: <875xkmvmk4.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
Received-SPF: pass client-ip=34.202.193.197;
 envelope-from=spwhitton@HIDDEN; helo=sendmail.purelymail.com
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: 1.7 (+)
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:  X-debbugs-cc: juri@HIDDEN, dmitry@HIDDEN,
 sbaugh@HIDDEN
 Try this: 1. make a random edit to src/emacs.c 2. open Dired in the root
 of emacs.git 3. use 'm' to mark src 4. go back up one line, use 'i' to insert
 src 5. move down to emacs.c, use 'm' to mark that as well 6 [...] 
 Content analysis details:   (1.7 points, 10.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at https://www.dnswl.org/,
 no trust [2001:470:142:0:0:0:0:17 listed in] [list.dnswl.org]
 1.0 SPF_SOFTFAIL           SPF: sender does not match SPF record (softfail)
 -0.0 SPF_HELO_PASS          SPF: HELO matches SPF record
 0.1 URIBL_SBL_A Contains URL's A record listed in the Spamhaus SBL
 blocklist [URIs: gutov.dev]
 0.6 URIBL_SBL Contains an URL's NS IP listed in the Spamhaus SBL
 blocklist [URIs: gutov.dev]
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.7 (/)

X-debbugs-cc: juri@HIDDEN, dmitry@HIDDEN, sbaugh@HIDDEN

Try this:

1. make a random edit to src/emacs.c
2. open Dired in the root of emacs.git
3. use 'm' to mark src
4. go back up one line, use 'i' to insert src
5. move down to emacs.c, use 'm' to mark that as well
6. C-x v v

This gets you a VC-Dir in which both src/ and src/emacs.c are marked.

--8<---------------cut here---------------start------------->8---
                         ./
  *                      src/
  *  edited              src/emacs.c
--8<---------------cut here---------------end--------------->8---

But usually, you cannot get into this state.  If you try to mark src/
when src/emacs.c is already marked, you can't, and vice-versa.

This is not just a display inconsistency, because it changes the list of
files that vc-dir-deduce-fileset returns.

I think that dired-vc-next-action has the more useful behaviour.
Freely marking and unmarking individual entries in VC-Dir would make it
easier to use.  So I would like to make that possible.  We can guard it
behind a defcustom so people can retain the old marking behaviour if
they prefer it.

So my proposal to make things more consistent would be:

- a new defcustom, which when non-nil, allows freely marking both files
  in directories, and those directories themselves, in VC-Dir

  (I think we should default it to non-nil)

- fix dired-vc-next-action to respect that defcustom, i.e., when it is
  nil, dired-vc-next-action shouldn't generate a VC-Dir buffer with
  both src/ and src/emacs.c marked, in the example above

- change vc-dir-deduce-fileset to filter out individual files when the
  directory containing them is marked.  E.g.

  --8<---------------cut here---------------start------------->8---
                           ./
    *                      src/
    *  edited              src/emacs.c
  --8<---------------cut here---------------end--------------->8---
  Currently vc-dir-deduce-fileset returns ("src/" "src/emacs.c"),
  it should return just ("src/").

I think that for all the operations VC supports, passing a whole
directory along with some of the files in it is semantically equivalent
to just passing the whole directory.  If would have to be an esoteric,
highly VCS-specific operation to do anything other than that, I think?

For a case like this:
--8<---------------cut here---------------start------------->8---
                         ./
   *                     src/
   * edited              src/cm.c
     edited              src/emacs.c
--8<---------------cut here---------------end--------------->8---

the UI is a little confusing, because any operation will also act on
emacs.c, but it is not marked.  I would propose that we add another
symbol next to src/emacs.c, say '-', in a less prominently coloured
face, indicating that despite not having been explictly marked, it is
still effectively part of the fileset:

--8<---------------cut here---------------start------------->8---
                         ./
   *                     src/
   * edited              src/cm.c
   - edited              src/emacs.c
--8<---------------cut here---------------end--------------->8---
(imagine the '-' is in a different colour).

How does this design look?

-- 
Sean Whitton




Acknowledgement sent to Sean Whitton <spwhitton@HIDDEN>:
New bug report received and forwarded. Copy sent to juri@HIDDEN, dmitry@HIDDEN, sbaugh@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to juri@HIDDEN, dmitry@HIDDEN, sbaugh@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#76769; 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: Sun, 16 Mar 2025 03:45:03 UTC

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