[Top][All Lists]

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

Re: dired-move-to-filename-regexp

From: Miles Bader
Subject: Re: dired-move-to-filename-regexp
Date: Mon, 20 Sep 2004 01:00:06 -0400
User-agent: Mutt/1.3.28i

On Sun, Sep 19, 2004 at 09:49:15PM -0700, Paul Eggert wrote:
> > If there is a reliable, trouble-free and quick way to check
> > whether the ls program supports --dired, that could be used instead.
> Why not have Emacs try "ls -l --dired" first, and, if that doesn't
> work, fall back on "ls -l" without --dired?  The --dired usage would
> be considered to "work" only if the output ended in the required
> //DIRED// and //DIRED-OPTIONS// lines in the proper forms.
> This procedure should be reliable in practice.

BTW, an annoying thing asbout recent versions of ls with emacs is that when
you rename a file in dired, it calls `ls' with just that file to regenerate
its dired line, but since ls only seems the oneo entry, it shrinks all the
numeric/name fields to their minimum size, so the updated line doesn't match
the rest of the output.

One way this might be fixed would be to have --dired output a "spec" for the
output it generates (e.g., a list of field widths it used), and then also
have an option to ls to use a given "spec" to set the fields widths (which
emacs would then pass in from the previous --dired output).

Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.

reply via email to

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