[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).
-Miles
--
Ich bin ein Virus. Mach' mit und kopiere mich in Deine .signature.
- dired-move-to-filename-regexp, Lars Hansen, 2004/09/19
- Re: dired-move-to-filename-regexp, Paul Eggert, 2004/09/19
- Re: dired-move-to-filename-regexp, Richard Stallman, 2004/09/19
- Re: dired-move-to-filename-regexp, Paul Eggert, 2004/09/20
- Re: dired-move-to-filename-regexp,
Miles Bader <=
- Re: dired-move-to-filename-regexp, Richard Stallman, 2004/09/21
- Re: dired-move-to-filename-regexp, Paul Eggert, 2004/09/22
- Re: dired-move-to-filename-regexp, Richard Stallman, 2004/09/23
- Re: dired-move-to-filename-regexp, Stefan Monnier, 2004/09/23
- Re: dired-move-to-filename-regexp, Richard Stallman, 2004/09/24
- Re: dired-move-to-filename-regexp, Stefan, 2004/09/25
- Re: dired-move-to-filename-regexp, Richard Stallman, 2004/09/25
- Re: dired-move-to-filename-regexp, Stefan, 2004/09/25
- Re: dired-move-to-filename-regexp, Richard Stallman, 2004/09/26
- Re: dired-move-to-filename-regexp, Stefan, 2004/09/28