From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/28399 Path: main.gmane.org!not-for-mail From: Harry Putnam Newsgroups: gmane.emacs.gnus.general Subject: Re: [nnir] syntax Date: 22 Dec 1999 02:30:25 -0800 Sender: owner-ding@hpc.uh.edu Message-ID: References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1035165254 29689 80.91.224.250 (21 Oct 2002 01:54:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 01:54:14 +0000 (UTC) Cc: ding@gnus.org Return-Path: Original-Received: from spinoza.math.uh.edu (spinoza.math.uh.edu [129.7.128.18]) by mailhost.sclp.com (Postfix) with ESMTP id 81015D051E for ; Wed, 22 Dec 1999 05:33:14 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by spinoza.math.uh.edu (8.9.1/8.9.1) with ESMTP id EAB17691; Wed, 22 Dec 1999 04:32:58 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 22 Dec 1999 04:32:43 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@sclp3.sclp.com [204.252.123.139]) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id EAA20486 for ; Wed, 22 Dec 1999 04:32:32 -0600 (CST) Original-Received: from mail.networkone.net (mail.networkone.net [209.144.112.75]) by mailhost.sclp.com (Postfix) with SMTP id D3978D051E for ; Wed, 22 Dec 1999 05:30:50 -0500 (EST) Original-Received: (qmail 13242 invoked from network); 22 Dec 1999 10:32:02 -0000 Original-Received: from pm3-6-96.la.networkone.net (HELO satellite.local.lan) (reader@209.144.125.96) by mail.networkone.net with SMTP; 22 Dec 1999 10:32:02 -0000 Original-Received: (from reader@localhost) by satellite.local.lan (8.9.3/8.9.1) id CAA01869; Wed, 22 Dec 1999 02:30:42 -0800 Original-To: Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai =?iso-8859-1?q?Gro=DFjohann?=) User-Agent: Gnus/5.070099 (Pterodactyl Gnus v0.99) Emacs/20.4 Original-Lines: 66 Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:28399 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:28399 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > Harry Putnam writes: > > > The only way I found that works is: > > > > C-u G G some thing groupN > > Hm. It is not clear to me why this would work and the following > wouldn't: > > C-u G G ^Subject: some thing$ RET groupN RET OK, just to show what I'm doing here are the Message buffer comments: [ not shown in message buffer, but here I inserted the query: ^Subject: ping log$] Opening nnir server on -ephemeral... Wrong type argument: listp, ping [ Here I inserted the query: ping log] Beginning of buffer Doing glimpse query ((query . ping log) (group . ping)) on ping... glimpse args: -H /home/reader/.glimpse-m -W -l -y -i -F /home/reader/Mail/;ping ping log Doing glimpse query ((query . ping log) (group . ping)) on ping... Retrieving newsgroup: nnir:((query . "ping log") (group . "ping"))... Fetching headers for nnir:((query . "ping log") (group . "ping"))... Fetching headers for nnir:((query . "ping log") (group . "ping"))...done A word of explanation: I have a group named nnml:ping. That group contains dozens of messages witht he subject "ping log' . All look exactly like: Subject: ping log > > Hm. Can you M-x load-library RET nnir.el RET, then set debug-on-error > to t, then try again and send me the backtrace? Signaling: (wrong-type-argument listp ping) assq(group ping) (cdr (assq (quote group) query)) (let ((artlist nil) (groupspec ...) (qstring ...)) (when (and group groupspec) (error ...)) (when group (setq groupspec ...)) (set-buffer (get-buffer-create nnir-tmp-buffer)) (erase-buffer) (if groupspec (message "Doing glimpse query %s on %s..." query groupspec) (message "Doing glimpse query %s..." query)) (let* (... ...) (unless ... ... ...)) (if groupspec (message "Doing glimpse query %s on %s..." query groupspec) (message "Doing glimpse query %s...done" query)) (sit-for 0) (goto-char (point-min)) (delete-non-matching-lines "/[0-9]+$") (goto-char (point-min)) (while (re-search-forward ... nil t) (replace-match "")) (goto-char (point-max)) (while (re-search-backward "/[0-9]+$" nil t) (delete-char 1 nil) (insert-char 9 1)) (subst-char-in-region (point-min) (point-max) 47 46 t) (goto-char (point-min)) (while (not ...) (insert "[\"") (skip-chars-forward "^ ") (insert "\" ") (end-of-line) (insert " 1000 ]") (forward-line 1)) (insert "])\n") (goto-char (point-min)) (insert "(s e! ! tq artlist [\n") (eval-buffer) (sort* artlist (function ...))) (save-excursion (let (... ... ...) (when ... ...) (when group ...) (set-buffer ...) (erase-buffer) (if groupspec ... ...) (let* ... ...) (if groupspec ... ...) (sit-for 0) (goto-char ...) (delete-non-matching-lines "/[0-9]+$") (goto-char ...) (while ... ...) (goto-char ...) (while ... ... ...) (subst-char-in-region ... ... 47 46 t) (goto-char ...) (while ... ... ... ... ... ... ...) (insert "])\n") (goto-char ...) (insert "(setq artlist [\n") (eval-buffer) (sort* artlist ...))) nnir-run-glimpse(ping nil) funcall(nnir-run-glimpse ping nil) (if gnus-group-marked (apply (quote append) (mapcar ... gnus-group-marked)) (funcall search-func q nil)) (let ((search-func ...) (q ...)) (if gnus-group-marked (apply ... ...) (funcall search-func q nil))) nnir-run-query(" ping log$\") (group . \"ping\"))") (setq nnir-artlist (nnir-run-query group)) (if (and (equal group nnir-current-query) (equal gnus-group-marked nnir-current-group-marked) (or ... ...)) nnir-artlist (setq nnir-artlist (nnir-run-query group)) (save-excursion (set-buffer nntp-server-buffer) (if ... ... ... ... ... ...))) nnir-request-group(" ping log$\") (group . \"ping\"))" "-ephemeral" nil) byte-code(" \n †ŸÆ †ž„ e! ! nd request-group error "Attempted use of a nil select method" gnus-server-to-method gnus-agent-get-function gnus-method-functions "%s-%s" put fboundp "Trying to require a method that doesn't exist" require "No such function: %s" string-match "^[^:]+:" 0 gnus-select-method gnus-newsrc-hashtb server gnus-server-alist gnus-predefined-server-alist gnus-opened-servers opened gnus-secondary-select-methods servers method-name gnus-valid-select-methods noerror] 7) gnus-activate-group("((query . \"^Subject: ping log$\") (group . \"ping\"))" scan) gnus-group-read-ephemeral-group("((query . \"^Subject: ping log$\") (group . \"ping\"))" (nnir "") t (# . group) nil) (let ((parms nil)) (if extra-parms (setq parms ...) (setq parms ...)) (gnus-group-read-ephemeral-group (prin1-to-string parms) (quote ...) t (cons ... gnus-current-window-configuration) nil)) gnus-group-make-nnir-group((4) "^Subject: ping log$") * call-interactively(gnus-group-make-nnir-group) > > What happens if you try to search for `^Subject: some thing$' > _without_ specifying a groupspec (ie, `G G' rather than `C-u G G')? I get the same: wrong type argument listp, ping