[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: grep error because of bad previous input

From: Sam Steingold
Subject: Re: grep error because of bad previous input
Date: Thu, 27 Jul 2006 14:16:04 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> * Chong Yidong <address@hidden> [2006-07-27 13:51:00 -0400]:
> Sam Steingold <address@hidden> writes:
>> GNU Emacs (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"))

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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]