From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: dired-move-to-filename-regexp Date: Mon, 20 Sep 2004 01:00:06 -0400 Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: <20040920050006.GA7888@fencepost> References: <414D38E0.4080300@math.ku.dk> <7w8yb6wty1.fsf@sic.twinsun.com> <7wr7oxzgs4.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 1095656445 25352 80.91.229.6 (20 Sep 2004 05:00:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 20 Sep 2004 05:00:45 +0000 (UTC) Cc: larsh@math.ku.dk, rms@gnu.org, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Sep 20 07:00:32 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 1C9GHw-0006gy-00 for ; Mon, 20 Sep 2004 07:00:32 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9GNn-0007pe-EY for ged-emacs-devel@m.gmane.org; Mon, 20 Sep 2004 01:06:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C9GNg-0007pZ-2e for emacs-devel@gnu.org; Mon, 20 Sep 2004 01:06:28 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C9GNf-0007pN-KM for emacs-devel@gnu.org; Mon, 20 Sep 2004 01:06:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C9GNf-0007pK-IL for emacs-devel@gnu.org; Mon, 20 Sep 2004 01:06:27 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C9GHd-00030w-6q for emacs-devel@gnu.org; Mon, 20 Sep 2004 01:00:13 -0400 Original-Received: from miles by fencepost.gnu.org with local (Exim 4.34) id 1C9GHW-0002cM-LA; Mon, 20 Sep 2004 01:00:06 -0400 Original-To: Paul Eggert , Paul Eggert Content-Disposition: inline In-Reply-To: <7wr7oxzgs4.fsf@sic.twinsun.com> User-Agent: Mutt/1.3.28i Blat: Foop 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:27306 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:27306 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.