Subject: Re: bug#5537: rgrep doesn't check if DIR exists

From: Kevin Rodgers <[email-masked]>
Date: Mon, 08 Feb 2010 21:30:23 -0700

[email-masked] wrote:
> (rgrep REGEXP &optional FILES DIR CONFIRM)
> Doesn't check if DIR exists!!

I think it does: When called interactively, it only lets you complete on
existing directory names.  And when called non-interactively with a non-
existent directory, I get:

Debugger entered--Lisp error: (error "~/bar/: no such directory")
   signal(error ("~/bar/: no such directory"))
   error("%s: no such directory" "~/bar/")
   cd-absolute("/Users/kevin/bar/")
   cd("/Users/kevin/bar/")
   compilation-start("find . \\( -path \\*/CVS -o -path \\*/.svn -o -path 
\\*/\\{arch\\} -o -path \\*/.hg -o -path \\*/_darcs -o -path \\*/.git -o -path 
\\*/.bzr \\) -prune -o  -type f \\( -iname \\*.\\[ch\\] \\) -exec grep -i -nH -e 
foo {} /dev/null \\;" grep-mode)
   rgrep("foo" "*.[ch]" "~/bar")
   eval((rgrep "foo" "*.[ch]" "~/bar"))
   eval-last-sexp-1(t)
   eval-last-sexp(t)
   eval-print-last-sexp()
   call-interactively(eval-print-last-sexp)

-- 
Kevin Rodgers
Denver, Colorado, USA