From unknown Sat Jun 21 12:14:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6665: 24.0.50; rgrep does not work on Windows 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: Sun, 18 Jul 2010 14:33:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6665 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6665@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.127946357625506 (code B ref -1); Sun, 18 Jul 2010 14:33:01 +0000 Received: (at submit) by debbugs.gnu.org; 18 Jul 2010 14:32:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaUvH-0006dL-0I for submit@debbugs.gnu.org; Sun, 18 Jul 2010 10:32:56 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaUvC-0006ca-Rk for submit@debbugs.gnu.org; Sun, 18 Jul 2010 10:32:52 -0400 Received: from lists.gnu.org ([199.232.76.165]:52766) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OaUvV-0004N1-Et for submit@debbugs.gnu.org; Sun, 18 Jul 2010 10:33:09 -0400 Received: from [140.186.70.92] (port=45219 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaUvT-0004dB-Qu for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 10:33:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OaUvS-0005e8-54 for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 10:33:07 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:64049) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaUvS-0005e0-1o for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 10:33:06 -0400 Received: by gyd12 with SMTP id 12so2360943gyd.0 for ; Sun, 18 Jul 2010 07:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=cZOx+7t3DYrUt9Za4Nun5d0keuP8a6RFiCpvWPvVbyY=; b=HRzpWyj+NeZsrvphvz4vz290t/AvOLKqfiCLbx9D7oc1z+TKtzzRqbGL0WIfoEzIY/ 1TX8VIpevIk4sfG/nKe4SmhWcgFHKegaPnhLYNSfEo3wYcGwGrXvABzdEe68c3f8a/a0 DBj13NMoOB7q3fp8STtsO0HW1m8HNX0iYyWzQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; b=cj5CCgus7XPeG+czhu+FhYPKBmnJ52H24MAEps7Xcg6vYWERjqMklHiQIgVmsi7Pfw lkKedjpwShUTy+FRwH05TCkQsu1k6+0+3Oa4eaYKNdUo+NXOdAeHKoApisLAKNqIZkWk job0O1lqejGwmZaXplmINn1cIu6BqPKVj821g= Received: by 10.100.54.19 with SMTP id c19mr3661614ana.71.1279463584681; Sun, 18 Jul 2010 07:33:04 -0700 (PDT) Received: from localhost (97-122-118-250.hlrn.qwest.net [97.122.118.250]) by mx.google.com with ESMTPS id b17sm53435226anh.5.2010.07.18.07.33.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 18 Jul 2010 07:33:03 -0700 (PDT) From: Christoph Date: Sun, 18 Jul 2010 08:32:56 -0600 Message-ID: <86hbjwhnc7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.3 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) rgrep does not work on Windows. I am using the GnuWin32 versions of find and grep and find returns an error when used by Emacs' rgrep. Start Emacs with `emacs -Q'.=20 In *scratch* buffer evaluate the following to point to GNU find and grep ex= ecutables: (setq find-program "\"C:/Program Files (x86)/GnuWin32/bin/find.exe\"") (setq grep-program "\"C:/Program Files (x86)/GnuWin32/bin/grep.exe\"") Run `M-x rgrep'. Search for "emacs" in files "all" in base dir "d:/devel/emacs/emacs-bzr/trunk/src/oo-spd/i386/" (or something similar). *grep* buffer output: -*- mode: grep; default-directory: "d:/devel/emacs/emacs-bzr/trunk/src/oo-s= pd/i386/" -*- Grep started at Sat Jul 17 23:15:55 "C:/Program Files (x86)/GnuWin32/bin/find.exe" . "(" -path "*/SCCS" -o -pat= h "*/RCS" -o -path "*/CVS" -o -path "*/MCVS" -o -path "*/.svn" -o -path "*/= .git" -o -path "*/.hg" -o -path "*/.bzr" -o -path "*/_MTN" -o -path "*/_dar= cs" -o -path "*/{arch}" ")" -prune -o "(" -name ".#*" -o -name "*.o" -o -na= me "*~" -o -name "*.bin" -o -name "*.bak" -o -name "*.obj" -o -name "*.map"= -o -name "*.ico" -o -name "*.pif" -o -name "*.lnk" -o -name "*.a" -o -name= "*.ln" -o -name "*.blg" -o -name "*.bbl" -o -name "*.dll" -o -name "*.drv"= -o -name "*.vxd" -o -name "*.386" -o -name "*.elc" -o -name "*.lof" -o -na= me "*.glo" -o -name "*.idx" -o -name "*.lot" -o -name "*.fmt" -o -name "*.t= fm" -o -name "*.class" -o -name "*.fas" -o -name "*.lib" -o -name "*.mem" -= o -name "*.x86f" -o -name "*.sparcf" -o -name "*.fasl" -o -name "*.ufsl" -o= -name "*.fsl" -o -name "*.dxl" -o -name "*.pfsl" -o -name "*.dfsl" -o -nam= e "*.p64fsl" -o -name "*.d64fsl" -o -name "*.dx64fsl" -o -name "*.lo" -o -n= ame "*.la" -o -name "*.gmo" -o -name "*.mo" -o -name "*.toc" -o -name "*.au= x" -o -name "*.cp" -o -name "*.fn" -o -name "*.ky" -o -name "*.pg" -o -name= "*.tp" -o -name "*.vr" -o -name "*.cps" -o -name "*.fns" -o -name "*.kys" = -o -name "*.pgs" -o -name "*.tps" -o -name "*.vrs" -o -name "*.pyc" -o -nam= e "*.pyo" ")" -prune -o -type f "(" -iname "*" -o -iname ".*" ")" -exec "C= :/Program Files (x86)/GnuWin32/bin/grep.exe" -i -n "emacs" {} NUL ";" C:/Program Files (x86)/GnuWin32/bin/find.exe: paths must precede expression Usage: C:/Program Files (x86)/GnuWin32/bin/find.exe [-H] [-L] [-P] [path...= ] [expression] Grep finished with no matches found at Sat Jul 17 23:15:55 `M-x grep' and `M-x lgrep', as well as `M-x grep-find' work fine. http://linux.die.net/man/1/find talks about this particular error in section "Non-bugs", but as far as I can tell the files are enclosed in quotes corre= ctly. In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2010-07-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7600 configured using `configure --with-gcc (3.4) --cflags -IC:/Progra~2/GnuWin3= 2/include -ID:/devel/emacs/libXpm-3.5.8/include -ID:/devel/emacs/libXpm-3.5= .8/src' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Grep Minor modes in effect: ido-everywhere: t yas/global-mode: t global-auto-revert-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent input: C-x RET r g r e p =20 C-x RET t e s t =20 C-x RET =20 q C-x k C-x k =20 =20 C-x RET g r e=20 p - f i n d s e t q SPC * e .=20 e l C-x k y e s C-x RET=20 r g r e p C-x o=20 C-SPC C-SPC C-n C-n C-n C-n C-n C-n C-n M-w C-x RET=20 r e p o r t Recent messages: call-interactively: Beginning of buffer Quit Grep finished with no matches found Mark set Mark activated Load-path shadows: None found. Features: (shadow sort gnus-cite mail-extr gnus-msg gnus-art mm-uu mml2015 pgg pgg-parse pgg-def epg-config mm-view smime password-cache dig mailcap gnus-sum nnoo gnus-group time-date gnus-undo nnmail mail-source format-spec gnus-start gnus-spec gnus-int gnus-range gnus-win message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr emacsbug find-dired server package re-builder ack-emacs ibuffer nav nav-tags python-21 python nav-bufs xcscope anything-config warnings semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw loaddefs eieio byte-opt bytecomp byte-compile mode-local cedet imenu bookmark pp ffap dired rx thingatpt anything woman man cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs grep-o-matic grep compile comint browse-kill-ring+ browse-kill-ring second-sel ido yasnippet dropdown-list derived easy-mmode assoc etags-table etags ring remember zenburn color-theme edmacro kmacro wid-edit cl cl-19 sendmail regexp-opt reporter easymenu uniquify advice help-fns advice-preload autorevert delsel tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) From unknown Sat Jun 21 12:14:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6665: 24.0.50; rgrep does not work on Windows Resent-From: Eli Zaretskii Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jul 2010 17:15: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: To: Christoph Cc: 6665@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 6665-submit@debbugs.gnu.org id=B6665.127947327329779 (code B ref 6665); Sun, 18 Jul 2010 17:15:02 +0000 Received: (at 6665) by debbugs.gnu.org; 18 Jul 2010 17:14:33 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaXRh-0007kG-DK for submit@debbugs.gnu.org; Sun, 18 Jul 2010 13:14:33 -0400 Received: from mtaout23.012.net.il ([80.179.55.175]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaXRd-0007k9-SI for 6665@debbugs.gnu.org; Sun, 18 Jul 2010 13:14:31 -0400 Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0L5R00N00JR32F00@a-mtaout23.012.net.il> for 6665@debbugs.gnu.org; Sun, 18 Jul 2010 20:14:10 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.127.61.30]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L5R00MPSJVI0L50@a-mtaout23.012.net.il>; Sun, 18 Jul 2010 20:14:07 +0300 (IDT) Date: Sun, 18 Jul 2010 20:14:06 +0300 From: Eli Zaretskii In-reply-to: <86hbjwhnc7.fsf@gmail.com> X-012-Sender: halo1@inter.net.il Message-id: <83eif0emqp.fsf@gnu.org> Content-transfer-encoding: 7BIT Sun-Java-System-SMTP-Warning: Lines longer than SMTP allows found and truncated. References: <86hbjwhnc7.fsf@gmail.com> X-Spam-Score: -1.7 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.7 (-) > From: Christoph > Date: Sun, 18 Jul 2010 08:32:56 -0600 > Cc: > > rgrep does not work on Windows. Actually, it does; you just don't like the results ;-) > 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? > "C:/Program Files (x86)/GnuWin32/bin/find.exe" . "(" -path "*/SCCS" -o -path "*/RCS" -o -path "*/CVS" -o -path "*/MCVS" -o -path "*/.svn" -o -path "*/.git" -o -path "*/.hg" -o -path "*/.bzr" -o -path "*/_MTN" -o -path "*/_darcs" -o -path "*/{arch}" ")" -prune -o "(" -name ".#*" -o -name "*.o" -o -name "*~" -o -name "*.bin" -o -name "*.bak" -o -name "*.obj" -o -name "*.map" -o -name "*.ico" -o -name "*.pif" -o -name "*.lnk" -o -name "*.a" -o -name "*.ln" -o -name "*.blg" -o -name "*.bbl" -o -name "*.dll" -o -name "*.drv" -o -name "*.vxd" -o -name "*.386" -o -name "*.elc" -o -name "*.lof" -o -name "*.glo" -o -name "*.idx" -o -name "*.lot" -o -name "*.fmt" -o -name "*.tfm" -o -name "*.class" -o -name "*.fas" -o -name "*.lib" -o -name "*.mem" -o -name "*.x86f" -o -name "*.sparcf" -o -name "*.fasl" -o -name "*.ufsl" -o -name "*.fsl" -o -name "*.dxl" -o -name "*.pfsl" -o -name "*.dfsl" -o -name "*.p64fsl" -o -name "*.d64fsl" -o -name "*.dx64fsl" -o -name "*.lo" -o -name "*.la" -o -name " > C:/Program Files (x86)/GnuWin32/bin/find.exe: paths must precede expression 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.) Also, does the problem go away if you replace "(" with "-(" and ")" with "-)"? 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? From unknown Sat Jun 21 12:14:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6665: 24.0.50; rgrep does not work on Windows Resent-From: =?UTF-8?Q?=C3=93scar?= Fuentes Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 18 Jul 2010 20:39: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: To: Eli Zaretskii Cc: Christoph , 6665@debbugs.gnu.org Received: via spool by 6665-submit@debbugs.gnu.org id=B6665.12794855032472 (code B ref 6665); Sun, 18 Jul 2010 20:39:02 +0000 Received: (at 6665) by debbugs.gnu.org; 18 Jul 2010 20:38:23 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oaacw-0000dp-OP for submit@debbugs.gnu.org; Sun, 18 Jul 2010 16:38:23 -0400 Received: from impaqm1.telefonica.net ([213.4.138.1]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Oaacu-0000dk-AB for 6665@debbugs.gnu.org; Sun, 18 Jul 2010 16:38:21 -0400 Received: from IMPmailhost2.adm.correo ([10.20.102.39]) by IMPaqm1.telefonica.net with bizsmtp id jXy71e00D0r0BT601Yeesv; Sun, 18 Jul 2010 22:38:38 +0200 Received: from qcore ([83.42.13.171]) by IMPmailhost2.adm.correo with BIZ IMP id jYed1e00A3hRxRf1iYeeY6; Sun, 18 Jul 2010 22:38:38 +0200 X-Brightmail-Tracker: AAAAAA== X-TE-authinfo: authemail="981711563$telefonica.net" |auth_email="981711563@telefonica.net" X-TE-AcuTerraCos: auth_cuTerraCos="cosuitnetc01" From: =?UTF-8?Q?=C3=93scar?= Fuentes References: <86hbjwhnc7.fsf@gmail.com> <83eif0emqp.fsf@gnu.org> Date: Sun, 18 Jul 2010 22:38:37 +0200 In-Reply-To: <83eif0emqp.fsf@gnu.org> (Eli Zaretskii's message of "Sun, 18 Jul 2010 20:14:06 +0300") Message-ID: <87vd8c4jaq.fsf@telefonica.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Eli Zaretskii writes: >> From: Christoph >> Date: Sun, 18 Jul 2010 08:32:56 -0600 >> Cc: >> >> rgrep does not work on Windows. > > Actually, it does; you just don't like the results ;-) > >> 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? Unless GnuWin32 comes before than %windir%/system32 on the PATH, Emacs will execute Windows' find.exe. Or the OP is trying to use GnuWin32 without adding it to the PATH. [snip] From unknown Sat Jun 21 12:14:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6665: 24.0.50; rgrep does not work on Windows 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: To: Eli Zaretskii Cc: 6665@debbugs.gnu.org Received: via spool by 6665-submit@debbugs.gnu.org id=B6665.127951200514910 (code B ref 6665); Mon, 19 Jul 2010 04:01:02 +0000 Received: (at 6665) by debbugs.gnu.org; 19 Jul 2010 04:00:05 +0000 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 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 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= Received: by 10.101.138.8 with SMTP id q8mr4141784ann.164.1279512021588; Sun, 18 Jul 2010 21:00:21 -0700 (PDT) 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) Message-ID: <4C43CDD0.10308@gmail.com> Date: Sun, 18 Jul 2010 22:00:16 -0600 From: Christoph User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 References: <86hbjwhnc7.fsf@gmail.com> <83eif0emqp.fsf@gnu.org> In-Reply-To: <83eif0emqp.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.4 (---) 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 From unknown Sat Jun 21 12:14:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6665: 24.0.50; rgrep does not work on Windows Resent-From: Eli Zaretskii 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 18:03: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: To: Christoph Cc: 6665@debbugs.gnu.org Reply-To: Eli Zaretskii Received: via spool by 6665-submit@debbugs.gnu.org id=B6665.12795625367154 (code B ref 6665); Mon, 19 Jul 2010 18:03:02 +0000 Received: (at 6665) by debbugs.gnu.org; 19 Jul 2010 18:02:16 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaufQ-0001rL-DH for submit@debbugs.gnu.org; Mon, 19 Jul 2010 14:02:16 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaufO-0001rD-OR for 6665@debbugs.gnu.org; Mon, 19 Jul 2010 14:02:15 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L5T00K00GLS3F00@a-mtaout21.012.net.il> for 6665@debbugs.gnu.org; Mon, 19 Jul 2010 21:02:15 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.127.61.30]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L5T00IPUGRQ8T60@a-mtaout21.012.net.il>; Mon, 19 Jul 2010 21:02:15 +0300 (IDT) Date: Mon, 19 Jul 2010 21:02:14 +0300 From: Eli Zaretskii In-reply-to: <4C43CDD0.10308@gmail.com> X-012-Sender: halo1@inter.net.il Message-id: <837hkre4ex.fsf@gnu.org> References: <86hbjwhnc7.fsf@gmail.com> <83eif0emqp.fsf@gnu.org> <4C43CDD0.10308@gmail.com> X-Spam-Score: -1.7 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.7 (-) > Date: Sun, 18 Jul 2010 22:00:16 -0600 > From: Christoph > CC: 6665@debbugs.gnu.org > > > 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). It's something with your port of Find. My port is something I did myself (the original GnuWin32 one was terribly slow and buggy), and it does work, both with your command line from the shell and inside Emacs. I think this bug report should be closed, as it is not something Emacs can fix. From unknown Sat Jun 21 12:14:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6665: 24.0.50; rgrep does not work on Windows 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 22:56: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: To: Eli Zaretskii Cc: 6665@debbugs.gnu.org Received: via spool by 6665-submit@debbugs.gnu.org id=B6665.127958014914803 (code B ref 6665); Mon, 19 Jul 2010 22:56:02 +0000 Received: (at 6665) by debbugs.gnu.org; 19 Jul 2010 22:55:49 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OazFV-0003qi-5H for submit@debbugs.gnu.org; Mon, 19 Jul 2010 18:55:49 -0400 Received: from mail-yx0-f172.google.com ([209.85.213.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OazFT-0003qb-8t for 6665@debbugs.gnu.org; Mon, 19 Jul 2010 18:55:47 -0400 Received: by yxj4 with SMTP id 4so1163040yxj.3 for <6665@debbugs.gnu.org>; Mon, 19 Jul 2010 15:56:09 -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=ZOI8xpUIxjAOcdsAELmTGoAeyl72rRc4bvX+3A2xjlo=; b=RXSF0ejGkiJztbPjMM4hNOEQbJqNtrvPPSXutJI1clP2vIZWu7OHdSrlpE9nH6DZhE 6WJMU9WyY81rz15vyTBd/LbZolrfZjqWaLG1qEf9Ys5Q2OGRviQAbXk1H7hRLt4VUdGw qtfsGCbK5uisp5ExEHcJ5zpQEHxjLw008BK9A= 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=yG/Yn6G5Ozydy+kcywNIcwqOyDvp5o60YPEW5u0lo7faIyxvGEn3mkw9amkl9bwEm5 sicpBE/MTSg5lfjEbcC0I1ql5xxgXo4Jo17cEaAxnkUTaj1Gz0FJ1eHoWTS7bCFMKQ6S uFEyEJ5IaYkeSRgC20l8D2LCL/NdNuEi6LUXk= Received: by 10.101.206.7 with SMTP id i7mr5623827anq.26.1279580168923; Mon, 19 Jul 2010 15:56:08 -0700 (PDT) Received: from [192.168.1.2] (97-122-118-250.hlrn.qwest.net [97.122.118.250]) by mx.google.com with ESMTPS id t6sm71074263ank.33.2010.07.19.15.56.06 (version=SSLv3 cipher=RC4-MD5); Mon, 19 Jul 2010 15:56:07 -0700 (PDT) Message-ID: <4C44D803.20409@gmail.com> Date: Mon, 19 Jul 2010 16:56:03 -0600 From: Christoph User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 MIME-Version: 1.0 References: <86hbjwhnc7.fsf@gmail.com> <83eif0emqp.fsf@gnu.org> <4C43CDD0.10308@gmail.com> <837hkre4ex.fsf@gnu.org> In-Reply-To: <837hkre4ex.fsf@gnu.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Score: -3.4 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.3 (---) On 7/19/2010 12:02 PM, Eli Zaretskii wrote: > It's something with your port of Find. My port is something I did > myself (the original GnuWin32 one was terribly slow and buggy), and it > does work, both with your command line from the shell and inside > Emacs. Yes, indeed it is. I tried using cygwin's find instead and it works fine. Like this: (setq find-program "\"C:/cygwin/bin/find.exe\"") (setq grep-program "\"C:/Program Files (x86)/GnuWin32/bin/grep.exe\"") > I think this bug report should be closed, as it is not something Emacs > can fix. Agreed. Could we add a note somewhere that documents this? Would the etc/PROBLEMS file be the right place? Christoph From unknown Sat Jun 21 12:14:46 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Christoph Subject: bug#6665: closed (Re: bug#6665: 24.0.50; rgrep does not work on Windows) Message-ID: References: <831vayeu9m.fsf@gnu.org> <86hbjwhnc7.fsf@gmail.com> X-Gnu-PR-Message: they-closed 6665 X-Gnu-PR-Package: emacs Reply-To: 6665@debbugs.gnu.org Date: Tue, 20 Jul 2010 02:58:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1279594682-20769-1" This is a multi-part message in MIME format... ------------=_1279594682-20769-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #6665: 24.0.50; rgrep does not work on Windows which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 6665@debbugs.gnu.org. --=20 6665: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D6665 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1279594682-20769-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 6665-done) by debbugs.gnu.org; 20 Jul 2010 02:57:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ob30x-0005On-W1 for submit@debbugs.gnu.org; Mon, 19 Jul 2010 22:57:04 -0400 Received: from mtaout21.012.net.il ([80.179.55.169]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ob30v-0005OO-L5 for 6665-done@debbugs.gnu.org; Mon, 19 Jul 2010 22:57:03 -0400 Received: from conversion-daemon.a-mtaout21.012.net.il by a-mtaout21.012.net.il (HyperSendmail v2007.08) id <0L5U00E0058Q9H00@a-mtaout21.012.net.il> for 6665-done@debbugs.gnu.org; Tue, 20 Jul 2010 05:56:06 +0300 (IDT) Received: from HOME-C4E4A596F7 ([77.127.61.30]) by a-mtaout21.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0L5U00D575HH3740@a-mtaout21.012.net.il>; Tue, 20 Jul 2010 05:56:05 +0300 (IDT) Date: Tue, 20 Jul 2010 05:56:05 +0300 From: Eli Zaretskii Subject: Re: bug#6665: 24.0.50; rgrep does not work on Windows In-reply-to: <4C44D803.20409@gmail.com> X-012-Sender: halo1@inter.net.il To: Christoph Message-id: <831vayeu9m.fsf@gnu.org> References: <86hbjwhnc7.fsf@gmail.com> <83eif0emqp.fsf@gnu.org> <4C43CDD0.10308@gmail.com> <837hkre4ex.fsf@gnu.org> <4C44D803.20409@gmail.com> X-Spam-Score: -1.7 (-) X-Debbugs-Envelope-To: 6665-done Cc: 6665-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: Eli Zaretskii List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -1.7 (-) > Date: Mon, 19 Jul 2010 16:56:03 -0600 > From: Christoph > CC: 6665@debbugs.gnu.org > > Could we add a note somewhere that documents this? Would the > etc/PROBLEMS file be the right place? Sure. ------------=_1279594682-20769-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 18 Jul 2010 14:32:56 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaUvH-0006dL-0I for submit@debbugs.gnu.org; Sun, 18 Jul 2010 10:32:56 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaUvC-0006ca-Rk for submit@debbugs.gnu.org; Sun, 18 Jul 2010 10:32:52 -0400 Received: from lists.gnu.org ([199.232.76.165]:52766) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1OaUvV-0004N1-Et for submit@debbugs.gnu.org; Sun, 18 Jul 2010 10:33:09 -0400 Received: from [140.186.70.92] (port=45219 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OaUvT-0004dB-Qu for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 10:33:09 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=no version=3.3.1 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OaUvS-0005e8-54 for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 10:33:07 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:64049) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OaUvS-0005e0-1o for bug-gnu-emacs@gnu.org; Sun, 18 Jul 2010 10:33:06 -0400 Received: by gyd12 with SMTP id 12so2360943gyd.0 for ; Sun, 18 Jul 2010 07:33:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:from:to:subject:date :message-id:user-agent:mime-version:content-type :content-transfer-encoding; bh=cZOx+7t3DYrUt9Za4Nun5d0keuP8a6RFiCpvWPvVbyY=; b=HRzpWyj+NeZsrvphvz4vz290t/AvOLKqfiCLbx9D7oc1z+TKtzzRqbGL0WIfoEzIY/ 1TX8VIpevIk4sfG/nKe4SmhWcgFHKegaPnhLYNSfEo3wYcGwGrXvABzdEe68c3f8a/a0 DBj13NMoOB7q3fp8STtsO0HW1m8HNX0iYyWzQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=from:to:subject:date:message-id:user-agent:mime-version :content-type:content-transfer-encoding; b=cj5CCgus7XPeG+czhu+FhYPKBmnJ52H24MAEps7Xcg6vYWERjqMklHiQIgVmsi7Pfw lkKedjpwShUTy+FRwH05TCkQsu1k6+0+3Oa4eaYKNdUo+NXOdAeHKoApisLAKNqIZkWk job0O1lqejGwmZaXplmINn1cIu6BqPKVj821g= Received: by 10.100.54.19 with SMTP id c19mr3661614ana.71.1279463584681; Sun, 18 Jul 2010 07:33:04 -0700 (PDT) Received: from localhost (97-122-118-250.hlrn.qwest.net [97.122.118.250]) by mx.google.com with ESMTPS id b17sm53435226anh.5.2010.07.18.07.33.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 18 Jul 2010 07:33:03 -0700 (PDT) From: Christoph To: bug-gnu-emacs@gnu.org Subject: 24.0.50; rgrep does not work on Windows Date: Sun, 18 Jul 2010 08:32:56 -0600 Message-ID: <86hbjwhnc7.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (windows-nt) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -5.3 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) rgrep does not work on Windows. I am using the GnuWin32 versions of find and grep and find returns an error when used by Emacs' rgrep. Start Emacs with `emacs -Q'.=20 In *scratch* buffer evaluate the following to point to GNU find and grep ex= ecutables: (setq find-program "\"C:/Program Files (x86)/GnuWin32/bin/find.exe\"") (setq grep-program "\"C:/Program Files (x86)/GnuWin32/bin/grep.exe\"") Run `M-x rgrep'. Search for "emacs" in files "all" in base dir "d:/devel/emacs/emacs-bzr/trunk/src/oo-spd/i386/" (or something similar). *grep* buffer output: -*- mode: grep; default-directory: "d:/devel/emacs/emacs-bzr/trunk/src/oo-s= pd/i386/" -*- Grep started at Sat Jul 17 23:15:55 "C:/Program Files (x86)/GnuWin32/bin/find.exe" . "(" -path "*/SCCS" -o -pat= h "*/RCS" -o -path "*/CVS" -o -path "*/MCVS" -o -path "*/.svn" -o -path "*/= .git" -o -path "*/.hg" -o -path "*/.bzr" -o -path "*/_MTN" -o -path "*/_dar= cs" -o -path "*/{arch}" ")" -prune -o "(" -name ".#*" -o -name "*.o" -o -na= me "*~" -o -name "*.bin" -o -name "*.bak" -o -name "*.obj" -o -name "*.map"= -o -name "*.ico" -o -name "*.pif" -o -name "*.lnk" -o -name "*.a" -o -name= "*.ln" -o -name "*.blg" -o -name "*.bbl" -o -name "*.dll" -o -name "*.drv"= -o -name "*.vxd" -o -name "*.386" -o -name "*.elc" -o -name "*.lof" -o -na= me "*.glo" -o -name "*.idx" -o -name "*.lot" -o -name "*.fmt" -o -name "*.t= fm" -o -name "*.class" -o -name "*.fas" -o -name "*.lib" -o -name "*.mem" -= o -name "*.x86f" -o -name "*.sparcf" -o -name "*.fasl" -o -name "*.ufsl" -o= -name "*.fsl" -o -name "*.dxl" -o -name "*.pfsl" -o -name "*.dfsl" -o -nam= e "*.p64fsl" -o -name "*.d64fsl" -o -name "*.dx64fsl" -o -name "*.lo" -o -n= ame "*.la" -o -name "*.gmo" -o -name "*.mo" -o -name "*.toc" -o -name "*.au= x" -o -name "*.cp" -o -name "*.fn" -o -name "*.ky" -o -name "*.pg" -o -name= "*.tp" -o -name "*.vr" -o -name "*.cps" -o -name "*.fns" -o -name "*.kys" = -o -name "*.pgs" -o -name "*.tps" -o -name "*.vrs" -o -name "*.pyc" -o -nam= e "*.pyo" ")" -prune -o -type f "(" -iname "*" -o -iname ".*" ")" -exec "C= :/Program Files (x86)/GnuWin32/bin/grep.exe" -i -n "emacs" {} NUL ";" C:/Program Files (x86)/GnuWin32/bin/find.exe: paths must precede expression Usage: C:/Program Files (x86)/GnuWin32/bin/find.exe [-H] [-L] [-P] [path...= ] [expression] Grep finished with no matches found at Sat Jul 17 23:15:55 `M-x grep' and `M-x lgrep', as well as `M-x grep-find' work fine. http://linux.die.net/man/1/find talks about this particular error in section "Non-bugs", but as far as I can tell the files are enclosed in quotes corre= ctly. In GNU Emacs 24.0.50.1 (i386-mingw-nt6.1.7600) of 2010-07-17 on MARVIN Windowing system distributor `Microsoft Corp.', version 6.1.7600 configured using `configure --with-gcc (3.4) --cflags -IC:/Progra~2/GnuWin3= 2/include -ID:/devel/emacs/libXpm-3.5.8/include -ID:/devel/emacs/libXpm-3.5= .8/src' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: ENU value of $XMODIFIERS: nil locale-coding-system: cp1252 default enable-multibyte-characters: t Major mode: Grep Minor modes in effect: ido-everywhere: t yas/global-mode: t global-auto-revert-mode: t delete-selection-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t Recent input: C-x RET r g r e p =20 C-x RET t e s t =20 C-x RET =20 q C-x k C-x k =20 =20 C-x RET g r e=20 p - f i n d s e t q SPC * e .=20 e l C-x k y e s C-x RET=20 r g r e p C-x o=20 C-SPC C-SPC C-n C-n C-n C-n C-n C-n C-n M-w C-x RET=20 r e p o r t Recent messages: call-interactively: Beginning of buffer Quit Grep finished with no matches found Mark set Mark activated Load-path shadows: None found. Features: (shadow sort gnus-cite mail-extr gnus-msg gnus-art mm-uu mml2015 pgg pgg-parse pgg-def epg-config mm-view smime password-cache dig mailcap gnus-sum nnoo gnus-group time-date gnus-undo nnmail mail-source format-spec gnus-start gnus-spec gnus-int gnus-range gnus-win message rfc822 mml mml-sec mm-decode mm-bodies mm-encode mail-parse rfc2231 rfc2047 rfc2045 ietf-drums mailabbrev gmm-utils mailheader gnus gnus-ems nnheader gnus-util mail-utils mm-util mail-prsvr emacsbug find-dired server package re-builder ack-emacs ibuffer nav nav-tags python-21 python nav-bufs xcscope anything-config warnings semantic/util-modes semantic/util semantic semantic/tag semantic/lex semantic/fw loaddefs eieio byte-opt bytecomp byte-compile mode-local cedet imenu bookmark pp ffap dired rx thingatpt anything woman man cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs grep-o-matic grep compile comint browse-kill-ring+ browse-kill-ring second-sel ido yasnippet dropdown-list derived easy-mmode assoc etags-table etags ring remember zenburn color-theme edmacro kmacro wid-edit cl cl-19 sendmail regexp-opt reporter easymenu uniquify advice help-fns advice-preload autorevert delsel tooltip ediff-hook vc-hooks lisp-float-type mwheel dos-w32 disp-table ls-lisp w32-win w32-vars tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process multi-tty emacs) ------------=_1279594682-20769-1-- From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 17 06:46:06 2010 Received: (at control) by debbugs.gnu.org; 17 Nov 2010 11:46:06 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIgSi-0005IH-Cz for submit@debbugs.gnu.org; Wed, 17 Nov 2010 06:46:05 -0500 Received: from caibbdcaaaaf.dreamhost.com ([208.113.200.5] helo=homiemail-a54.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIg07-00053B-HG for control@debbugs.gnu.org; Wed, 17 Nov 2010 06:16:32 -0500 Received: from homiemail-a54.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a54.g.dreamhost.com (Postfix) with ESMTP id AF8573A406D for ; Wed, 17 Nov 2010 03:21:32 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=cfraizer.com; h=from:to:subject :date:message-id:mime-version:content-type; q=dns; s= cfraizer.com; b=0v3KGzdsIP5Gy+6VPR4PujIxHp/iNvO0OJzxe3122WjGpkUQ XnmX5Zkz0P62cK31jsT9N2FpWvhj+kQIRidRylcZDmYBsCqwgmq5vuUccRv7Q+rr yR5P0fDI0Eyq7MAyHGCAPi5fdYGgggurxNLFl20yXVB3Jpp6llbYLXSERJs= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cfraizer.com; h=from:to :subject:date:message-id:mime-version:content-type; s= cfraizer.com; bh=Non70cagSPXbUv1+gZLRZif3blA=; b=MPbl80dZZUPtdr1 vxGbNdqUa0glwbtvSCOE7DwlBEi2JBLPcl16VnjQV2sTpIyVCQjPoSl4W1osJqF2 MdxvMDvW9I5Y/wZJdVZsDs4v0eMF1BbkpHeWjEcXsSq2ciwLxNK3NbgZH0sTpW/8 BH3LDn/u7IWTpbo9QyHC133xA6qc= Received: from ColinFraizerPC (stan.inter-intelli.com [209.43.1.25]) (Authenticated sender: colin@cfraizer.com) by homiemail-a54.g.dreamhost.com (Postfix) with ESMTPA id 6205A3A406B for ; Wed, 17 Nov 2010 03:21:32 -0800 (PST) From: "Colin Fraizer" To: Subject: unarchive 6665 Date: Wed, 17 Nov 2010 06:21:30 -0500 Message-ID: <01a701cb8649$96184a60$c248df20$@cfraizer.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_01A8_01CB861F.AD432CC0" X-Mailer: Microsoft Outlook 14.0 Thread-Index: AcuGSXZuDm2+0HUiTD+Q1X6o1wpQ3Q== Content-Language: en-us X-Spam-Score: -3.5 (---) X-Debbugs-Envelope-To: control X-Mailman-Approved-At: Wed, 17 Nov 2010 06:46:00 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.2 (--) This is a multipart message in MIME format. ------=_NextPart_000_01A8_01CB861F.AD432CC0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit unarchive 6665 ------=_NextPart_000_01A8_01CB861F.AD432CC0 Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

