From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: dired-move-to-filename-regexp Date: Sun, 19 Sep 2004 21:49:15 -0700 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <7wr7oxzgs4.fsf@sic.twinsun.com> References: <414D38E0.4080300@math.ku.dk> <7w8yb6wty1.fsf@sic.twinsun.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1095655788 24281 80.91.229.6 (20 Sep 2004 04:49:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Sep 2004 04:49:48 +0000 (UTC) Cc: larsh@math.ku.dk, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 20 06:49:34 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C9G7J-0006Mk-00 for ; Mon, 20 Sep 2004 06:49:34 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9GDB-00057J-C5 for ged-emacs-devel@m.gmane.org; Mon, 20 Sep 2004 00:55:37 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9GD5-00056f-1F for emacs-devel@gnu.org; Mon, 20 Sep 2004 00:55:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9GD1-00055k-GP for emacs-devel@gnu.org; Mon, 20 Sep 2004 00:55:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9GD1-00055a-Eg for emacs-devel@gnu.org; Mon, 20 Sep 2004 00:55:27 -0400 Original-Received: from [198.147.65.9] (helo=alcor.twinsun.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1C9G73-0001XB-Nr; Mon, 20 Sep 2004 00:49:18 -0400 Original-Received: from sic.twinsun.com ([192.54.239.17]) by alcor.twinsun.com (8.12.9/8.12.9) with ESMTP id i8K4nF7w001942; Sun, 19 Sep 2004 21:49:15 -0700 (PDT) Original-Received: from pete.twinsun.com (pete.twinsun.com [192.54.239.43]) by sic.twinsun.com (8.11.7p1+Sun/8.11.7) with SMTP id i8K4nF303085; Sun, 19 Sep 2004 21:49:15 -0700 (PDT) Original-Received: from sic.twinsun.com ([192.54.239.17]) by pete.twinsun.com (SMSSMTP 4.0.0.59) with SMTP id M2004091921491401365 ; Sun, 19 Sep 2004 21:49:14 -0700 Original-Received: (from eggert@localhost) by sic.twinsun.com (8.11.7p1+Sun/8.11.7) id i8K4nF403081; Sun, 19 Sep 2004 21:49:15 -0700 (PDT) Original-To: rms@gnu.org Original-From: Paul Eggert In-Reply-To: (Richard Stallman's message of "Sun, 19 Sep 2004 20:05:36 -0400") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (usg-unix-v) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:27305 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27305 Richard Stallman 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.