Gnus development mailing list
 help / color / mirror / Atom feed
* Score traces
@ 2008-07-01  9:05 Rupert Swarbrick
  2008-07-01 20:16 ` Reiner Steib
  0 siblings, 1 reply; 2+ messages in thread
From: Rupert Swarbrick @ 2008-07-01  9:05 UTC (permalink / raw)
  To: ding

[-- Attachment #1: Type: text/plain, Size: 1464 bytes --]


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 <mario.donick@gmail.com>" 5 733224 s) [rec.games.roguelike.misc.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
--- gnus-score.el	01 Jul 2008 09:40:11 +0100	
***************
*** 2467,2472 ****
--- 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:
  

[-- Attachment #2: Type: application/pgp-signature, Size: 314 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-07-01 20:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-01  9:05 Score traces Rupert Swarbrick
2008-07-01 20:16 ` Reiner Steib

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).