From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/67098 Path: news.gmane.org!not-for-mail From: Rupert Swarbrick Newsgroups: gmane.emacs.gnus.general Subject: Score traces Date: Tue, 01 Jul 2008 10:05:09 +0100 Message-ID: <87k5g6geka.fsf@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1214903204 4978 80.91.229.12 (1 Jul 2008 09:06:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 1 Jul 2008 09:06:44 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M15562@lists.math.uh.edu Tue Jul 01 11:07:30 2008 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1KDbpF-0006Ro-7T for ding-account@gmane.org; Tue, 01 Jul 2008 11:07:01 +0200 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 1KDbnJ-0003by-Tc; Tue, 01 Jul 2008 04:05:01 -0500 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 1KDbnH-0003bl-PA for ding@lists.math.uh.edu; Tue, 01 Jul 2008 04:04:59 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1KDbnB-0006Hf-Iy for ding@lists.math.uh.edu; Tue, 01 Jul 2008 04:04:59 -0500 Original-Received: from ug-out-1314.google.com ([66.249.92.168]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1KDbnV-0002l6-00 for ; Tue, 01 Jul 2008 11:05:13 +0200 Original-Received: by ug-out-1314.google.com with SMTP id o4so388898uge.8 for ; Tue, 01 Jul 2008 02:04:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:to:subject:user-agent:date :message-id:mime-version:content-type:from; bh=x2cxYBcNE08dqKwbYGYBHIrKn/71AXcKLRy51JulWN0=; b=fAMGs8or50NsaHy3CY9+o+Va+cYIiF4onO7PafYlOFRyGxkYqmMAjAnkfwYjht+ZNY JBxW9RbgmczvaPMct/HA7VrA/GnhN5Ha32MyCXwcEWdIK/qXiIl9MpsBQBsXrt9nPDKG wxkc8BcKgT4tQ+JbS1Ifpl/ND6O27wJdziEoQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=to:subject:user-agent:date:message-id:mime-version:content-type :from; b=B0GGKPjEMqEVjoNWTFjpUJs8P6kJq1AFx6ki0Ry22PX1se9QPdkvdoSB2Mni8Ro4hL 1E/txhofAryZ3uxQLHksIMF7xeTuyNlVBSt+LMyBEPHKDq2wbMO/eUVBLYu+UD7lu6dO avwyNDpXQ6vXkMWC/jJeBc8l821PdFLH9YdNg= Original-Received: by 10.210.117.1 with SMTP id p1mr5111588ebc.4.1214903089855; Tue, 01 Jul 2008 02:04:49 -0700 (PDT) Original-Received: from hake ( [87.127.75.32]) by mx.google.com with ESMTPS id q9sm5044373gve.5.2008.07.01.02.04.48 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Jul 2008 02:04:48 -0700 (PDT) User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/22.2 (gnu/linux) X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:67098 Archived-At: --=-=-= Content-Transfer-Encoding: quoted-printable I've been using gnus for a few months now and, though I really like almost everything about it, I would really like it if the score trace finished with a "total score" line. I did the changes below to gnus-score.el and the result looks like ### ("Mario Donick " 5 733224 s) [rec.games.roguelike.m= isc.ADAPT] -> ~/News/rec.games.roguelike.misc.ADAPT ("lambdarogue" -10 733224 w) [rec.games.roguelike.misc.ADAPT] -> ~/News/rec= .games.roguelike.misc.ADAPT Total score: -5 Quick help: Type `e' to edit score file corresponding to the score rule on current line, `f' to format (pretty print) the score file and edit it, `t' toggle to truncate long lines in this buffer, `q' to quit, `k' to kill score trace buffer. The first sexp on each line is the score rule, followed by the file name of ### I think this is handy when there are gazillions of scoring reasons - my mental arithmetic starts to get outclassed at about 5... Does this seem a useful patch? Is there a better way to do it? Rupert *** gnus-score.el 19 May 2008 09:47:42 +0100 7.39 =2D-- gnus-score.el 01 Jul 2008 09:40:11 +0100=09 *************** *** 2467,2472 **** =2D-- 2467,2475 ---- ;; .ADAPT directly: (file-name-nondirectory file) (abbreviate-file-name file)))) + (insert + (format "Total score: %d" + (apply '+ (mapcar 'caddr trace)))) (insert "\n\nQuick help: =20=20 --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iJwEAQECAAYFAkhp80gACgkQRtd/pJbYVoajzQP8DFT3t7Zgee46Dx+Efk/2qmbz jVMFjFwojsxXiIMtQ0LqGjqFfhCy2/hW9yrEdci2zQX7Ij7eAOgKMAdeoTI52Pcd ztCQId0+SOQuVRSO45lnauMEPAvqjnPgEcNkrtOGohzbUfICZLYmJ0ALXrESq5q/ n8rYlP6LLOFfRG+g+pI= =ygmV -----END PGP SIGNATURE----- --=-=-=--