From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Lee Newsgroups: gmane.emacs.help Subject: Re: Nested grep Date: Wed, 15 Nov 2006 17:57:21 GMT Organization: x Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1163616132 17924 80.91.229.2 (15 Nov 2006 18:42:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 15 Nov 2006 18:42:12 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 15 19:42:07 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GkPhe-00005i-VU for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Nov 2006 19:41:44 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GkPhd-0003vp-Mw for geh-help-gnu-emacs@m.gmane.org; Wed, 15 Nov 2006 13:41:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newscon04.news.prodigy.net!prodigy.net!newsdst01.news.prodigy.net!prodigy.com!postmaster.news.prodigy.com!newssvr25.news.prodigy.net.POSTED!404941e6!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:qLbOttEHBnJeNtFUDA0NSM28FXM= Original-Lines: 47 Original-NNTP-Posting-Host: 66.194.80.196 Original-X-Complaints-To: abuse@prodigy.net Original-X-Trace: newssvr25.news.prodigy.net 1163613441 ST000 66.194.80.196 (Wed, 15 Nov 2006 12:57:21 EST) Original-NNTP-Posting-Date: Wed, 15 Nov 2006 12:57:21 EST X-UserInfo1: OH]YBTSEJCUYRTH]]ZN@_TDAYZOZ@GXOXR]ZMVMHQAVTUZ]CLNTCPFK[WDXDHV[K^FCGJCJLPF_D_NCC@FUG^Q\DINVAXSLIFXYJSSCCALP@PB@\OS@BITWAH\CQZKJMMD^SJA^NXA\GVLSRBD^M_NW_F[YLVTWIGAXAQBOATKBBQRXECDFDMQ\DZFUE@\JM Original-Xref: shelby.stanford.edu gnu.emacs.help:143121 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:38739 Archived-At: >>>> Drew Adams writes: > Hi Tamas; thx for the suggestion. FYI - I added some different commands, > which I think might be more useful (YMMV) - > http://www.emacswiki.org/cgi-bin/wiki/grep%2b.el. Drew, I like this package, but have one problem with it. given the following grep buffer: -*- mode: grep; default-directory: "/usr/lib/python2.3/site-packages/foo/bar/" -*- Grep started at Wed Nov 15 11:53:21 find . -type f ! -regex ".*~" ! -regex ".*\.#.*" ! -iname "*.pyc" ! -iname "tags" -print0 | xargs -0 -e grep -nH -i -e _widget ./barconfig.py:291: self._widget = True ./barconfig.py:308: return self._widget ./barconfig.py:364: return bool(self._zzz and self._widget) ./baz.py:645: def _widget(self, wi): ./baz.py:669: wi._issue('widget', ./baz.py:672: wi._issue('widget', ./baz.py:1070: self._widget(wi) Grep finished (matches found) at Wed Nov 15 11:53:21 hitting 'n' causes it to hit each line twice. In other words... I have to hit 'n' twice to advance one error. However 'p' does not do this, so I'm assuming it's a bug. when I hit 'n' the first time it puts cursor here: ./barconfig.py:291: self._widget = True ^ when I select 'n' again: ./barconfig.py:291: self._widget = True ^ and next 'n' finally advances. ./barconfig.py:308: return self._widget ^ and so on... ./barconfig.py:308: return self._widget ^ Know what this might be?