From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/34815 Path: main.gmane.org!not-for-mail From: ShengHuo ZHU Newsgroups: gmane.emacs.gnus.general Subject: Re: -request-set-mark interface Date: 16 Feb 2001 11:51:54 -0500 Sender: owner-ding@hpc.uh.edu Message-ID: <5bbss2muz9.fsf@avocet.cs.rochester.edu> References: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1035170668 32231 80.91.224.250 (21 Oct 2002 03:24:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 03:24:28 +0000 (UTC) Return-Path: Original-Received: from karazm.math.uh.edu (karazm.math.uh.edu [129.7.128.1]) by mailhost.sclp.com (Postfix) with ESMTP id E8AA9D04A0 for ; Fri, 16 Feb 2001 11:52:49 -0500 (EST) Original-Received: from sina.hpc.uh.edu (lists@Sina.HPC.UH.EDU [129.7.3.5]) by karazm.math.uh.edu (8.9.3/8.9.3) with ESMTP id KAC16099; Fri, 16 Feb 2001 10:52:27 -0600 (CST) Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Fri, 16 Feb 2001 10:51:40 -0600 (CST) Original-Received: from mailhost.sclp.com (postfix@66-209.196.61.interliant.com [209.196.61.66] (may be forged)) by sina.hpc.uh.edu (8.9.3/8.9.3) with ESMTP id KAA21267 for ; Fri, 16 Feb 2001 10:51:30 -0600 (CST) Original-Received: from gate.cs.rochester.edu (gate.cs.rochester.edu [192.5.53.207]) by mailhost.sclp.com (Postfix) with ESMTP id A54A4D04A0 for ; Fri, 16 Feb 2001 11:52:00 -0500 (EST) Original-Received: from avocet.cs.rochester.edu (avocet.cs.rochester.edu [192.5.53.22]) by gate.cs.rochester.edu (8.9.1b+Sun/U) with ESMTP id LAA15427 for ; Fri, 16 Feb 2001 11:51:58 -0500 (EST) Original-Received: (from zsh@localhost) by avocet.cs.rochester.edu (8.9.1b+Sun/Q++) id LAA07744; Fri, 16 Feb 2001 11:51:54 -0500 (EST) Original-To: ding@gnus.org X-Attribution: ZSH X-Face: 'IF:e51ib'Qbl^(}l^&4-J`'P!@[4~O|&k#:@Gld#b/]oMq&`&FVY._3+b`mzp~Jeve~/#/ ERD!OTe<86UhyN=l`mrPY)M7_}`Ktt\K+58Z!hu7>qU,i.N7TotU[FYE(f1;}`g2xj!u*l`^&=Q!g{ *q|ddto|nkt"$r,K$[)"|6,elPH= GJ6Q In-Reply-To: (Simon Josefsson's message of "Fri, 16 Feb 2001 17:28:37 +0100 (CET)") User-Agent: Gnus/5.090001 (Oort Gnus v0.01) Emacs/20.7 Precedence: list X-Majordomo: 1.94.jlt7 Original-Lines: 45 Xref: main.gmane.org gmane.emacs.gnus.general:34815 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:34815 Simon Josefsson writes: > On 16 Feb 2001, Paul Jarc wrote: > > > The 5.8.8 info says: > > #`(nnchoke-request-set-mark GROUP ACTION &optional SERVER)' > > ... > > # ACTION is a list of mark setting requests, having this format: > > # > > # (RANGE ACTION MARK) > > # > > # Range is a range of articles you wish to update marks on. > > ... > > # An example action list: > > # > > # (((5 12 30) 'del '(tick)) > > # ((10 . 90) 'add '(read expire)) > > # ((92 94) 'del '(read))) > > > > Is this right? It seems that the second action should be: > > (((10 . 90)) 'add '(read expire)) > > Can RANGE really be a single range (a number or cons of two numbers), > > or is it always a list of ranges? > > RANGE can be a cons of two numbers (like in the example, which I think is > correct). I don't think ranges are allowed to be a single number. The > range EBNF don't indicate that, and the gnus-range-* functions doesn't > seem to handle it either. Some range functions can handle a single range, such as gnus-uncompress-range (search for "(listp (cdr", you will find many). Unfortunately, some of them possibly return a single range. The below function normalizes ranges. I've put it into oGnus. (defsubst gnus-range-normalize (range) "Normalize RANGE. If RANGE is a single range, return (RANGE). Otherwise, return RANGE." (if (listp (cdr range)) (list range) range)) ShengHuo -- (setq gnus-posting-styles '((".*" (signature (format "(setq gnus-posting-styles '%S)" gnus-posting-styles)))))