Re: Getting Keywords: from parent article in message-setup-hook when following up

2023-07-05 Thread Eric Abrahamsen
Adam Sjøgren  writes:

> Eric writes:
>
>> When you think about it, updating a global variable is all the Gnus code
>> is doing! But better to rely on someone else's ugly hack, I suppose...
>
> Haha, yes, and if you take a couple of more steps back, all computing
> is manipulation of global memory ;-)
>
> But I think not having one hook storing the information and another
> one using it will be a little less ugly, so thanks for the hint - the
> naming of these variables is often not obvious to me.

Ugh, don't get me started. What's the difference between
gnus-current-article and gnus-article-current? No one will ever know.




Re: Getting Keywords: from parent article in message-setup-hook when following up

2023-07-05 Thread Adam Sjøgren
Eric writes:

> When you think about it, updating a global variable is all the Gnus code
> is doing! But better to rely on someone else's ugly hack, I suppose...

Haha, yes, and if you take a couple of more steps back, all computing
is manipulation of global memory ;-)

But I think not having one hook storing the information and another
one using it will be a little less ugly, so thanks for the hint - the
naming of these variables is often not obvious to me.


  Best regards,

Adam

-- 
 " - the devils neighbour"  Adam Sjøgren
   a...@koldfront.dk




Re: Getting Keywords: from parent article in message-setup-hook when following up

2023-07-03 Thread Eric Abrahamsen
Adam Sjøgren  writes:

> Eric writes:
>
>> I think the "big" solution is to visit `message-reply-buffer', if that's
>> a live buffer, and parse its contents.
>
> That sounds better than the ugly hack I have now, where I update a
> global variable from gnus-article-prepare-hook and use it in
> message-setup-hook - eeek.

When you think about it, updating a global variable is all the Gnus code
is doing! But better to rely on someone else's ugly hack, I suppose...




Re: Getting Keywords: from parent article in message-setup-hook when following up

2023-07-03 Thread Adam Sjøgren
Eric writes:

> I think the "big" solution is to visit `message-reply-buffer', if that's
> a live buffer, and parse its contents.

That sounds better than the ugly hack I have now, where I update a
global variable from gnus-article-prepare-hook and use it in
message-setup-hook - eeek.


  Thanks!

   Adam

-- 
 'As usual, Bob Dylan said it best when he wrote in Adam Sjøgren
  1965, "He not busy being born, is busy dying."'  a...@koldfront.dk




Re: Getting Keywords: from parent article in message-setup-hook when following up

2023-07-03 Thread Eric Abrahamsen
Adam Sjøgren  writes:

> How do I get hold of the parent articles' Keywords: in
> message-setup-hook when I do a follow up?
>
> I can get eg From: by lookin in message-reply-headers - but Keywords:
> are not in there.
>
> Is there a trick I can use?

I think the "big" solution is to visit `message-reply-buffer', if that's
a live buffer, and parse its contents.




Getting Keywords: from parent article in message-setup-hook when following up

2023-07-03 Thread Adam Sjøgren
How do I get hold of the parent articles' Keywords: in
message-setup-hook when I do a follow up?

I can get eg From: by lookin in message-reply-headers - but Keywords:
are not in there.

Is there a trick I can use?


  Best regards,

Adam

-- 
 "The laws of perspective have been repealed!   Adam Sjøgren
  Objects no longer diminish in size with distance!"   a...@koldfront.dk