Re: How to create/add-to-existing headers in a posting style?

2012-07-19 Thread Tassilo Horn
a...@koldfront.dk (Adam Sjøgren) writes: Note that I am using Group Parameters on the group in question rather than setting the gnus-parameters variable. Shouldn't make a difference. After factorying out the lambda to a named function I did toggle-debug-on-error and got this backtrace: Hm,

Re: How to create/add-to-existing headers in a posting style?

2012-07-19 Thread Adam Sjøgren
On Thu, 19 Jul 2012 10:44:07 +0200, Tassilo wrote: Hm, I can't reproduce the error. But now I know that this approach won't work anyway. :-( The reason is that the new value of message-mode-hook is buffer-local to the specific summary buffer of the group you've specified the parameters

Re: How to create/add-to-existing headers in a posting style?

2012-07-18 Thread Tassilo Horn
a...@koldfront.dk (Adam Sjøgren) writes: An existing variable in group parameters will be automagically be made local in the corresponding summary buffer. Hm, I can't make it work, though; I get this error in *Messages*: let: Symbol's value as variable is void: bbdb-insinuate-message Hm,

Re: How to create/add-to-existing headers in a posting style?

2012-07-18 Thread Adam Sjøgren
On Wed, 18 Jul 2012 12:54:32 +0200, Tassilo wrote: a...@koldfront.dk (Adam Sjøgren) writes: An existing variable in group parameters will be automagically be made local in the corresponding summary buffer. Hm, I can't make it work, though; I get this error in *Messages*: let: Symbol's

Re: How to create/add-to-existing headers in a posting style?

2012-07-17 Thread Tassilo Horn
a...@koldfront.dk (Adam Sjøgren) writes: Another approach was to use gnus-parameters to add your append-hugo-in-cc function to message-header-hook (or message-header-setup-hook?) locally for this group. How do I add it locally? Ah, add-hook has a LOCAL parameter. Hm. Let's see if I can

Re: How to create/add-to-existing headers in a posting style?

2012-07-17 Thread Tassilo Horn
Tassilo Horn tass...@member.fsf.org writes: I think, there's no way to do it that way. ^^^ Of course, that should have been there's no *need* to do it that way. Bye, Tassilo ___ info-gnus-english mailing list

Re: How to create/add-to-existing headers in a posting style?

2012-07-17 Thread Adam Sjøgren
On Tue, 17 Jul 2012 08:38:19 +0200, Tassilo wrote: An existing variable in group parameters will be automagically be made local in the corresponding summary buffer. Hm, I can't make it work, though; I get this error in *Messages*: let: Symbol's value as variable is void:

Re: How to create/add-to-existing headers in a posting style?

2012-07-16 Thread Adam Sjøgren
On Sun, 15 Jul 2012 21:40:44 +0200, Tassilo wrote: Another approach was to use gnus-parameters to add your append-hugo-in-cc function to message-header-hook (or message-header-setup-hook?) locally for this group. How do I add it locally? Ah, add-hook has a LOCAL parameter. Hm. Let's see if I

Re: How to create/add-to-existing headers in a posting style?

2012-07-16 Thread Peter Münster
On Mon, Jul 16 2012, Adam Sjøgren wrote: the only problem with this is, that it leaves an empty header X-Add-To-Cc in the buffer, What about (message-remove-header X-Add-To-Cc) ? -- Peter ___ info-gnus-english mailing list

Re: How to create/add-to-existing headers in a posting style?

2012-07-16 Thread Adam Sjøgren
On Mon, 16 Jul 2012 11:59:37 +0200, Peter wrote: On Mon, Jul 16 2012, Adam Sjøgren wrote: the only problem with this is, that it leaves an empty header X-Add-To-Cc in the buffer, What about (message-remove-header X-Add-To-Cc) ? Where should I stick that? Ah. In the end of the function I

Re: How to create/add-to-existing headers in a posting style?

2012-07-15 Thread Tassilo Horn
a...@koldfront.dk (Adam Sjøgren) writes: Hi Adam, I have a group parameter set on a group where I set cc to something. This overwrites any Cc that is added by a wide reply in that group, which isn't quite what I want. Is there a way to have the posting style add to the Cc-list if a

Re: How to create/add-to-existing headers in a posting style?

2012-07-15 Thread Tassilo Horn
a...@koldfront.dk (Adam Sjøgren) writes: So it seems you can have an posting style entry like that (Cc (save-excursion (message-goto-cc) (concat theboss@company.invalid (buffer-substring-no-properties (point) (line-end-position)))

How to create/add-to-existing headers in a posting style?

2012-07-14 Thread Adam Sjøgren
I have a group parameter set on a group where I set cc to something. This overwrites any Cc that is added by a wide reply in that group, which isn't quite what I want. Is there a way to have the posting style add to the Cc-list if a Cc-header already exists, and otherwise create it? Best