From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Christoph Newsgroups: gmane.emacs.bugs Subject: bug#6665: 24.0.50; rgrep does not work on Windows Date: Sun, 18 Jul 2010 22:00:16 -0600 Message-ID: <4C43CDD0.10308@gmail.com> References: <86hbjwhnc7.fsf@gmail.com> <83eif0emqp.fsf@gnu.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: dough.gmane.org 1279513847 10167 80.91.229.12 (19 Jul 2010 04:30:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 19 Jul 2010 04:30:47 +0000 (UTC) Cc: 6665@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 19 06:30:46 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 1Oai03-0001Fw-4i for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jul 2010 06:30:43 +0200 Original-Received: from localhost ([127.0.0.1]:41917 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oai02-0002ZK-G5 for geb-bug-gnu-emacs@m.gmane.org; Mon, 19 Jul 2010 00:30:42 -0400 Original-Received: from [140.186.70.92] (port=56296 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Oahzv-0002ZE-Ec for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2010 00:30:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Oahzu-0005PX-4h for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2010 00:30:35 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49526) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oahzt-0005PT-TS for bug-gnu-emacs@gnu.org; Mon, 19 Jul 2010 00:30:34 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1OahXK-0003so-KF; Mon, 19 Jul 2010 00:01:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Christoph Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 19 Jul 2010 04:01:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6665 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 6665-submit@debbugs.gnu.org id=B6665.127951200514910 (code B ref 6665); Mon, 19 Jul 2010 04:01:02 +0000 Original-Received: (at 6665) by debbugs.gnu.org; 19 Jul 2010 04:00:05 +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 1OahWO-0003sQ-5I for submit@debbugs.gnu.org; Mon, 19 Jul 2010 00:00:04 -0400 Original-Received: from mail-gy0-f172.google.com ([209.85.160.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OahWL-0003rq-P9 for 6665@debbugs.gnu.org; Mon, 19 Jul 2010 00:00:02 -0400 Original-Received: by gyh3 with SMTP id 3so2065348gyh.3 for <6665@debbugs.gnu.org>; Sun, 18 Jul 2010 21:00:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=rwx2sNZy24eUcMUTQwuQXzdudgNDK6hYDpytTM+bC0U=; b=par5+NLHtNsrhd/DD5JugF0KWC7p/Tq6v1mSSfweDIwq/rob9oFDXHGLk5hYRglWZZ TdxGb8lZ0rC2QHctmXCqKvVLh3yIXzFtthdCqv9RSeMS++aMAhURf7brCibE57hFb/4G KrLYXTpKd5e2WvSe2YNvTCu9z0238OP3ef1aQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=cAwmwL+7PHdxQ7Le+gvjtSHvpumH1FaikbdcaX0l1ao+JtQximGn0LFM+KWYW4iVbF IDeyw2mm6IfyBUwVCA4HBhnPwC/QFMpH0ldAWSeI2SFfVdaiufIs1b1jSmskel5N0o+5 JSNO/9hzIMH0ow9unojRzhtptg3Oii9zstZ3o= Original-Received: by 10.101.138.8 with SMTP id q8mr4141784ann.164.1279512021588; Sun, 18 Jul 2010 21:00:21 -0700 (PDT) Original-Received: from [192.168.1.2] (97-122-118-250.hlrn.qwest.net [97.122.118.250]) by mx.google.com with ESMTPS id a12sm61064337and.36.2010.07.18.21.00.19 (version=SSLv3 cipher=RC4-MD5); Sun, 18 Jul 2010 21:00:20 -0700 (PDT) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 In-Reply-To: <83eif0emqp.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 19 Jul 2010 00:01:02 -0400 X-detected-operating-system: by eggs.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:38664 Archived-At: On 7/18/2010 11:14 AM, Eli Zaretskii wrote: >> rgrep does not work on Windows. > > Actually, it does; you just don't like the results ;-) You know, I saw the title in the bug tracker and wondered if someone would pick on that. ;) >> In *scratch* buffer evaluate the following to point to GNU find and grep executables: >> (setq find-program "\"C:/Program Files (x86)/GnuWin32/bin/find.exe\"") >> (setq grep-program "\"C:/Program Files (x86)/GnuWin32/bin/grep.exe\"") > > Why do you need these? Doesn't Emacs find them? No. I usually append the directory of the executables to PATH and set the exec path accordingly in my .emacs. This is more portable than adding it to the path permanently on every computer. The setqs above were just to make it work with `emacs -Q'. I need GNU find because otherwise Windows find complains about incorrect parameter format (maybe a separate issue?). > If you paste all this long command line to the shell window, does the > program work then? (You may need to mirror the slashes for that.) No. I pasted it into cmd.exe and it gives the exact same error. > Also, does the problem go away if you replace "(" with "-(" and ")" > with "-)"? Same result. > Does the problem go away if you copy the two programs to a directory > whose name does not include blanks and parentheses, and invoke them > from there? No. The spaces are not the problem. I enclosed the path in quotes so it finds the correct executable at this path (I omitted the quotes before and it would only find C:\Program). Christoph