From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.help Subject: Re: find-grep-dired: skip .git Date: Thu, 17 Apr 2014 21:56:37 +0700 Message-ID: References: <87vbu81733.fsf@physik.rwth-aachen.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1397746624 19897 80.91.229.3 (17 Apr 2014 14:57:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Apr 2014 14:57:04 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Torsten Bronger Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 17 16:56:58 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WankE-0005Kf-Os for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Apr 2014 16:56:54 +0200 Original-Received: from localhost ([::1]:33082 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WankE-0003uq-5L for geh-help-gnu-emacs@m.gmane.org; Thu, 17 Apr 2014 10:56:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wank0-0003rB-8Q for help-gnu-emacs@gnu.org; Thu, 17 Apr 2014 10:56:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wanjz-0003uf-66 for help-gnu-emacs@gnu.org; Thu, 17 Apr 2014 10:56:40 -0400 Original-Received: from mail-qa0-x234.google.com ([2607:f8b0:400d:c00::234]:63153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wanjy-0003tI-Oa for help-gnu-emacs@gnu.org; Thu, 17 Apr 2014 10:56:38 -0400 Original-Received: by mail-qa0-f52.google.com with SMTP id s7so485464qap.39 for ; Thu, 17 Apr 2014 07:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type:content-transfer-encoding; bh=iQac0cCSVqccUqAoPH8u1/eFvk9s1GJjnOj0Qugubx4=; b=N+ubPF2tedvGs3d0uj78qLRWdTCZl3ysEv9/CN90RKRsw7NQ27yEAQCrr0USnhSko5 BTYZd8UWmNMT5N5n92ztR8hpgV2DE5u+vDgMKuaZ+SCOK4IO3ezIUooebBzp+6w54xan 3mubV+fcJuTf5f9RAJ08pZUS1kzquiYKtvY0K5cGpCc/xqIEbiZuVd0Im7sOpIzseCg5 vTL/waezTmnlFFKeY3vo+iWlfHql2SCaGb/Akj9lkCtLI8SJdeRrzGexQk66CRteS+Nz QGkplmQV4atSGwzO3DZjoDBwGvGffIJurbMpbwbiJd3wzg/TDyATrr0M+NHX6/EWZ2EV Lfeg== X-Received: by 10.140.91.7 with SMTP id y7mr17813265qgd.3.1397746597926; Thu, 17 Apr 2014 07:56:37 -0700 (PDT) Original-Received: by 10.96.29.1 with HTTP; Thu, 17 Apr 2014 07:56:37 -0700 (PDT) In-Reply-To: <87vbu81733.fsf@physik.rwth-aachen.de> X-Google-Sender-Auth: CNSEbmrWmV-TUw3Dex7F4gGITh8 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400d:c00::234 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:97171 Archived-At: On Thu, Apr 17, 2014 at 7:19 PM, Torsten Bronger wrote: > I think my find-grep-dired actions lose a lot of time in .git > subdirs. Can I tell Emacs somehow to skip them always? Although this is not what you ask for, you might try =E2=80=98grep=E2=80=99= using the following value of =E2=80=98grep-command=E2=80=99: git --no-pager grep -nH -Ee '' (you put the regexp between those quotes). Alternatively, you might try diving into sources of =E2=80=98find-grep-dire= d=E2=80=99 and getting dired to run on the result of =E2=80=9Cgit --no-pager grep -l -= Ee 'your_regex' | xargs ls=E2=80=9D, but this assumes you are on a unix-like system.