jeremy-compostella / org-msg

OrgMsg is a GNU/Emacs global minor mode mixing up Org mode and Message mode to compose and reply to emails in a Outlook HTML friendly style.
GNU General Public License v3.0
276 stars 56 forks source link

Correct the type for `org-msg-default-alternatives` #173

Closed mzhu-zx closed 6 months ago

mzhu-zx commented 10 months ago

In Emacs 29.1, using setopt macro leads to a warning that org-msg-default-alternatives is of the wrong type.

The correct type for the assoc-list should be

(alist :key-type symbol :value-type (repeat symbol))

which can be validated by the fact that the following snippet returns t

(widget-apply
 (widget-convert '(choice (list symbol)
                  (alist :key-type symbol :value-type (repeat symbol))))
 :match
 '((new . (html))
   (reply-to-html . (html))))