all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Sam Steingold <sds@podval.org>
Cc: emacs-devel@gnu.org
Subject: Re: grep error because of bad previous input
Date: Thu, 27 Jul 2006 14:16:04 -0400	[thread overview]
Message-ID: <alac6usyl7.fsf@quant8.janestcapital.quant> (raw)
In-Reply-To: <87psfr0we3.fsf@stupidchicken.com> (Chong Yidong's message of "Thu, 27 Jul 2006 13:51:00 -0400")

> * Chong Yidong <plq@fghcvqpuvpxra.pbz> [2006-07-27 13:51:00 -0400]:
>
> Sam Steingold <sds@podval.org> 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.

  reply	other threads:[~2006-07-27 18:16 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-27 17:32 grep error because of bad previous input Sam Steingold
2006-07-27 17:51 ` Chong Yidong
2006-07-27 18:16   ` Sam Steingold [this message]
2006-07-27 23:46 ` Richard Stallman
2006-07-28  7:11   ` Stefan Monnier
2006-07-28  7:31     ` David Kastrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alac6usyl7.fsf@quant8.janestcapital.quant \
    --to=sds@podval.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.