all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Switching over from package org-radiobutton to native support
@ 2022-11-26 23:27 Terje Larsen
  2022-12-12 14:17 ` Ihor Radchenko
  2022-12-13  0:11 ` Samuel Wales
  0 siblings, 2 replies; 3+ messages in thread
From: Terje Larsen @ 2022-11-26 23:27 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 926 bytes --]

So I found out that there is now native support for radio-button style
selects and I have tested it and it seems to work well.

However I am missing a function similar to `org-radiobutton-value`:
https://github.com/Fuco1/org-radiobutton/blob/master/org-radiobutton.el#L111-L121

That will return the value of the currently selected checkbox by the
attached name.

So for example:

#+ATTR_ORG: :radio t
#+NAME: named_radio_value
- [ ] Value A
- [X] Value B
- [ ] Value C

Would return `Value B` for `named_radio_value`. This is useful when
creating interfaces in Org Mode and acting on those.

I know it is possible via a mouthful of lisp. But it would be nice if it
was natively supported. It would also be nice if this also worked for
normal lists, e.g. having the possibility to easily extract all selected
values.

What do you think? Is something like this already implemented, but I missed
it?

Best regards,
Terje Larsen

[-- Attachment #2: Type: text/html, Size: 1692 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-13  0:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-26 23:27 Switching over from package org-radiobutton to native support Terje Larsen
2022-12-12 14:17 ` Ihor Radchenko
2022-12-13  0:11 ` Samuel Wales

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.