From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Avi Newsgroups: gmane.emacs.help Subject: How to set the default file pattern for the igrep-find command in c++-mode Date: Mon, 22 Oct 2007 00:09:03 -0700 Organization: http://groups.google.com Message-ID: <1193036943.776917.180780@t8g2000prg.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: ger.gmane.org 1193038953 13107 80.91.229.12 (22 Oct 2007 07:42:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 22 Oct 2007 07:42:33 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Oct 22 09:42:33 2007 Return-path: Envelope-to: geh-help-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 1Ijrvj-0008BW-JK for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Oct 2007 09:42:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ijrvb-0005fS-Oe for geh-help-gnu-emacs@m.gmane.org; Mon, 22 Oct 2007 03:42:23 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!t8g2000prg.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 20 Original-NNTP-Posting-Host: 24.84.37.18 Original-X-Trace: posting.google.com 1193036947 23904 127.0.0.1 (22 Oct 2007 07:09:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 22 Oct 2007 07:09:07 +0000 (UTC) User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; InfoPath.1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: t8g2000prg.googlegroups.com; posting-host=24.84.37.18; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Original-Xref: shelby.stanford.edu gnu.emacs.help:153188 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48690 Archived-At: Hi, I'm looking for a way to set the default file pattern for the igrep- find command. In c-mode, the following line defines a multiple file pattern in one string: (put 'igrep-files-default 'c-mode (lambda () "*.[ch]")) This captures both *.h and *.c files I am looking for something similar for the c++-mode. I have tried the following line: (put 'igrep-files-default 'c++-mode (lambda () "*.[cpp|h]")) but this is parsed as *.c *.p *.h (rather than *.cpp *.h) Another option is to customize the read-multiple-files variable to true. This allows to insert multiple patterns but requires interaction (every pattern needs to be specified and confirmed by clicking on the "Enter" key. Thanks, Avner