From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: grep error because of bad previous input Date: Thu, 27 Jul 2006 14:16:04 -0400 Message-ID: References: <87psfr0we3.fsf@stupidchicken.com> Reply-To: sds@podval.org NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: sea.gmane.org 1154024230 30082 80.91.229.2 (27 Jul 2006 18:17:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 27 Jul 2006 18:17:10 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jul 27 20:16:55 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G6APN-0006rO-WF for ged-emacs-devel@m.gmane.org; Thu, 27 Jul 2006 20:16:30 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6APN-0000A8-B1 for ged-emacs-devel@m.gmane.org; Thu, 27 Jul 2006 14:16:29 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G6AP8-0000A3-7n for emacs-devel@gnu.org; Thu, 27 Jul 2006 14:16:14 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G6AP6-00009l-TR for emacs-devel@gnu.org; Thu, 27 Jul 2006 14:16:13 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G6AP6-00009e-Q8 for emacs-devel@gnu.org; Thu, 27 Jul 2006 14:16:12 -0400 Original-Received: from [66.155.124.107] (helo=janestcapital.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G6AQv-00050N-9B for emacs-devel@gnu.org; Thu, 27 Jul 2006 14:18:05 -0400 Original-Received: from loki.janestcapital.quant [209.213.205.130] by janestcapital.com with ESMTP (SMTPD32-8.13) id A2E9ACB00B0; Thu, 27 Jul 2006 14:16:09 -0400 Original-Received: from quant8.janestcapital.quant (quant8.janestcapital.quant [192.168.250.217]) by loki.janestcapital.quant (Postfix) with ESMTP id ACEA1368219; Thu, 27 Jul 2006 14:16:08 -0400 (EDT) Original-Received: from quant8.janestcapital.quant (PLEASE_CONFIG_NETWORK [127.0.0.1]) by quant8.janestcapital.quant (8.13.7/8.13.5) with ESMTP id k6RIG8U1009416; Thu, 27 Jul 2006 14:16:08 -0400 Original-Received: (from sds@localhost) by quant8.janestcapital.quant (8.13.7/8.13.7/Submit) id k6RIG40w009415; Thu, 27 Jul 2006 14:16:04 -0400 X-Authentication-Warning: quant8.janestcapital.quant: sds set sender to sds@podval.org using -f Original-To: Chong Yidong Mail-Copies-To: never X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. In-Reply-To: <87psfr0we3.fsf@stupidchicken.com> (Chong Yidong's message of "Thu, 27 Jul 2006 13:51:00 -0400") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:57694 Archived-At: > * Chong Yidong [2006-07-27 13:51:00 -0400]: > > Sam Steingold writes: > >> GNU Emacs 22.0.50.3 (i686-pc-linux-gnu, X toolkit, Xaw3d scroll bars) >> of 2006-07-24 on quant8 >> >> M-x grep RET >> foo *.lis[ RET ;; typo: "[" instead of "p" >> M-x grep RET >> >> ==> >> >> Debugger entered--Lisp error: (args-out-of-range "*.lis[" 6) >> wildcard-to-regexp("*.lis[") > > I can't reproduce this. (setq grep-history '("grep -nH -e compute-discriminating-function *.lis[")) (let ((buffer-file-name "foo")) (grep-default-command)) i.e., 1. last grep command must have a regexp-like wildcard for filenames 2. the current buffer must be named. -- Sam Steingold (http://www.podval.org/~sds) on Fedora Core release 5 (Bordeaux) http://camera.org http://thereligionofpeace.com http://ffii.org http://dhimmi.com http://jihadwatch.org http://iris.org.il http://pmw.org.il Vegetarians eat Vegetables, Humanitarians are scary.