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:09:04 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87k7166zmn.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> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1080437873 5849 80.91.224.253 (28 Mar 2004 01:37:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 28 Mar 2004 01:37:53 +0000 (UTC) Cc: Juri Linkov , rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Mar 28 03:37:45 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 1B7PFB-00012v-00 for ; Sun, 28 Mar 2004 03:37:45 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B7PFB-0001Lw-00 for ; Sun, 28 Mar 2004 03:37:45 +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 1B7Os5-0007aa-Mq for emacs-devel@quimby.gnus.org; Sat, 27 Mar 2004 20:13:53 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B7NDh-0008EJ-4C for emacs-devel@gnu.org; Sat, 27 Mar 2004 18:28:05 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B7NCz-00084l-Ju for emacs-devel@gnu.org; Sat, 27 Mar 2004 18:27:53 -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 1B7Mz3-0005zC-Bs; Sat, 27 Mar 2004 18:12:57 -0500 Original-Received: from [217.158.120.143] (helo=mail.ukfsn.org) by mx20.gnu.org with esmtp (Exim 4.30) id 1B7GPJ-0001dx-Do; Sat, 27 Mar 2004 11:11:37 -0500 Original-Received: from localhost (lucy.ukfsn.org [127.0.0.1]) by mail.ukfsn.org (Postfix) with ESMTP id 9E0D8E6D74; Sat, 27 Mar 2004 16:08:15 +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 19738-17; Sat, 27 Mar 2004 16:08:15 +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 1676AE6E2B; Sat, 27 Mar 2004 16:08:15 +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 1B7GMr-0000KE-00; Sat, 27 Mar 2004 16:09:05 +0000 Original-To: Eli Zaretskii 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:21003 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21003 "Eli Zaretskii" writes: > > From: Juri Linkov > > Date: Sat, 27 Mar 2004 12:59:21 +0200 > > > > Below is the patch for the new T command. It uses the external touch > > program and behaves like other dired commands `chmod', `chgrp' and `chown'. > > > > I suggest to install this patch first. Then I suggest to consider and > > install the patch that allows the initial default values for > > dired-do-touch, dired-do-chmod, dired-do-chgrp, dired-do-chown and > > some other dired commands. > > > > And after this I suggest to install the patch posted by Matthew Mundell > > that uses the new function `set-file-times', with small modifications > > which will allow to use it instead of the external program in cases > > when there is no touch program installed or depending on a new user option. > > 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 also think an available primitive should take preference over an external program. For now, using the set-file-times primitive prevents the Dired interface from taking an arbitrary time. > The patch to add set-file-times is already reviewed by at least 2 > Emacs maintainers, and is IMHO ready for being checked in. He's challenging only the Dired changes, I think.