From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Eli Zaretskii" Newsgroups: gmane.emacs.devel Subject: Re: dired-do-touch Date: Sun, 21 Mar 2004 20:27:24 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <9787-Sun21Mar2004202723+0200-eliz@elta.co.il> References: <8765czqqyj.fsf@sno.mundell.ukfsn.org> <200403211331.i2LDVE6x002719@beta.mvs.co.il> Reply-To: Eli Zaretskii NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1079894157 17109 80.91.224.253 (21 Mar 2004 18:35:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 21 Mar 2004 18:35:57 +0000 (UTC) Cc: matt@mundell.ukfsn.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sun Mar 21 19:35:33 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 1B57nJ-0001Ux-00 for ; Sun, 21 Mar 2004 19:35:33 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1B57nI-0006GY-00 for ; Sun, 21 Mar 2004 19:35:33 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B57l7-0001ad-Lp for emacs-devel@quimby.gnus.org; Sun, 21 Mar 2004 13:33:17 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1B57ix-0001JW-Cb for emacs-devel@gnu.org; Sun, 21 Mar 2004 13:31:03 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1B57iO-00010y-Go for emacs-devel@gnu.org; Sun, 21 Mar 2004 13:31:00 -0500 Original-Received: from [192.114.186.23] (helo=aragorn.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.30) id 1B57iN-0000xK-47 for emacs-devel@gnu.org; Sun, 21 Mar 2004 13:30:27 -0500 Original-Received: from zaretski ([80.230.144.65]) by aragorn.inter.net.il (MOS 3.4.5-GR) with ESMTP id CPY31335; Sun, 21 Mar 2004 20:30:13 +0200 (IST) Original-To: ehud@unix.mvs.co.il X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <200403211331.i2LDVE6x002719@beta.mvs.co.il> (ehud@unix.mvs.co.il) 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:20692 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:20692 > Date: Sun, 21 Mar 2004 15:31:14 +0200 > From: "Ehud Karni" > > (dired-do-chxxx (concat > "date & TIME (" > (if (eq 'w32 window-system) It is IMHO fundamentally wrong to test window-system here, since the same behavior would be expected from "emacs -nw" running on Windows. I think you want to look at system-type. > "MMDDhhmm[[CC][YY][.ss])" ;; Windows NT/95 system (20.x) > "[[CC][YY]MMDDhhmm.[ss])")) ;; UNIX Why the difference between Windows and Unix? Doesn't the ported `touch' accept on Windows the same format as on Unix and GNU systems? > (defvar dired-touch-program > (cond > ((eq system-type 'ms-dos) nil) ; nil for dos! Why? A ported `touch' (as part of GNU Fileutils) is available on MS-DOS.