Gnus development mailing list
 help / color / mirror / Atom feed
* Why `set-buffer summary' before `gnus-score-load-file'
@ 2002-09-20 10:52 Micha Wiedenmann
  2002-12-29 16:44 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Micha Wiedenmann @ 2002-09-20 10:52 UTC (permalink / raw)


Hi,

I want to use gnus-score-functions everywhere (eg in the *Group*
Buffer). Thus it not necessarily exists a summary-buffer. But in
`gnus-score.el' I often find code with (set-buffer gnus-summary-buffer)
in front of a score function. 

| (set-buffer gnus-summary-buffer)
| (gnus-score-load-file ...

| (set-buffer gnus-summary-buffer)
| (gnus-summary-score-entry

Why is this important, is it important?  What should I do if there is no
summary-buffer?

TIA, Micha
-- 
Any man who is under 30, and is not a liberal, has not heart; and
any man who is over 30, and is not a conservative, has no brains.
                             -- Sir Winston Churchill (1874-1965)



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

* Re: Why `set-buffer summary' before `gnus-score-load-file'
  2002-09-20 10:52 Why `set-buffer summary' before `gnus-score-load-file' Micha Wiedenmann
@ 2002-12-29 16:44 ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 2+ messages in thread
From: Lars Magne Ingebrigtsen @ 2002-12-29 16:44 UTC (permalink / raw)


Micha Wiedenmann <mw-u1@gmx.de> writes:

> I want to use gnus-score-functions everywhere (eg in the *Group*
> Buffer). Thus it not necessarily exists a summary-buffer. But in
> `gnus-score.el' I often find code with (set-buffer gnus-summary-buffer)
> in front of a score function. 
>
> | (set-buffer gnus-summary-buffer)
> | (gnus-score-load-file ...
>
> | (set-buffer gnus-summary-buffer)
> | (gnus-summary-score-entry
>
> Why is this important, is it important?

Many of the scoring functions do their work in other buffers, but
need to access variables that are buffer-local to the summary buffer. 

> What should I do if there is no summary-buffer?

Then it probably won't work.

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



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

end of thread, other threads:[~2002-12-29 16:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-20 10:52 Why `set-buffer summary' before `gnus-score-load-file' Micha Wiedenmann
2002-12-29 16:44 ` Lars Magne Ingebrigtsen

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).