From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/39426 Path: main.gmane.org!not-for-mail From: Frank Schmitt Newsgroups: gmane.emacs.gnus.general Subject: Re: [bug] Mark limit score Date: Fri, 19 Oct 2001 00:32:52 +0200 Organization: Hamme net, kren mer och nimmi Sender: owner-ding@hpc.uh.edu Message-ID: References: <7ktt2sb6.fsf@hschmi22.userfqdn.rz-online.de> Reply-To: NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-Trace: main.gmane.org 1035175132 27780 80.91.224.250 (21 Oct 2002 04:38:52 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Mon, 21 Oct 2002 04:38:52 +0000 (UTC) Return-Path: Original-Received: (qmail 10859 invoked from network); 18 Oct 2001 22:36:31 -0000 Original-Received: from malifon.math.uh.edu (mail@129.7.128.13) by mastaler.com with SMTP; 18 Oct 2001 22:36:31 -0000 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 15uLlW-000624-00; Thu, 18 Oct 2001 17:35:50 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Thu, 18 Oct 2001 17:35:28 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id RAA09930 for ; Thu, 18 Oct 2001 17:35:16 -0500 (CDT) Original-Received: (qmail 10783 invoked by alias); 18 Oct 2001 22:32:07 -0000 Original-Received: (qmail 10778 invoked from network); 18 Oct 2001 22:32:07 -0000 Original-Received: from quimby.gnus.org (195.204.10.139) by gnus.org with SMTP; 18 Oct 2001 22:32:07 -0000 Original-Received: (from news@localhost) by quimby.gnus.org (8.9.3/8.9.3) id AAA17168 for ding@gnus.org; Fri, 19 Oct 2001 00:32:04 +0200 (CEST) Original-To: ding@gnus.org Original-Path: not-for-mail Original-Newsgroups: gnus.ding Original-Lines: 53 Original-NNTP-Posting-Host: pppin33.max-hochsimmer.rz-online.net Original-X-Trace: quimby.gnus.org 1003444324 25837 212.7.169.33 (18 Oct 2001 22:32:04 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: 18 Oct 2001 22:32:04 GMT User-Agent: Gnus/5.090004 (Oort Gnus v0.04) XEmacs/21.4 (Academic Rigor) Hamster/1.3.23.0 X-Face: "?Hv7MyYveeGDm66,O\f[l6!L*,`Q)c&3'8{9UGIM`EO8<3ASfX`8}W+u;F},&V%/y+cz(z&spQ(`CkKzCJY/@0R]aM#[W7*$(,QA-oO0f}Z2S0Y0~b5}|XDhQds[9}=t$Hf%G2c;zR%;$"~eI+dw3Gy!xKw=oduK(-, Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:39426 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:39426 --=-=-= Simon Josefsson writes: >> Then: /v calls gnus-summary-limit-to-score. This function is the one I >> want, but it doesn't ask for the score I wish to limit the summary >> to. It limits the summary to articles with a score bigger or equal than >> gnus-summary-default-score which is quite senseless. > > Maybe it is possible to use a prefix, e.g. '100 / v'. What do you think about this: --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=gnus-sum.diff Content-Description: Patch against gnus-sum.el --- lisp/gnus-sum.el Thu Oct 18 20:03:02 2001 +++ /cygdrive/c/Programme/XEmacs/xemacs-packages/lisp/gnus/gnus-sum.el Thu Oct 18 22:26:50 2001 @@ -6958,9 +6958,12 @@ (defun gnus-summary-limit-to-score (&optional score) "Limit to articles with score at or above SCORE." (interactive "P") - (setq score (if score - (prefix-numeric-value score) - (or gnus-summary-default-score 0))) + (if (not score) + (setq score + (string-to-number (read-from-minibuffer + "Limit to articles with a score bigger or equal than: " + (number-to-string (or gnus-summary-default-score 0))))) + (setq score (prefix-numeric-value score))) (let ((data gnus-newsgroup-data) articles) (while data --=-=-= -- One Ring to rule them all, One Ring to find them, One Ring to bring them all and in the darkness bind them In the Land of Mordor where the Shadows lie. 19. Dezember 2001 --=-=-=--