"Buttons" in a message buffer that evaluate to plain text?
Tim Landscheidt <[email protected]>
| Newsgroups | gmane.emacs.help |
|---|---|
| Organization | https://www.tim-landscheidt.de/ |
| Message-ID | <[email protected]> |
Hi, in the German UseNet, Call for Votes (CfV) are posted to be replied to by mail. They have the "syntax": | 1. CfV (Abstimmungsaufruf) | ========================== | zur Löschung von de.comm.infosystems.(suchmaschinen|misc) | ========================================================= | und Änderung der Kurzbeschreibung von de.comm.internet.misc | =========================================================== | […] | =-=-=-=-=-=-=-=- Alles vor dieser Zeile bitte loeschen =-=-=-=-=-=-=-=- | WAHLSCHEIN fuer de.comm.infosystems.(suchmaschinen|misc) (Loeschung) | […] | Nr [Deine Stimme] Gruppe/Abstimmungsgegenstand | ======================================================================== | #1 [ ] Loeschung von de.comm.infosystems.suchmaschinen | Der folgende Abstimmungsunkt wird nur ausgewertet, wenn die Loeschung | von de.comm.infosystems.suchmaschinen angenommen wird: | #2 [ ] Loeschung von de.comm.infosystems.misc | Zur Verarbeitung des Wahlscheines […] | #a [ ] Datenschutzklausel - Zustimmung: Ich bin mit der | Verarbeitung meiner Daten wie oben beschrieben | einverstanden | =-=-=-=-=-=-=-=- Alles nach dieser Zeile bitte loeschen =-=-=-=-=-=-=-=- | -- | Fertige Artikel für de.admin.news.announce, Einsprüche und sonstige | Mail an die Moderation bitte an <[email protected]>. […] In each of the "[]"-bracketed fields, either "JA" (yes), "NEIN" (no) or "ENTHALTUNG"/"ANNULLIERUNG" (abstain/annul) can be entered. It would be nice (and probably useful in other cases, whether mail-related or just text files, as well), when setting up the message-mode buffer for a reply to a CfV, to replace those brackets with some "buttons" that let one cycle through the available options that get replaced with their plain text values when the reply is sent (or in the general case the buffer is saved). With Emacs 30.2, what is the best practice to achieve that plain text ↔ "buttons" conversion? Is there an existing ELPA package that does something similar? TIA, Tim