[Top][All Lists]

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

Re: dired-move-to-filename-regexp

From: Paul Eggert
Subject: Re: dired-move-to-filename-regexp
Date: Sun, 19 Sep 2004 21:49:15 -0700
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (usg-unix-v)

Richard Stallman <address@hidden> writes:

> 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.

reply via email to

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