From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Matthew Mundell Newsgroups: gmane.emacs.devel Subject: Re: dired-do-touch Date: 27 Mar 2004 16:13:10 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87ekre6zft.fsf@sno.mundell.ukfsn.org> References: <8765czqqyj.fsf@sno.mundell.ukfsn.org> <8765ctkmdo.fsf@mail.jurta.org> <87k7165zee.fsf@mail.jurta.org> <9681-Sat27Mar2004141724+0300-eliz@gnu.org> <87vfkq1lss.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1080438983 7409 80.91.224.253 (28 Mar 2004 01:56:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Mar 2004 01:56:23 +0000 (UTC) Cc: Eli Zaretskii , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Mar 28 03:56:18 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1B7PX8-0001Xp-00 for ; Sun, 28 Mar 2004 03:56:18 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B7PX7-00021b-00 for ; Sun, 28 Mar 2004 03:56:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B7PMb-0004b2-0x for emacs-devel@quimby.gnus.org; Sat, 27 Mar 2004 20:45:25 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B7PEU-0003JM-E9 for emacs-devel@gnu.org; Sat, 27 Mar 2004 20:37:02 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B7P83-0002ai-IA for emacs-devel@gnu.org; Sat, 27 Mar 2004 20:30:55 -0500 Original-Received: from [199.232.41.8] (helo=mx20.gnu.org) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.30) id 1B7Myu-0005zC-Iz; Sat, 27 Mar 2004 18:12:48 -0500 Original-Received: from [217.158.120.143] (helo=mail.ukfsn.org) by mx20.gnu.org with esmtp (Exim 4.30) id 1B7GTH-000265-1K; Sat, 27 Mar 2004 11:15:43 -0500 Original-Received: from localhost (lucy.ukfsn.org [127.0.0.1]) by mail.ukfsn.org (Postfix) with ESMTP id 4F88FE6D74; Sat, 27 Mar 2004 16:12:21 +0000 (GMT) Original-Received: from mail.ukfsn.org ([127.0.0.1]) by localhost (lucy.ukfsn.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 20026-16; Sat, 27 Mar 2004 16:12:21 +0000 (GMT) Original-Received: from sno.mundell.ukfsn.org (dsl213-218-238-16.as15444.net [213.218.238.16]) by mail.ukfsn.org (Postfix) with ESMTP id 05ED0E6D39; Sat, 27 Mar 2004 16:12:21 +0000 (GMT) Original-Received: from sno.mundell.ukfsn.org ([10.0.0.3]) by sno.mundell.ukfsn.org with esmtp (Exim 3.36 #1 (Debian)) id 1B7GQp-0000KG-00; Sat, 27 Mar 2004 16:13:11 +0000 Original-To: Juri Linkov Original-Lines: 30 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:21005 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21005 Juri Linkov writes: > "Eli Zaretskii" writes: > > I don't understand why you insist on using an external program if > > Emacs could easily have a primitive to do the same. I think using an > > Emacs primitive is faster, in addition to being more portable. > > I don't see a reason why changing file time should differ from > operations changing other file attributes like mode, owner and > group. So you're suggesting to use an external program until a date can be entered with the version of dired-do-touch which uses a primitive? It sounds like a good idea. The set-file-times primitive can still be installed. > I don't insist on using external programs. If Emacs primitives are > faster, then other dired commands for changing other file attributes > should be modified to use Emacs primitives too. > > > The patch to add set-file-times is already reviewed by at least 2 > > Emacs maintainers, and is IMHO ready for being checked in. > > It don't allow to change file times to values other than current time. The primitive allows any time to be set. However, the dired-do-time patch which uses the primitive always uses the current time. For this to accept an arbitrary time it needs to parse the time from a user-supplied string. Is there a Lisp function which does this?