From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#4403: 23.1; find-dired: use "find -exec ls -ld {} +" or "find -ls" where available Date: Mon, 14 Sep 2009 22:50:04 -0400 Message-ID: References: <4aaa13d9.11045a0a.0cdc.4719@mx.google.com> Reply-To: Glenn Morris , 4403@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1252984041 28478 80.91.229.12 (15 Sep 2009 03:07:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Sep 2009 03:07:21 +0000 (UTC) Cc: 4403@emacsbugs.donarmstrong.com To: trentbuck@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 15 05:07:14 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MnONs-0002mq-5C for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Sep 2009 05:07:12 +0200 Original-Received: from localhost ([127.0.0.1]:46728 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnONr-0006KM-KJ for geb-bug-gnu-emacs@m.gmane.org; Mon, 14 Sep 2009 23:07:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MnONn-0006Jo-Rl for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 23:07:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MnONj-0006Iu-Dn for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 23:07:07 -0400 Original-Received: from [199.232.76.173] (port=56350 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MnONj-0006Ir-Am for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 23:07:03 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:52257) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MnONi-0005rT-Mn for bug-gnu-emacs@gnu.org; Mon, 14 Sep 2009 23:07:03 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8F370JC020090; Mon, 14 Sep 2009 20:07:00 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n8F305sn018204; Mon, 14 Sep 2009 20:00:05 -0700 Resent-Date: Mon, 14 Sep 2009 20:00:05 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 15 Sep 2009 03:00:05 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4403 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4403-submit@emacsbugs.donarmstrong.com id=B4403.125298300716595 (code B ref 4403); Tue, 15 Sep 2009 03:00:05 +0000 Original-Received: (at 4403) by emacsbugs.donarmstrong.com; 15 Sep 2009 02:50:07 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n8F2o5m2016563 for <4403@emacsbugs.donarmstrong.com>; Mon, 14 Sep 2009 19:50:06 -0700 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1MnO7I-0003zI-Ud; Mon, 14 Sep 2009 22:50:04 -0400 X-Spook: Vickie Weaver CISU security Crowell passwd asset AMW Medco X-Ran: }OSe-Z$/-,yQ;wzI\i%'>r.fZtHI,UV!wD9/-x%TR3p]}$3gm)W_9|9{{ekiW@qu5h7O!l X-Hue: green X-Attribution: GM In-Reply-To: <4aaa13d9.11045a0a.0cdc.4719@mx.google.com> (trentbuck@gmail.com's message of "Fri, 11 Sep 2009 02:09:45 -0700 (PDT)") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 14 Sep 2009 23:07:07 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:31102 Archived-At: trentbuck@gmail.com wrote: > Recent versions of GNU find support the expressions > > find -exec ls -ld {} + > > and > > find -ls > > I believe these are also part of recent versions of the POSIX spec. > > It would be great if M-x find dired RET automatically used these forms You can use something like: (setq find-ls-option (let ((help (shell-command-to-string (format "%s --help" find-program)))) (if (string-match " -ls\\>" help) '("-ls" . "-lids") (if (string-match "{} \\+" help) '("-exec ls -ld {} +" . "-ld") '("-exec ls -ld {} \\;" . "-ld"))))) The -ls version changes the output format. > It would also mean that the output would line up better Surely dired already takes care of the alignment?