Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Magne Ingebrigtsen <larsi@gnus.org>
Subject: Re: C-u a in Group and scoring on own
Date: Sun, 29 Dec 2002 17:54:54 +0100	[thread overview]
Message-ID: <m3bs3422ap.fsf@quimbies.gnus.org> (raw)
In-Reply-To: <wtnu1kpqacd.fsf@licia.dtek.chalmers.se>

Jonas Steverud <d4jonas@dtek.chalmers.se> writes:

> I use the "score on replies to my posts",
> (add-hook 'message-sent-hook (function (lambda nil
> 					 (gnus-score-followup-article 300))))
> (add-hook 'message-sent-hook (function (lambda nil
> 					 (gnus-score-followup-thread 300))))
> as suggested in the manual.
>
> I've have seen for several (?) years that sometimes the article is not
> added to the SCORE file.
>
> I did some quick debugging and some tests and found out that doing "a"
> in the group (a local news test group) added the Message-ID to the
> "references" part of the score file, but doing C-u a in the Group
> buffer *did not*.
>
> Both functions, gnus-group-post-news and gnus-summary-post-news calls
> (gnus-post-news 'post gnus-newsgroup-name)!
>
> I just looked in gnus-score-followup-thread and found 
>
>   (when (gnus-buffer-live-p gnus-summary-buffer)
>     ... rest of code
>
> Is this the only way or is it some way of adding score even when one
> haven't gone into the group? The when statement is used mostly to
> easily find the score file. Maybe gnus-summary-score-entry can be
> extended to take a group name too? Or a "wrapper" function? (I know
> too little of the internals of Gnus to write one on my own.)

Hm...  This should be fixed, but I've looked over the code to
`gnus-summary-score-entry', and it really wants to be in a summary
buffer when it does its work.  However, I think calling that function
is the wrong thing to do.  We really just want to add a score rule --
we don't want to rescore the summary buffer, and stuff like that.

Let's see...  we really want to add the scoring rule to the current
group's score file, right?  Hm.  But actually computing what file
this is is somewhat complicated.  And then it would have to be
specially loaded, and then a new function to insert it into this
alist would have to be written, or refactored out of some of the
other score functions...

Uhm.  Can't you just post from the summary buffer?  :-)

-- 
(domestic pets only, the antidote for overdose, milk.)
   larsi@gnus.org * Lars Magne Ingebrigtsen



      reply	other threads:[~2002-12-29 16:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-17  8:38 Jonas Steverud
2002-12-29 16:54 ` Lars Magne Ingebrigtsen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m3bs3422ap.fsf@quimbies.gnus.org \
    --to=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).