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

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

Re: Dired doesn't understand localized file dates


From: Paul Stoeber
Subject: Re: Dired doesn't understand localized file dates
Date: Tue, 4 Jun 2002 15:12:51 +0200
User-agent: Mutt/1.3.28i

On Tue, Jun 04, 2002 at 02:13:08PM +0200, Paul Stoeber wrote:
> On Tue, Jun 04, 2002 at 01:26:42PM +0200, Paul Stoeber wrote:
> > (setq dired-move-to-filename-regexp "^ *[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ 
> > +[^ ]+ +[^ ]+ +[^ ]+ +")
> 
> (setq dired-move-to-filename-regexp "^. [^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +[^ 
> ]+ +[^ ]+ +[^ ]+ +")
> 
> is a better bet.

That's defeated by filenames starting with space.  Next try:

(setq dired-move-to-filename-regexp "^. [^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +[^ ]+ +[^ 
]+ +[^ ]+ +[^ ]+ ")

It relies on `ls' always printing the date as three space-separated fields,
      and on the last field of the date being right-justified,
      and on `ls' emitting no tabs for justification (GNU ls is okay),
      and on user+group names containing no space,
      and on Dired not laying further traps like marking,
      and on, and on, ...
Damn, it must be wrong, but I won't post further corrections.

Look at the default value of dired-move-to-filename-regexp.

Exercises
  1. [49]  Convice yourself of the fact that Dired is not ill-designed.



reply via email to

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