From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: Re: grep-find-command - please include -name *.ext Date: Fri, 15 Dec 2006 04:31:02 +0900 (JST) Message-ID: <20061215.043102.192191828.jet@gyve.org> References: <45817EAB.8010000@student.lu.se> NNTP-Posting-Host: dough.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1166124715 32376 80.91.229.10 (14 Dec 2006 19:31:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 14 Dec 2006 19:31:55 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 14 20:31:53 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by dough.gmane.org with esmtp (Exim 4.50) id 1GuwJ3-0002ep-KR for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2006 20:31:49 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuwJ2-0005VS-LQ for ged-emacs-devel@m.gmane.org; Thu, 14 Dec 2006 14:31:48 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GuwIR-00058v-Hd for emacs-devel@gnu.org; Thu, 14 Dec 2006 14:31:11 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GuwIO-00057A-Fb for emacs-devel@gnu.org; Thu, 14 Dec 2006 14:31:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GuwIO-00056v-7W for emacs-devel@gnu.org; Thu, 14 Dec 2006 14:31:08 -0500 Original-Received: from [210.130.0.20] (helo=mo01.iij4u.or.jp) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GuwIN-0007Sz-Kr for emacs-devel@gnu.org; Thu, 14 Dec 2006 14:31:08 -0500 Original-Received: MO(mo01)id kBEJV4VR021336; Fri, 15 Dec 2006 04:31:04 +0900 (JST) Original-Received: from localhost (h219-110-075-154.catv01.itscom.jp [219.110.75.154]) by r-kk.iij4u.or.jp (4U-MR/r-kk) id kBEJV2ES029760; Fri, 15 Dec 2006 04:31:03 +0900 (JST) Original-To: lennart.borgman.073@student.lu.se In-Reply-To: <45817EAB.8010000@student.lu.se> X-Mailer: Mew version 4.2.53 on Emacs 22.0.51 / Mule 5.0 (SAKAKI) 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:63739 Archived-At: > I think normally when a user wants to search just a certain types of > files. Would it not be good to include > > -name "*.ext" > > or > > -regex ".*\.ext" > > in the arguments to find in grep-find-command? How about M-x rgrep? I support your idea. However, I wonder what kind of value should be used as default argument for -name? Guessing "*.ext" from the major mode of the current buffer is one idea. e.g. c-mode => -name "*.[ch]" emacs-lisp-mode => -name '*.el' But I think there are too many cases that the default value is not enough. In such case the user have to type C-b or M-b many times to modify the default value or remove -name argument. It is not convenient. If you can find good default value and/or good user interface for editing -name argument, I think it is worth implementing. Of course, after releasing. Masatake YAMATO