From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/84294 Path: news.gmane.org!not-for-mail From: George McNinch Newsgroups: gmane.emacs.gnus.general Subject: Re: nnir + namazu: always <= 999 matches ? ANS: commas! Date: Thu, 06 Mar 2014 12:13:16 -0500 Message-ID: <82iorr1c9f.fsf@chipmunk-via-gmail.com> References: <82siqws54k.fsf@jazz-via-gmail.com> Reply-To: George McNinch NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: ger.gmane.org 1394126036 1911 80.91.229.3 (6 Mar 2014 17:13:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2014 17:13:56 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M32542@lists.math.uh.edu Thu Mar 06 18:14:02 2014 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WLbrs-0007XW-U3 for ding-account@gmane.org; Thu, 06 Mar 2014 18:14:01 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1WLbrZ-0002h2-0w; Thu, 06 Mar 2014 11:13:41 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1WLbrX-0002gk-03 for ding@lists.math.uh.edu; Thu, 06 Mar 2014 11:13:39 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1WLbrV-0005s0-Iy for ding@lists.math.uh.edu; Thu, 06 Mar 2014 11:13:38 -0600 Original-Received: from plane.gmane.org ([80.91.229.3]) by quimby.gnus.org with esmtp (Exim 4.80) (envelope-from ) id 1WLbrT-0001LG-L3 for ding@gnus.org; Thu, 06 Mar 2014 18:13:35 +0100 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WLbrN-00073D-Ol for ding@gnus.org; Thu, 06 Mar 2014 18:13:29 +0100 Original-Received: from 209-6-122-78.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com ([209.6.122.78]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Mar 2014 18:13:29 +0100 Original-Received: from gmcninch by 209-6-122-78.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 06 Mar 2014 18:13:29 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 74 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 209-6-122-78.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com User-Mail-Address: gmcninch@gmail.com User-Agent: Gnus/5.13001 (Ma Gnus v0.10) Emacs/24.3.50 (gnu/linux) Cancel-Lock: sha1:xuzpyeo2u8S8JMbD995NhPw5SpM= X-Spam-Score: -0.0 (/) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:84294 Archived-At: --=-=-= Content-Type: text/plain Earlier, I wrote: gm> I have some nnml groups, and I've configured nnir for use with gm> the namazu engine. For any search, the ephemeral groups produced gm> by nnir seem to contain no more than 999 matches even when gm> namazu gets more hits than 999, and I'm not sure how to override gm> that max. Aha, I finally noticed that the *nnir* buffer had entries like: ,---- | 1,402. Re: Your message of Mon, 3 Nov 1997 15:44:21 -0500 (score: 2) | /home/george/Mail/mathematics/135 (2,723 bytes) `---- Note the *comma* in 1,402. The regexp matching these entries did not allow for this comma, which explains hit-counts being always <= 999. The "hit number" that has the comma in it isn't actually used anywhere, so there seems to be no harm to just include the possible comma in the regexp. Maybe there is some way to tell namazu not to emit commas when counting past 1000, but I didn't see how in the man page. Here is a patch for nnir.el fixing the regexp in nnir-run-namazu, though I wasn't quite sure how I ought to "make the patch correctly" so that someone can easily put the fix in the git archive. It is anyhow a simple change. --=-=-= Content-Type: text/plain Content-Disposition: inline; filename=nnir.el-diff diff -c /home/george/Config/dot-emacs/contrib/old/nnir.el /home/george/Config/dot-emacs/contrib/new/nnir.el *** /home/george/Config/dot-emacs/contrib/old/nnir.el 2014-03-06 11:46:24.029862148 -0500 --- /home/george/Config/dot-emacs/contrib/new/nnir.el 2014-03-06 11:52:55.873872182 -0500 *************** *** 1483,1489 **** (goto-char (point-min)) (while (re-search-forward ! "^\\([0-9]+\\.\\).*\\((score: \\([0-9]+\\)\\))\n\\([^ ]+\\)" nil t) (setq score (match-string 3) group (file-name-directory (match-string 4)) --- 1483,1489 ---- (goto-char (point-min)) (while (re-search-forward ! "^\\([0-9,]+\\.\\).*\\((score: \\([0-9]+\\)\\))\n\\([^ ]+\\)" nil t) (setq score (match-string 3) group (file-name-directory (match-string 4)) Diff finished. Thu Mar 6 11:53:21 2014 --=-=-= Content-Type: text/plain -- -===- George McNinch -===- http://gmcninch.math.tufts.edu --=-=-=--