help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dired confused by filenames starting with date-like strings


From: kg6mar
Subject: Dired confused by filenames starting with date-like strings
Date: 23 Aug 2006 11:15:34 -0700
User-agent: G2/0.2

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]