unarchive = 6665

 

 

------=_NextPart_000_01A8_01CB861F.AD432CC0-- From unknown Sat Jun 21 12:14:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6665: rgrep does not work on Windows References: <86hbjwhnc7.fsf@gmail.com> In-Reply-To: <86hbjwhnc7.fsf@gmail.com> Resent-From: "Colin Fraizer" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Nov 2010 12:22:01 +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: To: <6665@debbugs.gnu.org> Received: via spool by 6665-submit@debbugs.gnu.org id=B6665.128999651926613 (code B ref 6665); Wed, 17 Nov 2010 12:22:01 +0000 Received: (at 6665) by debbugs.gnu.org; 17 Nov 2010 12:21:59 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIh1S-0006vC-M6 for submit@debbugs.gnu.org; Wed, 17 Nov 2010 07:21:58 -0500 Received: from caibbdcaaaaf.dreamhost.com ([208.113.200.5] helo=homiemail-a40.g.dreamhost.com) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIh1Q-0006v4-0A for 6665@debbugs.gnu.org; Wed, 17 Nov 2010 07:21:57 -0500 Received: from homiemail-a40.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a40.g.dreamhost.com (Postfix) with ESMTP id 3FD6174C08B for <6665@debbugs.gnu.org>; Wed, 17 Nov 2010 04:26:57 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=cfraizer.com; h=from:to:subject :date:message-id:mime-version:content-type: content-transfer-encoding; q=dns; s=cfraizer.com; b=8UsuGWp8tBsk oYA/bGLQivJVBWEIm591jWKkLWi/viEIqVkx+p1RA7zR07aYDdyiwxOHTpnaEqYe 9n4fqbdZOJ1d7fVgDsGC8H1zXJoEyo8nnVgJcup+Ku/q7tEOCiGtBB6E3xlW6J6l HzLSE3VXVlDdSDcJbstiTJbWIp5C1Ek= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=cfraizer.com; h=from:to :subject:date:message-id:mime-version:content-type: content-transfer-encoding; s=cfraizer.com; bh=2SwB1cwHz0cQq4l6+n 0UcSx42wA=; b=n9Fugs2lMU9FcIUvP2QL7/X/x5MLp5Iu4Jt0pitdqgr9jvnEHl tw62a7SIHm+7nWrmtR6zXIZep1spqAj2uf7zoBY9NoilTqYq4Hdtu5+gygbxro8n p/NxVKQPykS1n/OiXlw6IaKv6PL2gEWgTyjdRidm7nB2CzG0rVHrm2eB0= Received: from ColinFraizerPC (stan.inter-intelli.com [209.43.1.25]) (Authenticated sender: colin@cfraizer.com) by homiemail-a40.g.dreamhost.com (Postfix) with ESMTPA id CF51374C081 for <6665@debbugs.gnu.org>; Wed, 17 Nov 2010 04:26:56 -0800 (PST) From: "Colin Fraizer" Date: Wed, 17 Nov 2010 07:26:54 -0500 Message-ID: <01c701cb8652$b921a020$2b64e060$@cfraizer.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHQ4etXb4tfiZSN4biKqPRdt06pIQ== Content-Language: en-us X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On July 19, 2010, Eli Zaretskii wrote: >I think this bug report should be closed, as it is not something Emacs can fix. I believe Mr. Zaretskii is correct that Emacs is not the cause of the problem. It appears to be a bug in the GnuWin32 and/or MSys port of "find". *However*, I would argue that rgrep constructs a bogus find command anyway and that *that* should be fixed. Specifically, it creates [NOTE: I replaced text with the string "[...]".] find . "(" -path "*/SCCS" [...] ")" -prune -o "(" -name ".#*" [...] ")" -prune -o -type f "(" -iname "*.el" ")" -exec grep -nH "mystring" {} ";" That second "-prune" is really bogus. It is supposed to mean "don't descend into the matched file as a directory", but it's not matching directories. It is matching regular filenames. I beleive a better string to generate is find . "(" -path "*/SCCS" [...] ")" -prune -o -not "(" -name ".#*" [...] ")" -and -type f "(" -iname "*.el" ")" -exec grep -nH "mystring" {} ";" That is, I would: 1. Add "-not" before the list of excluded files. 2. Remove the second "-prune". 3. Change the "-o" after the list of excluded files to "-and". I believe this should work on all systems (even with the buggy version of "find") and doesn't rely on "-prune" to mean "-noop". [I'm new here, so please excuse any breaches of rules or etiquette. I'll be happy to conform to your norms (or to leave) if you instruct me.] Best regards, --Colin Fraizer Indianapolis, Indiana, USA, Earth 8-) My (very-lightly-tested) version of rgrep follows: (defun rgrep (regexp &optional files dir confirm) "Recursively grep for REGEXP in FILES in directory tree rooted at DIR. The search is limited to file names matching shell pattern FILES. FILES may use abbreviations defined in `grep-files-aliases', e.g. entering `ch' is equivalent to `*.[ch]'. With \\[universal-argument] prefix, you can edit the constructed shell command line before it is executed. With two \\[universal-argument] prefixes, directly edit and run `grep-find-command'. Collect output in a buffer. While find runs asynchronously, you can use \\[next-error] (M-x next-error), or \\\\[compile-goto-error] \ in the grep output buffer, to go to the lines where grep found matches. This command shares argument histories with \\[lgrep] and \\[grep-find]." (interactive (progn (grep-compute-defaults) (cond ((and grep-find-command (equal current-prefix-arg '(16))) (list (read-from-minibuffer "Run: " grep-find-command nil nil 'grep-find-history))) ((not grep-find-template) (error "grep.el: No `grep-find-template' available")) (t (let* ((regexp (grep-read-regexp)) (files (grep-read-files regexp)) (dir (read-directory-name "Base directory: " nil default-directory t)) (confirm (equal current-prefix-arg '(4)))) (list regexp files dir confirm)))))) (when (and (stringp regexp) (> (length regexp) 0)) (unless (and dir (file-directory-p dir) (file-readable-p dir)) (setq dir default-directory)) (if (null files) (if (not (string= regexp grep-find-command)) (compilation-start regexp 'grep-mode)) (setq dir (file-name-as-directory (expand-file-name dir))) (require 'find-dired) ; for `find-name-arg' (let ((command (grep-expand-template grep-find-template regexp (concat (shell-quote-argument "(") " " find-name-arg " " (mapconcat #'shell-quote-argument (split-string files) (concat " -o " find-name-arg " ")) " " (shell-quote-argument ")")) dir (concat (and grep-find-ignored-directories (concat (shell-quote-argument "(") ;; we should use shell-quote-argument here " -path " (mapconcat #'(lambda (ignore) (cond ((stringp ignore) (shell-quote-argument (concat "*/" ignore))) ((consp ignore) (and (funcall (car ignore) dir) (shell-quote-argument (concat "*/" (cdr ignore))))))) grep-find-ignored-directories " -o -path ") " " (shell-quote-argument ")") " -prune -o ")) (and grep-find-ignored-files (concat (shell-quote-argument "-not") " " (shell-quote-argument "(") ;; we should use shell-quote-argument here " -name " (mapconcat #'(lambda (ignore) (cond ((stringp ignore) (shell-quote-argument ignore)) ((consp ignore) (and (funcall (car ignore) dir) (shell-quote-argument (cdr ignore)))))) grep-find-ignored-files " -o -name ") " " (shell-quote-argument ")") " -and ")))))) (when command (if confirm (setq command (read-from-minibuffer "Confirm: " command nil nil 'grep-find-history)) (add-to-history 'grep-find-history command)) (let ((default-directory dir)) (compilation-start command 'grep-mode)) ;; Set default-directory if we started rgrep in the *grep* buffer. (if (eq next-error-last-buffer (current-buffer)) (setq default-directory dir))))))) From unknown Sat Jun 21 12:14:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6665: rgrep does not work on Windows Resent-From: Andreas Schwab Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Nov 2010 13:05: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: To: "Colin Fraizer" Cc: 6665@debbugs.gnu.org Received: via spool by 6665-submit@debbugs.gnu.org id=B6665.128999907730409 (code B ref 6665); Wed, 17 Nov 2010 13:05:02 +0000 Received: (at 6665) by debbugs.gnu.org; 17 Nov 2010 13:04:37 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIhgi-0007uQ-BG for submit@debbugs.gnu.org; Wed, 17 Nov 2010 08:04:36 -0500 Received: from mail-out.m-online.net ([212.18.0.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIhgf-0007uJ-RZ for 6665@debbugs.gnu.org; Wed, 17 Nov 2010 08:04:34 -0500 Received: from frontend1.mail.m-online.net (frontend1.mail.intern.m-online.net [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id A9AA318059E0; Wed, 17 Nov 2010 14:09:34 +0100 (CET) Received: from hase (ppp-88-217-125-202.dynamic.mnet-online.de [88.217.125.202]) by mail.mnet-online.de (Postfix) with ESMTP id 3866E1C00139; Wed, 17 Nov 2010 14:09:34 +0100 (CET) From: Andreas Schwab References: <86hbjwhnc7.fsf@gmail.com> <01c701cb8652$b921a020$2b64e060$@cfraizer.com> X-Yow: CONGRATULATIONS! Now should I make thinly veiled comments about DIGNITY, self-esteem and finding TRUE FUN in your RIGHT VENTRICLE?? Date: Wed, 17 Nov 2010 14:09:33 +0100 In-Reply-To: <01c701cb8652$b921a020$2b64e060$@cfraizer.com> (Colin Fraizer's message of "Wed, 17 Nov 2010 07:26:54 -0500") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Score: -2.7 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) "Colin Fraizer" writes: > find . "(" -path "*/SCCS" [...] ")" -prune -o "(" -name ".#*" [...] ")" > -prune -o -type f "(" -iname "*.el" ")" -exec grep -nH "mystring" {} ";" > > That second "-prune" is really bogus. It is supposed to mean "don't descend > into > the matched file as a directory", but it's not matching directories. > It is matching regular filenames. It can match directories as well, just like the first expression can match non-directories. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." From unknown Sat Jun 21 12:14:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6665: rgrep does not work on Windows Resent-From: Lennart Borgman Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Nov 2010 13:14: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: To: Colin Fraizer Cc: 6665@debbugs.gnu.org Received: via spool by 6665-submit@debbugs.gnu.org id=B6665.128999958430667 (code B ref 6665); Wed, 17 Nov 2010 13:14:02 +0000 Received: (at 6665) by debbugs.gnu.org; 17 Nov 2010 13:13:04 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIhot-0007ya-SK for submit@debbugs.gnu.org; Wed, 17 Nov 2010 08:13:04 -0500 Received: from mail-ey0-f172.google.com ([209.85.215.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIhor-0007y9-0m for 6665@debbugs.gnu.org; Wed, 17 Nov 2010 08:13:01 -0500 Received: by eyd10 with SMTP id 10so1152337eyd.3 for <6665@debbugs.gnu.org>; Wed, 17 Nov 2010 05:18:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:cc:content-type; bh=rO0SxeeSU5ks6rjJL1+Xlmnka+3ntbuPL+G5d6Cy0L8=; b=hACGysLFSPyqYo6LH74J7FY1yQl8R7Y71nAEaYZTEiAcakb+n341mOEIgxLEjsdKrA tWMH6XyGwk1xzzlP9mkESxUYD6MsVlkNl1+QyszKotLCuNwCD1eHVy0kGnLD79Gqfvoe TSFu8ecYUwVZqqNLPB7sdFClXDsIITWhmOeIM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=NnD/io8zBgbFrP54Ma6XLlgwpaV5rhHfRUBfSMZbfiltlvBB+uydfj1/eSeuq8Nkvx jmQbwID4QeUJHJUbu+htvUeUWp/XsUTPx6jxlRjgTx+w/4s5mX0sS8M0d9k/KyTiNCsn ApTDbm+GekhFuahN64S4xiwUd9vrk6OptVorY= Received: by 10.213.28.131 with SMTP id m3mr2045718ebc.58.1289999881439; Wed, 17 Nov 2010 05:18:01 -0800 (PST) MIME-Version: 1.0 Received: by 10.213.22.135 with HTTP; Wed, 17 Nov 2010 05:17:41 -0800 (PST) In-Reply-To: <01c701cb8652$b921a020$2b64e060$@cfraizer.com> References: <86hbjwhnc7.fsf@gmail.com> <01c701cb8652$b921a020$2b64e060$@cfraizer.com> From: Lennart Borgman Date: Wed, 17 Nov 2010 14:17:41 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 X-Spam-Score: -2.9 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.9 (--) On Wed, Nov 17, 2010 at 1:26 PM, Colin Fraizer wrote: > > On July 19, 2010, Eli Zaretskii wrote: > >>I think this bug report should be closed, as it is not something Emacs > can fix. > > I believe Mr. Zaretskii is correct that Emacs is not the cause of the > problem. It appears to be a bug in the GnuWin32 and/or MSys port of > "find". *However*, I would argue that rgrep constructs a bogus find > command anyway and that *that* should be fixed. Specifically, it > creates We discussed some time ago the possibility to use "grep -r" for rgrep. It was rejected, but I have implemented this in the library w32-grep which is part of my patched Emacs (i.e. EmacsW32). From unknown Sat Jun 21 12:14:46 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6665: rgrep does not work on Windows In-Reply-To: <86hbjwhnc7.fsf@gmail.com> Resent-From: Thierry Volpiatto Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 17 Nov 2010 15:06:01 +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: To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.12900063071473 (code B ref -1); Wed, 17 Nov 2010 15:06:01 +0000 Received: (at submit) by debbugs.gnu.org; 17 Nov 2010 15:05:07 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIjZL-0000Ni-Cu for submit@debbugs.gnu.org; Wed, 17 Nov 2010 10:05:07 -0500 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1PIjZI-0000NM-BN for submit@debbugs.gnu.org; Wed, 17 Nov 2010 10:05:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIje9-0001d6-KK for submit@debbugs.gnu.org; Wed, 17 Nov 2010 10:10:06 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, T_RP_MATCHES_RCVD, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([199.232.76.165]:44749) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIje9-0001d2-I8 for submit@debbugs.gnu.org; Wed, 17 Nov 2010 10:10:05 -0500 Received: from [140.186.70.92] (port=52200 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PIje8-0006P8-KE for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2010 10:10:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PIje7-0001co-Eo for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2010 10:10:04 -0500 Received: from lo.gmane.org ([80.91.229.12]:34847) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PIje7-0001c8-2y for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2010 10:10:03 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PIje0-00029i-KG for bug-gnu-emacs@gnu.org; Wed, 17 Nov 2010 16:09:56 +0100 Received: from 49.211.85-79.rev.gaoland.net ([79.85.211.49]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Nov 2010 16:09:56 +0100 Received: from thierry.volpiatto by 49.211.85-79.rev.gaoland.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 17 Nov 2010 16:09:56 +0100 X-Injected-Via-Gmane: http://gmane.org/ From: Thierry Volpiatto Date: Wed, 17 Nov 2010 16:08:32 +0100 Lines: 44 Message-ID: <8762vwq973.fsf@tux.homenetwork> References: <86hbjwhnc7.fsf@gmail.com> <01c701cb8652$b921a020$2b64e060$@cfraizer.com> Mime-Version: 1.0 Content-Type: text/plain X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 49.211.85-79.rev.gaoland.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:TddWZkwu2YoPPWQQw2TE01IzGZ4= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Spam-Score: -5.6 (-----) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.6 (-----) Lennart Borgman writes: > On Wed, Nov 17, 2010 at 1:26 PM, Colin Fraizer wrote: >> >> On July 19, 2010, Eli Zaretskii wrote: >> >>>I think this bug report should be closed, as it is not something Emacs >> can fix. >> >> I believe Mr. Zaretskii is correct that Emacs is not the cause of the >> problem. It appears to be a bug in the GnuWin32 and/or MSys port of >> "find". *However*, I would argue that rgrep constructs a bogus find >> command anyway and that *that* should be fixed. Specifically, it >> creates > > We discussed some time ago the possibility to use "grep -r" for rgrep. > It was rejected, but I have implemented this in the library w32-grep > which is part of my patched Emacs (i.e. EmacsW32). FYI i have fixed in anything the use of grep with the Gnuwin32 version of grep.(See anything-config.el) So it work now both in GNU/Linux and windows. It is recursive by default like grep -r or -d recurse. By the nature of the implementation of grep in anything, you can select quickly a set of files/dirs not only in current directory but anywhere in your system files, with the use of wildcard or not. That increase the performance because you can search exactly in what you want. It is usable without knowledge of grep command (just write in the prompt what you search for). Of course, it is incremental unlike the vanilla emacs grep. With that i don't feel the need of grep/find. You can access it at anytime from f5 a C-x C-f (aka M-x anything-find-files) or with M-x anything-do-grep (f5 a M-g s). -- A+ Thierry Get my Gnupg key: gpg --keyserver pgp.mit.edu --recv-keys 59F29997