GNU bug report logs - #70725
29.3; dired-do-touch completion

Previous Next

Package: emacs;

Reported by: Christopher Howard <christopher <at> librehacker.com>

Date: Thu, 2 May 2024 19:53:01 UTC

Severity: normal

Found in version 29.3

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: Thierry Volpiatto <thievol <at> posteo.net>
To: Juri Linkov <juri <at> linkov.net>
Cc: christopher <at> librehacker.com, Eli Zaretskii <eliz <at> gnu.org>, 70725 <at> debbugs.gnu.org
Subject: bug#70725: 29.3; dired-do-touch completion
Date: Mon, 06 May 2024 05:40:36 +0000
[Message part 1 (text/plain, inline)]
Juri Linkov <juri <at> linkov.net> writes:

>> I didn't check carefully and I see now that the prompt says "now" for
>> DEFAULT but indeed the DEFAULT is the timestamp of the selected file and
>> not `current-time`, so to reflect what the prompt says (now) we have to
>> modify DEFAULT, maybe like this in `dired-do-chxxx`:
>>
>> @@ -437,4 +437,7 @@
>> -			   (format-time-string
>> -			    "%Y%m%d%H%M.%S"
>> -			    (file-attribute-modification-time
>> -			     (file-attributes default-file))))
>> +			   (list
>> +                            (format-time-string
>> +			     "%Y%m%d%H%M.%S" (current-time))
>> +                            (format-time-string
>> +			     "%Y%m%d%H%M.%S"
>> +			     (file-attribute-modification-time
>> +			      (file-attributes default-file)))))
>
> This breaks "now" that would not be "now" anymore because of
> special-handling that uses "-t":

Yes exactly like current code, see below.

What I see and is wrong IMO is:

- DEFAULT is the timestamp of the current file at point and prompt says
that DEFAULT is "now".

- Pressing RET should use DEFAULT, but IIUC what you say, it returns
current-time timestamp, is it correct?
If so this is another inconsistency, RET should always return DEFAULT with an
empty prompt.

-- 
Thierry
[signature.asc (application/pgp-signature, inline)]

This bug report was last modified 1 year 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.