Gnus development mailing list
 help / color / mirror / Atom feed
From: Hallvard B Furuseth <h.b.furuseth@usit.uio.no>
Subject: Re: Default SCORE file for a hierarchy
Date: 15 Jul 1998 16:53:53 +0200	[thread overview]
Message-ID: <HBF.980715m4iy@bombur2.uio.no> (raw)
In-Reply-To: Lars Magne Ingebrigtsen's message of "Wed, 15 Jul 1998 08:03:46 GMT"

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>Hallvard B Furuseth <h.b.furuseth@usit.uio.no> writes:
>> So, I tried to put this in comp.lang.SCORE, that' exactly what I want:
>> 
>> (...
>>  (local (gnus-home-score-file "...GNUS/comp.lang.SCORE")))

No, it isn't.  If it worked, that would override comp.lang.c.SCORE,
which does exist.

> I'd suggest setting gnus-home-score-file to a function that triggers
> on comp.lang groups, and returns nil on other groups.

Same problem there.

> The home score file has to be computed before the other score files
> have been loaded, so this won't work.

Drat.

Well, since it's possible to say `M-x gnus-score-change-score-file'
after scoring, I assume it would be possible to put that in a hook
somewhere too.  After summary generation, or something.

Would this work?  Is it worth it?
 1. Before loading a group's score files,
      set `my-score-file' to nil.
 2. When loading a score file,
      set `my-score-file' to that score file *if it exists (or is cached)*.
 3. After loading the files (or after summary generation or something),
      do (if my-score-file
	   (gnus-score-change-score-file my-score-file)).
The actions above would be done via some hooks, of course.

That should always set the score file to the innermost file, since the
innermost file is loaded last.  (Or do I mean the outermost file?  The
score file with the longest name, anyway.)

BTW, #2 above could be replaced with something like
	(eval (setq my-score-file current-score-file))
in every score file, and some hook to autoinsert that in newly created
score files -- maybe find-file-hooks or a score-mode-hook.

-- 
Hallvard


  reply	other threads:[~1998-07-15 14:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-07-08 14:12 Hallvard B Furuseth
1998-07-12  2:03 ` Lars Magne Ingebrigtsen
1998-07-13 21:17   ` Hallvard B Furuseth
1998-07-15  7:40     ` Lars Magne Ingebrigtsen
1998-07-15 14:53       ` Hallvard B Furuseth [this message]
1998-07-18 19:42         ` Lars Magne Ingebrigtsen

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=HBF.980715m4iy@bombur2.uio.no \
    --to=h.b.furuseth@usit.uio.no \
    /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).