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

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 h

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 > messa

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!

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-

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!