[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#5537: rgrep doesn't check if DIR exists
From: |
Kevin Rodgers |
Subject: |
bug#5537: rgrep doesn't check if DIR exists |
Date: |
Mon, 08 Feb 2010 21:30:23 -0700 |
User-agent: |
Thunderbird 2.0.0.23 (Macintosh/20090812) |
jidanni@jidanni.org 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