From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: kg6mar@gmail.com Newsgroups: gmane.emacs.help Subject: Dired confused by filenames starting with date-like strings Date: 23 Aug 2006 11:15:34 -0700 Organization: http://groups.google.com Message-ID: <1156356934.469929.210320@i3g2000cwc.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1156358438 26902 80.91.229.2 (23 Aug 2006 18:40:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Aug 2006 18:40:38 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Aug 23 20:40:38 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GFxeO-0003JK-8d for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Aug 2006 20:40:29 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFxeN-00045h-Lx for geh-help-gnu-emacs@m.gmane.org; Wed, 23 Aug 2006 14:40:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!i3g2000cwc.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 33 Original-NNTP-Posting-Host: 70.191.48.113 Original-X-Trace: posting.google.com 1156356940 18296 127.0.0.1 (23 Aug 2006 18:15:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 23 Aug 2006 18:15:40 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.0.6) Gecko/20060728 Firefox/1.5.0.6,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: i3g2000cwc.googlegroups.com; posting-host=70.191.48.113; posting-account=aQP3-AwAAADkgdkfsEmf0-7Y_0gZlUvo Original-Xref: shelby.stanford.edu gnu.emacs.help:141259 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:36883 Archived-At: Dired gets confused by certain filenames in which the beginning resembles a date and there is an embedded space (my photograph naming convention). It fails to assemble the entire filename. Example: -rw-rw-rw- 1 John root 1113559 Oct 12 2005 04 Project - Front caulking.JPG -r--r--r-- 1 John root 1924322 Sep 5 2005 2005-09-05 002.JPG Dired correctly interprets the first filename as "04 Project - Front caulking.JPG" but incorrectly thinks that the second file is named "002.JPG" instead of "2005-09-05 002.JPG" The behavior manifests itself in operations like Copy and Rename. I googled my way to looking at dired-move-to-filename-regexp, but its value is very complex relative to my regexp skill, and anything I do to it will likely have unintended consequences. (Adding the -b flag to dired-listing-switches did nothing.) I'm going to dig into it the best I can, but I also want to put it out here and see if someone else has been here before. Emacs-version's value is "21.3.1" Operating system is Windows XP. I'd rather not rename all my photographs (well, actually, I do, and that's how I discovered this). Thanks, and hail Emacs -- John