GNU bug report logs -
#57334
28.1; Fix wdired with (dired '(dir f1 f2 ...))
Previous Next
Reported by: Thierry Volpiatto <thievol <at> posteo.net>
Date: Mon, 22 Aug 2022 06:37:01 UTC
Severity: normal
Tags: moreinfo
Found in version 28.1
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Thierry Volpiatto <thievol <at> posteo.net> writes:
>>> + (setcdr dired-directory
[...]
> Of course it have to be changed, it has been modified by wdired at this point,
> so if you want to redisplay a dired buffer reflecting your changes you
> have to modify it no ?
I don't understand what you mean.
>> which we shouldn't do.
>
> You already do it when DIRNAME is a string isn't it?
Strings can't be modified.
>> (It may even be a constant.)
>
> Can you elaborate?
If the list is in purespace, for instance, it can't be modified.
In case there's any misunderstanding here, I'm talking about the
destructive alteration of the list pointed to by dired-directory by that
`setcdr' -- not the altering of the dired-directory variable. So the
safe change here would be something like
(setq dired-directory (cons (car dired-directory) (mapcar ...)))
This bug report was last modified 3 years and 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.