From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: bug#5537: rgrep doesn't check if DIR exists Date: Mon, 08 Feb 2010 21:30:23 -0700 Message-ID: References: <87bpg1pzvu.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265691148 16190 80.91.229.12 (9 Feb 2010 04:52:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Feb 2010 04:52:28 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 09 05:52:26 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nei5J-0002wu-Ko for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Feb 2010 05:52:25 +0100 Original-Received: from localhost ([127.0.0.1]:44983 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nei5J-0003fc-3x for geb-bug-gnu-emacs@m.gmane.org; Mon, 08 Feb 2010 23:52:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nei5E-0003fV-I5 for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2010 23:52:20 -0500 Original-Received: from [199.232.76.173] (port=54406 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nei5E-0003fN-6Q for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2010 23:52:20 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nei5C-0005ub-MX for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2010 23:52:19 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47734) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nei5C-0005uX-FV for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2010 23:52:18 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nehla-0007JE-3e; Mon, 08 Feb 2010 23:32:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Kevin Rodgers Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Feb 2010 04:32:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5537 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@debbugs.gnu.org id=B.126568986628074 (code B ref -1); Tue, 09 Feb 2010 04:32:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 9 Feb 2010 04:31:06 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nehkg-0007Il-71 for submit@debbugs.gnu.org; Mon, 08 Feb 2010 23:31:06 -0500 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NehkS-0007IK-6L for submit@debbugs.gnu.org; Mon, 08 Feb 2010 23:31:04 -0500 Original-Received: from mx10.gnu.org ([199.232.76.166]:41867) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NehkO-0001Mk-TE for submit@debbugs.gnu.org; Mon, 08 Feb 2010 23:30:48 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NehkO-0004Ma-3D for submit@debbugs.gnu.org; Mon, 08 Feb 2010 23:30:48 -0500 Original-Received: from lists.gnu.org ([199.232.76.165]:58922) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NehkN-0004MU-TW for submit@debbugs.gnu.org; Mon, 08 Feb 2010 23:30:47 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NehkN-0006jH-CV for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2010 23:30:47 -0500 Original-Received: from [199.232.76.173] (port=44087 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NehkL-0006j0-LF for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2010 23:30:45 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NehkK-0004MK-Ij for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2010 23:30:45 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:43692) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NehkK-0004MF-7C for bug-gnu-emacs@gnu.org; Mon, 08 Feb 2010 23:30:44 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1NehkH-0001Xy-3h for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 05:30:41 +0100 Original-Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Feb 2010 05:30:41 +0100 Original-Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 09 Feb 2010 05:30:41 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) In-Reply-To: <87bpg1pzvu.fsf@jidanni.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 08 Feb 2010 23:32:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34968 Archived-At: 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