From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: find.el --- Build a valid find(1) command with sexps Date: Tue, 01 Apr 2008 12:55:03 -0400 Message-ID: References: <87k5ji3jd6.fsf@shellarchive.co.uk> Reply-To: rms@gnu.org NNTP-Posting-Host: lo.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: ger.gmane.org 1207068954 3983 80.91.229.12 (1 Apr 2008 16:55:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2008 16:55:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Phil Jackson Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 01 18:56:16 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JgjmJ-0004kV-0N for ged-emacs-devel@m.gmane.org; Tue, 01 Apr 2008 18:56:07 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jgjlg-0000Sp-Vw for ged-emacs-devel@m.gmane.org; Tue, 01 Apr 2008 12:55:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JgjlL-0000Nc-5L for emacs-devel@gnu.org; Tue, 01 Apr 2008 12:55:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JgjlJ-0000Mv-Ij for emacs-devel@gnu.org; Tue, 01 Apr 2008 12:55:06 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JgjlJ-0000Mq-Cd for emacs-devel@gnu.org; Tue, 01 Apr 2008 12:55:05 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JgjlJ-0000eN-7k for emacs-devel@gnu.org; Tue, 01 Apr 2008 12:55:05 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1JgjlH-0005c3-UV; Tue, 01 Apr 2008 12:55:03 -0400 In-reply-to: <87k5ji3jd6.fsf@shellarchive.co.uk> (message from Phil Jackson on Mon, 31 Mar 2008 18:15:33 +0100) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:94126 Archived-At: As the commentary states: (find (prune (name ".svn" ".git" ".CVS")) (and (or (name "*.pl" "*.pm" "*.t") (mtime "+1")) (fstype "nfs" "ufs"))) will become (un-wrapped): "find '/home/phil/' \\( \\( -name '.svn' -or -name '.git' -or -name '.CVS' \\) -prune -or -true \\) \\( \\( \\( -name '*.pl' -or -name '*.pm' -or -name '*.t' \\) -or -mtime '+1' \\) -and \\( -fstype 'nfs' -or -fstype 'ufs' \\) \\)" That seems like a nice feature to add to Emacs, though I think the entry point's name needs to be something longer than just `find'. Also, I think that it should be a function rather than a macro. (That would require explicitly quoting the arguments.)