Gnus development mailing list
 help / color / mirror / Atom feed
* Making group parameters visible to the article buffer too
@ 1998-10-11 17:22 Matt Simmons
  1998-10-11 17:34 ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Matt Simmons @ 1998-10-11 17:22 UTC (permalink / raw)


Awhile back[1], there was a discussion about the inaccessibility of
group parameters in Article buffers, specifically for use by washing
functions.  Could they be made accessible in the Article buffer?
Barring that, how can I find out the name of the current group in a
function called by gnus-article-display-hook?

Matt

Footnotes: 
[1]  nnir is cool. =)

-- 
     Matt Simmons  -  simmonmt@acm.org  -  http://www.netcom.com/~simmonmt
	May the forces of evil become confused on the way to your house.
				-- George Carlin


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

* Re: Making group parameters visible to the article buffer too
  1998-10-11 17:22 Making group parameters visible to the article buffer too Matt Simmons
@ 1998-10-11 17:34 ` Lars Magne Ingebrigtsen
  1998-10-11 19:57   ` Matt Simmons
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-10-11 17:34 UTC (permalink / raw)


Matt Simmons <simmonmt@acm.org> writes:

> Barring that, how can I find out the name of the current group in a
> function called by gnus-article-display-hook?

`gnus-newsgroup-name'.

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


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

* Re: Making group parameters visible to the article buffer too
  1998-10-11 17:34 ` Lars Magne Ingebrigtsen
@ 1998-10-11 19:57   ` Matt Simmons
  1998-10-11 21:16     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Matt Simmons @ 1998-10-11 19:57 UTC (permalink / raw)


>>>>> "Lars" == Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

    Matt> Barring that, how can I find out the name of the current group in a
    Matt> function called by gnus-article-display-hook?

    Lars> `gnus-newsgroup-name'.

Cool.  It would still be nice if I could get to the group parameters
from the article buffer.  Compare:

  (if (compare gnus-newsgroup-name with a list of newsgroup names)
      (remove egroups stuff))

with

  (if egroups-group   ;; egroups-group set in group parameters
      (remove egroups-stuff))

Matt

-- 
     Matt Simmons  -  simmonmt@acm.org  -  http://www.netcom.com/~simmonmt
Sticks and stones may break my bones, but a hollow-point .38 slug could take out
			my entire liver.  --Lev L. Spiro


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

* Re: Making group parameters visible to the article buffer too
  1998-10-11 19:57   ` Matt Simmons
@ 1998-10-11 21:16     ` Lars Magne Ingebrigtsen
  1998-10-11 22:20       ` Kai Grossjohann
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-10-11 21:16 UTC (permalink / raw)


Matt Simmons <simmonmt@acm.org> writes:

> Cool.  It would still be nice if I could get to the group parameters
> from the article buffer.  Compare:

Yes, but cloning the local variables from the summary buffer into the
article buffer...  I don't know.  Those kinds of things usually have
repercussions.

gnus-summary-buffer is buffer-local to the article buffers, so you can
always do

(save-excursion
  (set-buffer gnus-summary-buffer)
  ;; do that thang)

from the article buffer.

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


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

* Re: Making group parameters visible to the article buffer too
  1998-10-11 21:16     ` Lars Magne Ingebrigtsen
@ 1998-10-11 22:20       ` Kai Grossjohann
  1998-10-11 22:43         ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Kai Grossjohann @ 1998-10-11 22:20 UTC (permalink / raw)


>>>>> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

  > Yes, but cloning the local variables from the summary buffer into
  > the article buffer...  I don't know.  Those kinds of things
  > usually have repercussions.

Aren't you doing that already?  For some variables?

kai
-- 
OOP: object oriented programming;  OOPS: object oriented mistakes


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

* Re: Making group parameters visible to the article buffer too
  1998-10-11 22:20       ` Kai Grossjohann
@ 1998-10-11 22:43         ` Lars Magne Ingebrigtsen
  1998-10-12 11:33           ` Kai Grossjohann
  1998-10-12 15:29           ` Wes Hardaker
  0 siblings, 2 replies; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-10-11 22:43 UTC (permalink / raw)


Kai Grossjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> writes:

>   > Yes, but cloning the local variables from the summary buffer into
>   > the article buffer...  I don't know.  Those kinds of things
>   > usually have repercussions.
> 
> Aren't you doing that already?  For some variables?

Well, I do copy some local variables over into global variables
(whenever you do a command in the summary buffer, basically), but
we're talking 4-5 variables, not a wholesale clone of the local vars. 

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


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

* Re: Making group parameters visible to the article buffer too
  1998-10-11 22:43         ` Lars Magne Ingebrigtsen
@ 1998-10-12 11:33           ` Kai Grossjohann
  1998-10-13  4:53             ` Matt Simmons
  1998-10-12 15:29           ` Wes Hardaker
  1 sibling, 1 reply; 12+ messages in thread
From: Kai Grossjohann @ 1998-10-12 11:33 UTC (permalink / raw)


Well, you've told Matt how he can do his stuff, so I guess when he's
happy... 
kai
-- 
OOP: object oriented programming;  OOPS: object oriented mistakes


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

* Re: Making group parameters visible to the article buffer too
  1998-10-11 22:43         ` Lars Magne Ingebrigtsen
  1998-10-12 11:33           ` Kai Grossjohann
@ 1998-10-12 15:29           ` Wes Hardaker
  1998-10-12 16:52             ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 12+ messages in thread
From: Wes Hardaker @ 1998-10-12 15:29 UTC (permalink / raw)


