GNU bug report logs - #54636
dired fails to update subdirs when files are created/deleted/renamed

Previous Next

Package: emacs;

Reported by: Andreas Schwab <schwab <at> linux-m68k.org>

Date: Wed, 30 Mar 2022 11:16:02 UTC

Severity: normal

Merged with 51486

Found in version 28.0.60

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Tassilo Horn <tsdh <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 54636 <at> debbugs.gnu.org, schwab <at> linux-m68k.org
Subject: bug#54636: dired fails to update subdirs when files are created/deleted/renamed
Date: Wed, 30 Mar 2022 15:29:36 +0200
Eli Zaretskii <eliz <at> gnu.org> writes:

>> Oh, sorry, I'll look into it ASAP.  I guess this is to be corrected
>> in emacs-28?
>
> Yes.
>
> I think I just fixed it there, please take a look.

That's what I was about to do, too, but that's not right, too.  Say you
have dired buffers for

  ~/
  ~/foo/
  ~/foo/bar/

and then delete ~/foo from inside the ~/ dired buffer.  You'll be asked
if the buffers for foo should be delete, too, and when you confirm, what
is deleted are the buffers ~/ and ~/foo but ~/foo/bar persists.  So the
buffers are deleted downwards (to the root) instead of upwards which is
wrong.

I guess I recognized that in 7b50ed553f and switched the arguments for
that very reason.  (file-in-directory-p has the same argument order as
dired-in-this-tree.)

Bye,
Tassilo




This bug report was last modified 1 year and 319 days ago.

Previous Next


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