From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Haselwarter Newsgroups: gmane.emacs.bugs Subject: bug#10262: 24.0.91; find-dired ignores cdr of find-ls-option Date: Thu, 12 Jan 2012 11:44:06 +0100 Message-ID: <87y5tdqjyh.fsf@nzebook.haselwarter.org> References: <87pqfwtmr9.fsf@nzebook.haselwarter.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1326365080 555 80.91.229.12 (12 Jan 2012 10:44:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 12 Jan 2012 10:44:40 +0000 (UTC) Cc: 10262@debbugs.gnu.org To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jan 12 11:44:36 2012 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RlI95-0001p1-7C for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jan 2012 11:44:35 +0100 Original-Received: from localhost ([::1]:58024 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlI94-0002Sy-Ox for geb-bug-gnu-emacs@m.gmane.org; Thu, 12 Jan 2012 05:44:34 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:55156) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlI92-0002Sn-Rj for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2012 05:44:33 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RlI91-00064y-Sm for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2012 05:44:32 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RlI91-00064m-RN for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2012 05:44:31 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1RlI9W-0005gF-2I for bug-gnu-emacs@gnu.org; Thu, 12 Jan 2012 05:45:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Haselwarter Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 12 Jan 2012 10:45:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 10262 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 10262-submit@debbugs.gnu.org id=B10262.132636508421797 (code B ref 10262); Thu, 12 Jan 2012 10:45:02 +0000 Original-Received: (at 10262) by debbugs.gnu.org; 12 Jan 2012 10:44:44 +0000 Original-Received: from localhost ([127.0.0.1]:54636 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1RlI9D-0005fW-GH for submit@debbugs.gnu.org; Thu, 12 Jan 2012 05:44:44 -0500 Original-Received: from mailout-de.gmx.net ([213.165.64.22]:44952) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1RlI9B-0005fN-14 for 10262@debbugs.gnu.org; Thu, 12 Jan 2012 05:44:42 -0500 Original-Received: (qmail invoked by alias); 12 Jan 2012 10:44:09 -0000 Original-Received: from 52.65.113.78.rev.sfr.net (EHLO nzebook.haselwarter.org) [78.113.65.52] by mail.gmx.net (mp028) with SMTP; 12 Jan 2012 11:44:09 +0100 X-Authenticated: #26138819 X-Provags-ID: V01U2FsdGVkX1+3KOQlbCa3bLTCLIwuGvMdhQ6ak0hY4ibT6kxhtU VTN5zXmqNcyo46 X-NSA-Fodder: bomb JPL STARLAN Noriega Montenegro Adriatic UOP Delta Force X-Zippy-Says: Yow! Legally-imposed CULTURE-reduction is CABBAGE-BRAINED! In-Reply-To: (Glenn Morris's message of "Thu, 12 Jan 2012 03:43:08 -0500") User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.92 (gnu/linux) X-Y-GMX-Trusted: 0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:55658 Archived-At: Glenn Morris writes: > Philipp Haselwarter wrote: > >> Setting the cdr of `find-ls-option' does change the output of >> `find-dired'. The problem seems to be with `dired-mode' >> (cf. find-emacs.gz line 176). >> >> To reproduce: >> >> (progn >> (setq find-ls-option '("-ls" . "-dlbh")) >> (find-file "/tmp") >> (call-interactively 'find-dired)) >> >> confirm twice: >> >> "RET" "RET" > > > I think this is a misunderstanding. You can't just change the cdr of > find-ls-option, you have to change the car as well. find will produce > the file listing using the option specified in the car, then Emacs > switches to dired-mode, with the cdr telling it how to parse the output > of find. > > So you probably want to use: > > (setq find-ls-option '("-exec ls -dlbh {} +" . "-dlbh")) Thanks, I had a misconception about how much of the parsing was done by dired, your solution works perfectly! Adding it as an example to the docstring of `find-ls-option' would certainly clarify things. -- Philipp Haselwarter