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

Previous Next

Package: emacs;

Reported by: Sean Whitton <spwhitton <at> spwhitton.name>

Date: Thu, 6 Mar 2025 03:58:02 UTC

Severity: normal

Found in version 31.0.50

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


Message #59 received at 76769 <at> debbugs.gnu.org (full text, mbox):

From: Sean Whitton <spwhitton <at> spwhitton.name>
To: Eli Zaretskii <eliz <at> gnu.org>, dmitry <at> gutov.dev,  76769 <at> debbugs.gnu.org,
 juri <at> linkov.net,  sbaugh <at> janestreet.com
Subject: Re: bug#76769: 31.0.50; marking inconsistency between VC-Dir and
 dired-vc-next-action
Date: Fri, 14 Mar 2025 11:41:34 +0800
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




This bug report was last modified 49 days ago.

Previous Next


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