Subject: bug#37470: 26.3; [PATCH] Default value and type of message-make-forward-subject-function

From: Damien Cassou <[email-masked]>
Date: Fri, 20 Sep 2019 12:22:21 +0200

Hi Robert,

Robert Pluim <[email-masked]> writes:
>>>>>> On Fri, 20 Sep 2019 11:08:42 +0200, Damien Cassou <[email-masked]> said:
>
>     Damien> Please find attached a patch fixing the default value and type of
>     Damien> message-make-forward-subject-function.
>     Damien> +  :type '(repeat :tag "List of functions"
>     Damien> +                 (radio (function-item message-forward-subject-author-subject)
>     Damien> +                        (function-item message-forward-subject-fwd)
>     Damien> +                        (function-item message-forward-subject-name-subject)
>     Damien> +                        (function))))
>
> I donʼt see how this could work: 'radio allows selecting only one from
> the list.

but the 'radio is embedded within a 'repeat which seems to be exactly
what I want.

> How about something like this:
> +  :type '(set :tag "List of functions"
> +              (function-item message-forward-subject-author-subject)
> +              (function-item message-forward-subject-fwd)
> +              (function-item message-forward-subject-name-subject)
> +              (repeat :tag "User functions" :inline t (function :tag "Function"))))

this doesn't work because order of functions has a meaning (e.g., adding
"Fwd:" before the author or after the author).

-- 
Damien Cassou
http://damiencassou.seasidehosting.st

"Success is the ability to go from one failure to another without
losing enthusiasm." --Winston Churchill