From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: dired-do-touch Date: Tue, 30 Mar 2004 12:59:07 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87y8pik470.fsf@mail.jurta.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> <87ekre6zft.fsf@sno.mundell.ukfsn.org> <87oeqitbga.fsf@mail.jurta.org> <87isgo4ub2.fsf@sno.mundell.ukfsn.org> <874qs7wjlk.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 1080644476 6374 80.91.224.253 (30 Mar 2004 11:01:16 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 30 Mar 2004 11:01:16 +0000 (UTC) Cc: matt@mundell.ukfsn.org, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Mar 30 13:01:08 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 1B8GzT-0005im-00 for ; Tue, 30 Mar 2004 13:01:07 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B8GzT-0000E4-00 for ; Tue, 30 Mar 2004 13:01:07 +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 1B8Goq-0005Dk-2s for emacs-devel@quimby.gnus.org; Tue, 30 Mar 2004 05:50:08 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B8GnP-0004oM-99 for emacs-devel@gnu.org; Tue, 30 Mar 2004 05:48:39 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B8Gme-0004QD-9i for emacs-devel@gnu.org; Tue, 30 Mar 2004 05:48:26 -0500 Original-Received: from [66.33.219.4] (helo=spork.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B8Gm6-0004B4-8f; Tue, 30 Mar 2004 05:47:18 -0500 Original-Received: from mail.jurta.org (80-235-41-67-dsl.mus.estpak.ee [80.235.41.67]) by spork.dreamhost.com (Postfix) with ESMTP id F2BD211DC29; Tue, 30 Mar 2004 02:47:14 -0800 (PST) Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "30 Mar 2004 08:50:43 +0200") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) 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:21086 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:21086 Eli Zaretskii writes: >> From: Juri Linkov >> Date: Mon, 29 Mar 2004 22:15:19 +0300 >> While I agree that we don't have to emulate the `touch' program >> format, I think that we ought to add it as one of the possible time >> formats accepted by the `date-to-time' and other Emacs time-parsing >> functions, because this format is very compact which makes it >> convenient for the user to enter. > > ``Convenient''? IMHO, you need to be a CS graduate just to understand > it. Take a look at the Yacc parser summoned for the implementation of > the "--date" option, or at the node in fileutils.info that documents > it. AFAIU, it's what the parse-time.el tries to do. We could just add the "-t TIME" format to it. > Even the simpler "-t TIME" option's format is not easy to get right: I > always confuse the traditional (and insane) MMDDhhmm[YY] format with The older format is purely "ill-logical". > the newer [[CC]YY]MMDDhhmm[.ss] format and need to consult the docs to > be sure I don't screw up my time stamps. The newer format makes more sense because it's like the ISO 8601 format. > I wish Emacs had something more human-friendly, perhaps accessible via > mouse clicks on the date/time fields of the Dired display or some such. It's a good idea to change file attributes diredctly (I mistyped this word instead of "directly", but the new word makes sense :-) on a dired buffer. There also was a suggestion to make dired permission fields editable. BTW, I think that since we will modify the file mode changing command to use the primitive, we could add a `rwxrwxrwx'-like format to formats acceptable by the `set-file-modes' (or perhaps to a new mode-parsing wrapper around it). -- Juri Linkov http://www.jurta.org/emacs/