>>>>> On 12 Oct 1998 00:43:28 +0200, Lars Magne Ingebrigtsen <larsi@gnus.org> said:

Lars> Well, I do copy some local variables over into global variables
Lars> (whenever you do a command in the summary buffer, basically),
Lars> but we're talking 4-5 variables, not a wholesale clone of the
Lars> local vars.

Lars, the issue is much larger than that though...

1) the group parameters should only set a few? variables in the
   article buffer?  IE, shouldn't the number of new variables in the
   article buffer be an exact match of those in the group params?

2) This would fix a lot of other problems with articles in general
   which are merely "annoying".  For instance, I've always wanted
   gnus-break-pages to be set inside of alt.fan.warlord, but in
   nowhere else.  (I made this request back in the red-gnus time frame, 
   but was shot down, flamed, destroyed, denied, ...  ehh hem...)

Anyway, this is a feature quite a few people have asked about for some 
time...

Plus, wouldn't this help things like signature choosing?  IE,
message-signature-file could be set in the group parameters?  (right
now, I have to set message-signature to my own function which does a
regex match on the group name to determine what I want?  Ick).

In short, group parameters could be *so* much more powerful if allowed 
to affect articles and replies? read/composed underneath it?

-- 
"Ninjas aren't dangerous.  They're more afraid of you than you are of them."


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

* Re: Making group parameters visible to the article buffer too
  1998-10-12 15:29           ` Wes Hardaker
@ 1998-10-12 16:52             ` Lars Magne Ingebrigtsen
  1998-10-12 22:57               ` Wes Hardaker
  0 siblings, 1 reply; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-10-12 16:52 UTC (permalink / raw)


Wes Hardaker <wjhardaker@ucdavis.edu> writes:

> 1) the group parameters should only set a few? variables in the
>    article buffer?  IE, shouldn't the number of new variables in the
>    article buffer be an exact match of those in the group params?

Of course; that's the logical solution.  Fix in Pterodactyl Gnus v0.35.

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


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

* Re: Making group parameters visible to the article buffer too
  1998-10-12 16:52             ` Lars Magne Ingebrigtsen
@ 1998-10-12 22:57               ` Wes Hardaker
  0 siblings, 0 replies; 12+ messages in thread
From: Wes Hardaker @ 1998-10-12 22:57 UTC (permalink / raw)


>>>>> On 12 Oct 1998 18:52:39 +0200, Lars Magne Ingebrigtsen <larsi@gnus.org> said:

>> 1) the group parameters should only set a few? variables in the
>> article buffer?  IE, shouldn't the number of new variables in the
>> article buffer be an exact match of those in the group params?

Lars> Of course; that's the logical solution.  Fix in Pterodactyl Gnus v0.35.

Yay!  *jump with joy*

-- 
"Ninjas aren't dangerous.  They're more afraid of you than you are of them."


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

* Re: Making group parameters visible to the article buffer too
  1998-10-12 11:33           ` Kai Grossjohann
@ 1998-10-13  4:53             ` Matt Simmons
  1998-10-17 19:36               ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 12+ messages in thread
From: Matt Simmons @ 1998-10-13  4:53 UTC (permalink / raw)


>>>>> "Kai" == Kai Grossjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> writes:

    Kai> Well, you've told Matt how he can do his stuff, so I guess
    Kai> when he's happy...

He's not distraught, which he was before, but he's not happy, because
now he has to implement something parallel to the Group Parameters so
he can figure out which groups to turn on the egroups snarfing for.
He is, perhaps, mildly content.  He's also read something somewhere
saying that one of the indicators of various psychoses is the tendency 
to refer to oneself in the third person, but he doesn't think it means 
anything.

How about an accessor function?  Something like

      (gnus-article-get-group-local-variable 'egroups-group)

I'd code it up & mail it in, but I don't have, and can't get, the
paperwork.

Matt

-- 
     Matt Simmons  -  simmonmt@acm.org  -  http://www.netcom.com/~simmonmt
     Politicians and diapers have one thing in common.  They should both be
		   changed regularly and for the same reason.


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

* Re: Making group parameters visible to the article buffer too
  1998-10-13  4:53             ` Matt Simmons
@ 1998-10-17 19:36               ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 12+ messages in thread
From: Lars Magne Ingebrigtsen @ 1998-10-17 19:36 UTC (permalink / raw)


Matt Simmons <simmonmt@acm.org> writes:

>     Kai> Well, you've told Matt how he can do his stuff, so I guess
>     Kai> when he's happy...
> 
> He's not distraught, which he was before, but he's not happy,

Then he should be happy with 0.35, since it sets the group params in
the article buffer as well.

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


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

end of thread, other threads:[~1998-10-17 19:36 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-10-11 17:22 Making group parameters visible to the article buffer too Matt Simmons
1998-10-11 17:34 ` Lars Magne Ingebrigtsen
1998-10-11 19:57   ` Matt Simmons
1998-10-11 21:16     ` Lars Magne Ingebrigtsen
1998-10-11 22:20       ` Kai Grossjohann
1998-10-11 22:43         ` Lars Magne Ingebrigtsen
1998-10-12 11:33           ` Kai Grossjohann
1998-10-13  4:53             ` Matt Simmons
1998-10-17 19:36               ` Lars Magne Ingebrigtsen
1998-10-12 15:29           ` Wes Hardaker
1998-10-12 16:52             ` Lars Magne Ingebrigtsen
1998-10-12 22:57               ` Wes Hardaker

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