From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id ANtmHR2hgmP1VAAAbAwnHQ (envelope-from ) for ; Sun, 27 Nov 2022 00:28:29 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8LllHR2hgmPouQAA9RJhRA (envelope-from ) for ; Sun, 27 Nov 2022 00:28:29 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 1741DAB57 for ; Sun, 27 Nov 2022 00:28:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oz4a6-0005qE-8Y; Sat, 26 Nov 2022 18:27:34 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oz4a4-0005np-82 for emacs-orgmode@gnu.org; Sat, 26 Nov 2022 18:27:32 -0500 Received: from mail-pj1-x1034.google.com ([2607:f8b0:4864:20::1034]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oz4a2-0005fP-5i for emacs-orgmode@gnu.org; Sat, 26 Nov 2022 18:27:31 -0500 Received: by mail-pj1-x1034.google.com with SMTP id hd14-20020a17090b458e00b0021909875bccso3784300pjb.1 for ; Sat, 26 Nov 2022 15:27:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=A/GOnCEmBjGOUEXiQihdUoQRxm9CZY1GzDGX2hyGXFw=; b=doziMYeT2Tb6j8844TjcZLaM/qe5EaeREmPuuDQSU9Dh3mBLwlwp6W/GLnNxo2MMaC Y4did8EaBzKwyR+vwqwJ8C1RrUK528Az0yj9Pb8hmvwX4KD1YWIhz1jgU0RZe2HloWFY vZEaacPdsLFugvovUN0yeHUeA03AA3xXRmVnaw8U1ow9aSc7Clll39QKnWfPoFvykRLH LUC1Iwx83A3NLcd8xS9VMAMawKFvgRgz0/FyMLRp1CN//P0JSFFk8hCte91ZFnElqjaJ PCBSvShU8OQryAOaqromr6ff5BOauvgn9tcCyXlE6jMQ5nnN4ybEd8Bv5AYj9c+k6g4p Tu8w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=A/GOnCEmBjGOUEXiQihdUoQRxm9CZY1GzDGX2hyGXFw=; b=VQmxO6nd+M+l2PzTIWpwBcc6yCUyFpRDglfGZHHXvswUEKKRzMn0bNSu4BRqjvMnng eFnnASTxt1qtKNzH9q8uGD6hsKZS6TScSv2Rs9NG5pcUkdlWVF+8kZb2TOaikxPzpQz7 uLVOLtl9JkalhaZaYUg0lXWj2nJDhgiG41y8DlKRklS2Y0cWEpg6uPm5K+7cW+I2D6nQ ATAhX/4QHwv4kRLtqtM8H0nOX1WAZg1t41AFRcRpY0PAFpZiiupunDGO8GgMrbT2dhwF ggkzEWOnpdlIz/MYVotS1WhxmIG9liGlUELsJNinDtsW9oX0C8IDPxFYsXG0/oNpL8sH P5WA== X-Gm-Message-State: ANoB5pnzdwhdHiZGu8arhl0j1QqkLJj2L1ORb6VXR1l0xhFpQZrjyfCa Ip2CrJaP4gwQGiR4NUZsjb8/fFIQYLndLH5Rx+Hw0D9q8wE= X-Google-Smtp-Source: AA0mqf7OSbELRz++mAB9SxRo6ypyeGgqYM5E2sCRGU6qYDjTkuh5IKK8deSs2vWRH1oOPzeH+SD34UH4GqWNVHeabSA= X-Received: by 2002:a17:90b:4387:b0:213:625e:896b with SMTP id in7-20020a17090b438700b00213625e896bmr46102516pjb.175.1669505247730; Sat, 26 Nov 2022 15:27:27 -0800 (PST) MIME-Version: 1.0 From: Terje Larsen Date: Sun, 27 Nov 2022 00:27:18 +0100 Message-ID: Subject: Switching over from package org-radiobutton to native support To: emacs-orgmode@gnu.org Content-Type: multipart/alternative; boundary="0000000000003de2a805ee67fbc0" Received-SPF: pass client-ip=2607:f8b0:4864:20::1034; envelope-from=terlar@gmail.com; helo=mail-pj1-x1034.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669505309; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=A/GOnCEmBjGOUEXiQihdUoQRxm9CZY1GzDGX2hyGXFw=; b=aPSU3wZDnhL8MFqZ1bPVYX0lRnlqMIdHk7hqOY8flZAIbT2jqmA3d7zd9ec/UZamIZzmFe WqLYobL6n26dHntLNUbpLhg8/z/0nCFOOvOCPA3iwiOKVIqyW3UR8OCkhTGgkKN1MF+FPA DGZBhkxvroFEn6ct0ZpwkmjbLBZYzbxIJHa27qUTPTGO/nD7qzCWa/KkyNeZ18LKOc7eIy qaft9gaIXpwpb3tByY7397zx62JVTqs+emvbLdeHI5XDaXPO0lJNHpPhKr85bdzG+bVaLE oPITXGbkNI0WLNKz3gKwCAKZlaK99S/BYcZzSZKpOu+MLBq7Hv7khue55Hu9eg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669505309; a=rsa-sha256; cv=none; b=A5DviN9u1v+7foiBZenAWmR3j6iaoayE9pQ7a38ewlI16OtwIdM0OfMwgZAPSpqADCR8Hl aETwlgELPVCzQrOw7zDBy+2lA5wTxI+C+ndoWvE/9iXweSorgTXRgRgpyWoUmqVFRycHtZ GZaqAmA8q+OGFNb62Oc7r09mS4NzU42X3LSOPzxPGbHGtYx5pENBsL3ViVYyRFDK+Fe10o pTwhM8NzlYK3t/efeUw0lDdMHurU5h91QxiHJ7ui8onbo41JoYtnKDhsurJO/J1MviDRgH 552xPCOFeXcpfNcklMbhzKqwm5La5LPCWxSusRqVGwAhcT8fQ3/3sy/68vvuQg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=doziMYeT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.97 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=doziMYeT; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 1741DAB57 X-Spam-Score: -3.97 X-Migadu-Scanner: scn1.migadu.com X-TUID: IHwsi3FpAWZb --0000000000003de2a805ee67fbc0 Content-Type: text/plain; charset="UTF-8" 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 --0000000000003de2a805ee67fbc0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
So I found out that there is now native support for r= adio-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`:

That will retu= rn the value of the currently selected checkbox by the attached name.

So for example:
#+ATTR_ORG: :radio t
#+NA= ME: named_radio_value
- [ ] Value A
- [X] Value B
- [ ] Value C

Woul= d return `Value B` for `named_radio_value`. This is useful when creating in= terfaces in Org Mode and acting on those.

I know i= t is possible via a mouthful of lisp. But it would be nice if it was native= ly 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 implement= ed, but I missed it?

Best regards,
T= erje Larsen

--0000000000003de2a805ee67fbc0--