unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#5537: rgrep doesn't check if DIR exists
@ 2010-02-07  2:01 jidanni
  2010-02-09  4:30 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: jidanni @ 2010-02-07  2:01 UTC (permalink / raw)
  To: 5537

(rgrep REGEXP &optional FILES DIR CONFIRM)
Doesn't check if DIR exists!!

(See also my other [r]grep related bugs...)







^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#5537: rgrep doesn't check if DIR exists
  2010-02-07  2:01 bug#5537: rgrep doesn't check if DIR exists jidanni
@ 2010-02-09  4:30 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2010-02-09  4:30 UTC (permalink / raw)
  To: bug-gnu-emacs

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








^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-09  4:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-07  2:01 bug#5537: rgrep doesn't check if DIR exists jidanni
2010-02-09  4:30 ` Kevin Rodgers

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).