From unknown Thu Jun 19 13:59:51 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#9414 <9414@debbugs.gnu.org> To: bug#9414 <9414@debbugs.gnu.org> Subject: Status: Use of 'grep-find-ignored-directories' exclude files from search. Reply-To: bug#9414 <9414@debbugs.gnu.org> Date: Thu, 19 Jun 2025 20:59:51 +0000 retitle 9414 Use of 'grep-find-ignored-directories' exclude files from sear= ch. reassign 9414 emacs submitter 9414 Oleksandr Gavenko severity 9414 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 31 17:47:46 2011 Received: (at submit) by debbugs.gnu.org; 31 Aug 2011 21:47:46 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QysdN-0001ut-QC for submit@debbugs.gnu.org; Wed, 31 Aug 2011 17:47:46 -0400 Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QysdL-0001um-7H for submit@debbugs.gnu.org; Wed, 31 Aug 2011 17:47:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QysaA-0006cX-S2 for submit@debbugs.gnu.org; Wed, 31 Aug 2011 17:44:28 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,FREEMAIL_FROM, HS_INDEX_PARAM, RCVD_IN_DNSWL_LOW, T_DKIM_INVALID, T_TO_NO_BRKTS_FREEMAIL autolearn=unavailable version=3.3.1 Received: from lists.gnu.org ([140.186.70.17]:40331) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QysaA-0006cT-Qc for submit@debbugs.gnu.org; Wed, 31 Aug 2011 17:44:26 -0400 Received: from eggs.gnu.org ([140.186.70.92]:42674) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qysa9-0002mS-SI for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2011 17:44:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qysa8-0006cB-JX for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2011 17:44:25 -0400 Received: from mail-ew0-f41.google.com ([209.85.215.41]:37192) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qysa8-0006c5-BI for bug-gnu-emacs@gnu.org; Wed, 31 Aug 2011 17:44:24 -0400 Received: by ewy9 with SMTP id 9so925792ewy.0 for ; Wed, 31 Aug 2011 14:44:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=eYSTwqScr+ZAOIp41g5FHYavJkLhgnldA1WV5Ggqmlo=; b=R3TmTV8gl97G9WxH/mmgGHDwIV/3pL1OlJLCwGT38twjJKYO3tIahNNj1HQpC6YLga SwKc0VD9t+54e+VUe54RfHkRTqaxCrwgWWa1oJZRhJ9R8yCCI5xdMjUdgsoLUVvJ2/YW +eYJu/YpB0bAcCD5G1F76bOiSXlfoWqpVLT+c= Received: by 10.14.10.91 with SMTP id 67mr547751eeu.109.1314827062769; Wed, 31 Aug 2011 14:44:22 -0700 (PDT) Received: from [46.202.196.24] (24-196-202-46.pool.ukrtel.net [46.202.196.24]) by mx.google.com with ESMTPS id 76sm5075784eee.42.2011.08.31.14.44.18 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Aug 2011 14:44:21 -0700 (PDT) Message-ID: <4E5EAB2B.3080404@gmail.com> Date: Thu, 01 Sep 2011 00:44:11 +0300 From: Oleksandr Gavenko User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 To: bug-gnu-emacs@gnu.org Subject: Use of 'grep-find-ignored-directories' exclude files from search. Content-Type: multipart/mixed; boundary="------------090800000806050406020005" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 140.186.70.17 X-Spam-Score: -5.9 (-----) 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.9 (-----) This is a multi-part message in MIME format. --------------090800000806050406020005 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit GNU Emacs 23.3.1 (i386-mingw-nt6.1.7601) of 2011-03-10 on 3249CTO If set: (add-to-list 'grep-find-ignored-directories "build" t) and try search M-x rgrep in hierarchy: build/xxx src/yyy src/build build $ mkdir build src; $ touch build/xxx src/yyy src/build 'find' part of 'rgrep' print only (I simplify expression of 'rgrep'): $ find . '(' -path '*/build' -o -path '*/lib' ')' \ -prune -o -type f -print ./src/yyy Correct one is: $ find . '(' -type d -path '*/build' -o -path '*/lib' ')' \ -prune -o -type f -print ./src/build ./src/yyy So any dir added to 'grep-find-ignored-directories' also affected to *regular* file names... I previously file bug to findutils, but I am wrong: http://savannah.gnu.org/bugs/?34159 This is Emacs bug. I suggest fix in patch. --------------090800000806050406020005 Content-Type: text/plain; name="grep-find-ignored-directories.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="grep-find-ignored-directories.patch" PT09IG1vZGlmaWVkIGZpbGUgJ2xpc3AvcHJvZ21vZGVzL2dyZXAuZWwnCi0tLSBsaXNwL3By b2dtb2Rlcy9ncmVwLmVsCTIwMTEtMDItMTAgMTk6MTM6MzEgKzAwMDAKKysrIGxpc3AvcHJv Z21vZGVzL2dyZXAuZWwJMjAxMS0wOC0zMSAyMTozNToxNCArMDAwMApAQCAtOTU4LDcgKzk1 OCw3IEBACiAJCSAgICAgICAoYW5kIGdyZXAtZmluZC1pZ25vcmVkLWRpcmVjdG9yaWVzCiAJ CQkgICAgKGNvbmNhdCAoc2hlbGwtcXVvdGUtYXJndW1lbnQgIigiKQogCQkJCSAgICA7OyB3 ZSBzaG91bGQgdXNlIHNoZWxsLXF1b3RlLWFyZ3VtZW50IGhlcmUKLQkJCQkgICAgIiAtcGF0 aCAiCisJCQkJICAgICIgLXR5cGUgZCAtcGF0aCAiCiAJCQkJICAgIChtYXBjb25jYXQKIAkJ CQkgICAgICMnKGxhbWJkYSAoaWdub3JlKQogCQkJCQkgKGNvbmQgKChzdHJpbmdwIGlnbm9y ZSkKCg== --------------090800000806050406020005-- From debbugs-submit-bounces@debbugs.gnu.org Wed Aug 31 18:36:36 2011 Received: (at 9414) by debbugs.gnu.org; 31 Aug 2011 22:36:36 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QytOe-00052k-EW for submit@debbugs.gnu.org; Wed, 31 Aug 2011 18:36:36 -0400 Received: from mail-ey0-f176.google.com ([209.85.215.176]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QytOb-00052c-QR for 9414@debbugs.gnu.org; Wed, 31 Aug 2011 18:36:34 -0400 Received: by eyz10 with SMTP id 10so1450864eyz.21 for <9414@debbugs.gnu.org>; Wed, 31 Aug 2011 15:33:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=sLtCnZ7Viyza8JaF41a2P+zDdZkLzb3lng9FYZwsWlE=; b=o/h6I+dsFv31L/6JA1YqL5ko9CKo9kG460Qxpdd/ZuaO8Yf7vxnUSKkqlV7yWSClWt KYMex9Z7l87Y2seVgvao3QyoaBbsyzMdb68kG9t+1nAnbBT/CqPUeaCB6lbZL+hA0lnM C9AK9wRvOBwJjMdRkatMY4ITSNe2EQdtybkhc= Received: by 10.213.16.69 with SMTP id n5mr79545eba.55.1314829997641; Wed, 31 Aug 2011 15:33:17 -0700 (PDT) Received: from [46.202.196.24] (24-196-202-46.pool.ukrtel.net [46.202.196.24]) by mx.google.com with ESMTPS id v2sm8723eej.34.2011.08.31.15.33.13 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 31 Aug 2011 15:33:16 -0700 (PDT) Message-ID: <4E5EB6A3.3010108@gmail.com> Date: Thu, 01 Sep 2011 01:33:07 +0300 From: Oleksandr Gavenko User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:6.0.1) Gecko/20110830 Thunderbird/6.0.1 MIME-Version: 1.0 To: 9414@debbugs.gnu.org Subject: Fixed patch. Content-Type: multipart/mixed; boundary="------------080305080905060603030007" X-Spam-Score: -4.8 (----) X-Debbugs-Envelope-To: 9414 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: -4.6 (----) This is a multi-part message in MIME format. --------------080305080905060603030007 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Previous patch is wrong (I miss 'find' options priority). This one right (more priestly tested and work fine). --------------080305080905060603030007 Content-Type: text/plain; name="grep-find-ignored-directories_2.patch" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="grep-find-ignored-directories_2.patch" PT09IG1vZGlmaWVkIGZpbGUgJ2xpc3AvcHJvZ21vZGVzL2dyZXAuZWwnCi0tLSBsaXNwL3By b2dtb2Rlcy9ncmVwLmVsCTIwMTEtMDItMTAgMTk6MTM6MzEgKzAwMDAKKysrIGxpc3AvcHJv Z21vZGVzL2dyZXAuZWwJMjAxMS0wOC0zMSAyMjoyNTo0MCArMDAwMApAQCAtOTU2LDcgKzk1 Niw3IEBACiAJCSAgICAgIGRpcgogCQkgICAgICAoY29uY2F0CiAJCSAgICAgICAoYW5kIGdy ZXAtZmluZC1pZ25vcmVkLWRpcmVjdG9yaWVzCi0JCQkgICAgKGNvbmNhdCAoc2hlbGwtcXVv dGUtYXJndW1lbnQgIigiKQorCQkJICAgIChjb25jYXQgIi10eXBlIGQgIiAoc2hlbGwtcXVv dGUtYXJndW1lbnQgIigiKQogCQkJCSAgICA7OyB3ZSBzaG91bGQgdXNlIHNoZWxsLXF1b3Rl LWFyZ3VtZW50IGhlcmUKIAkJCQkgICAgIiAtcGF0aCAiCiAJCQkJICAgIChtYXBjb25jYXQK Cg== --------------080305080905060603030007-- From debbugs-submit-bounces@debbugs.gnu.org Mon Sep 05 06:01:03 2011 Received: (at 9414-done) by debbugs.gnu.org; 5 Sep 2011 10:01: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 1R0VzD-0003Nm-FW for submit@debbugs.gnu.org; Mon, 05 Sep 2011 06:01:03 -0400 Received: from smarty.dreamhost.com ([208.113.175.8]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R0VzB-0003NH-2S for 9414-done@debbugs.gnu.org; Mon, 05 Sep 2011 06:01:01 -0400 Received: from ps18281.dreamhostps.com (ps18281.dreamhost.com [69.163.218.105]) by smarty.dreamhost.com (Postfix) with ESMTP id 1912E6E8063; Mon, 5 Sep 2011 02:57:20 -0700 (PDT) Received: from localhost (ps18281.dreamhostps.com [69.163.218.105]) by ps18281.dreamhostps.com (Postfix) with ESMTP id 27403451C454; Mon, 5 Sep 2011 02:57:18 -0700 (PDT) From: Juri Linkov To: Oleksandr Gavenko Subject: Re: bug#9414: Fixed patch. Organization: JURTA References: <4E5EAB2B.3080404@gmail.com> <4E5EB6A3.3010108@gmail.com> Date: Mon, 05 Sep 2011 12:55:32 +0300 In-Reply-To: <4E5EB6A3.3010108@gmail.com> (Oleksandr Gavenko's message of "Thu, 01 Sep 2011 01:33:07 +0300") Message-ID: <87k49nqpnv.fsf@mail.jurta.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 9414-done Cc: 9414-done@debbugs.gnu.org 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 (--) > Previous patch is wrong (I miss 'find' options priority). > > This one right (more priestly tested and work fine). Thank you. This patch is now committed. From unknown Thu Jun 19 13:59:51 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Mon, 03 Oct 2011 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator