unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* dired-move-to-filename-regexp and iso dates in filenames
@ 2003-01-30  7:46 Jens Petersen
  2003-01-30  8:26 ` Miles Bader
  0 siblings, 1 reply; 2+ messages in thread
From: Jens Petersen @ 2003-01-30  7:46 UTC (permalink / raw)
  Cc: Paul Eggert

Hello,

Dired has trouble dealing with filenames containing iso
dates and whitespace.  Not sure how easy it is fix in
`dired-move-to-filename-regexp' without breaking other more
common cases though.  It seems to me that it is crying out
for proper parsing of directory listings, but anyway...

Any comments?  I was informed of this bug by the bug report
<http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=83068>.

Jens

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: dired-move-to-filename-regexp and iso dates in filenames
  2003-01-30  7:46 dired-move-to-filename-regexp and iso dates in filenames Jens Petersen
@ 2003-01-30  8:26 ` Miles Bader
  0 siblings, 0 replies; 2+ messages in thread
From: Miles Bader @ 2003-01-30  8:26 UTC (permalink / raw)
  Cc: emacs-devel

Jens Petersen <petersen@redhat.com> writes:
> Dired has trouble dealing with filenames containing iso
> dates and whitespace.  Not sure how easy it is fix in
> `dired-move-to-filename-regexp' without breaking other more
> common cases though.  It seems to me that it is crying out
> for proper parsing of directory listings, but anyway...
> 
> Any comments?  I was informed of this bug by the bug report
> <http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=83068>.

The best thing to do is to (1) make sure you're using GNU ls, and (2) set
`dired-use-ls-dired' to non-nil (this will be done automatically if
(string-match "gnu" system-configuration) is true, which is the case on
debian systems at least).

This will make dired use `ls --dired' which completely avoids all the
problems with parsing ls output (because ls includes info about where the
filenames are in its output).

-Miles
-- 
`The suburb is an obsolete and contradictory form of human settlement'

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-30  8:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-01-30  7:46 dired-move-to-filename-regexp and iso dates in filenames Jens Petersen
2003-01-30  8:26 ` Miles Bader

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).