From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.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 QAliE1rDl2NxkgAAbAwnHQ (envelope-from ) for ; Tue, 13 Dec 2022 01:12:10 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gM52ElrDl2MMEQEAG6o9tA (envelope-from ) for ; Tue, 13 Dec 2022 01:12:10 +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 F00452066F for ; Tue, 13 Dec 2022 01:12:09 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p4stB-0007Nz-4S; Mon, 12 Dec 2022 19:11:17 -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 1p4st7-0007Ng-OD for emacs-orgmode@gnu.org; Mon, 12 Dec 2022 19:11:13 -0500 Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1p4st5-00032N-TI for emacs-orgmode@gnu.org; Mon, 12 Dec 2022 19:11:13 -0500 Received: by mail-lf1-x134.google.com with SMTP id b13so2294446lfo.3 for ; Mon, 12 Dec 2022 16:11:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=ucHad6Qs3DOaA019RejPuMuXT1GnHZm6OU72L72jxJU=; b=p70bDeC4s2jqpv8wXH5HU66plPt0IX4bs0duNiUPCaOuZn2BQODdPpAng4X50EbWHU +RpFhk8J2dgsi/rkknX7wvKo5YsQDS5KzInpLG/kGxq7nuHo7i1dv2b9CaC0n8AH4/D8 hyNMx5JDF3Z5AdK+UfIepZ+ENqm90nkhITdiXzGYJENhQOdQ9u3tEYrlHcByKvx6lJ9d 38jp9YpSxDkoVCHOMLNTDqI1AZJmdtAj8VLTL6LUg1g5POstlvLuvgmESnV4c1MRgwig jQjqkq2Xju42WfeZAyO9281df3xop3FRbMc08UwzXfYgUh3NNJieL+GsCtATd1qrQiI0 m9yg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:references:in-reply-to :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=ucHad6Qs3DOaA019RejPuMuXT1GnHZm6OU72L72jxJU=; b=Hrcx5qdeELpN5SigwQtIKZupl5FHZscdjCUgogfsHs3Jir9Xif1gEtnNQ8MAJLl0uT hyD+M/x8Zn11XRA7vfBtO0e0YyRgdGBo/dxlFeGggfJMI8T+RflHTJki1l91pvH+vF5J evGGHu6H7zNgTyNYhTygf42VisjOwe4QKpH7hR+Jx9lx08g/RBDw5J6GBCqGquW5Xx22 fl46Xe/4fnQ9wwh4YHNV8RnYeiCrEEciHD5xtntrKuUJgwf4qRKzxTVp5hQrDRzkQN28 BGA30grKkANse02ifYudK5tLmrKyp4AQTkLj3UGT208qjDBLgFrUN/cTnOIwAuXD+oRC jFuA== X-Gm-Message-State: ANoB5pnf9z/DzBx/ocyo+ruzbUHDPbf+B3WxIPyjgJShMM5LE6o/32z7 o+gBMmUHvIUlfznNY9/3zK7cDqLEh6ZLQLzawhs= X-Google-Smtp-Source: AA0mqf6FSkwJUWYCAjjgvZs8N8J36xbN9e/nHm//aIKjTW0j7kjJx5rl7hJnChawzzpXzw4VETWGcLXUTy/l5yoxShM= X-Received: by 2002:ac2:4bd1:0:b0:4a2:4dc3:a2e with SMTP id o17-20020ac24bd1000000b004a24dc30a2emr27562675lfq.403.1670890269287; Mon, 12 Dec 2022 16:11:09 -0800 (PST) MIME-Version: 1.0 Received: by 2002:a9a:7145:0:b0:22e:c163:faca with HTTP; Mon, 12 Dec 2022 16:11:07 -0800 (PST) In-Reply-To: References: From: Samuel Wales Date: Mon, 12 Dec 2022 17:11:07 -0700 Message-ID: Subject: Re: Switching over from package org-radiobutton to native support To: Terje Larsen Cc: emacs-orgmode@gnu.org Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=samologist@gmail.com; helo=mail-lf1-x134.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, 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-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1670890330; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=ucHad6Qs3DOaA019RejPuMuXT1GnHZm6OU72L72jxJU=; b=P83GdU5ABwhYZ9ym+L53M6b93Qc+thQ+i91SvGAWYozyC+v1RzkU1opnOs2TDVfKhtrC0w vLJaavHe6SvTKvIxfeHtYvkBqbSv4D+Uueys9eAcA6IRYkVHerI1pEf6UOQzteY3PuVi2I ukDy/IxgFSWvMIHjUoMc1N/Km1XyxAnzhRBLiwqMT+PouTRfrfTrVINFRv8W4piDkcZbic kKY6WLnw2mAUKp8VBibjJv5PUmGAWPP247kXx7gdVmQeYLkuXemW0VlXXpFBkGPW3jUZw/ 2VG0hVUXB+xJln1zzhSTJpnw+DLFLV7r8poDf8c27MaJgQ/Aq4lfAKomwX0EEw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=p70bDeC4; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1670890330; a=rsa-sha256; cv=none; b=WgCxhVf3rWaXy4ChmKYgAGAg59VjL6zXaZ49u4lX4htMT8CNDfYpNd9Obokcm0VSTUuLed TLYqCvM40iUeWEwJ1f0MGf88N65grUwm10IhTC8MpNzfyf2qdp31uD/8Z79R+RmmLoOw/6 t5vND8+ssHZI6bcyajGQCqz+KdJAWbOY4NT5XQ8vngzy6AF+xEoMFi23pQLIB7NVdE8xt7 Ooion6wDqQw07ROkWzdbsBSKIK4IjK6RSCOTWKuEnEDbOTc0G6MlYZulC5naji8vDjkDnB F+8/IDdDegaLrWyjmos/Tb8SR+ZHkybGIHkk7jSlb7h2rqIIo1OtkCh/sSxpHg== X-Migadu-Spam-Score: -7.42 X-Spam-Score: -7.42 X-Migadu-Queue-Id: F00452066F X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20210112 header.b=p70bDeC4; 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"; dmarc=pass (policy=none) header.from=gmail.com X-TUID: LXfMuD/Ic8Gk not sure what you mean by return. org core code for a while now has included a minor mode for radio buttons. i think, however, #+ syntax and no mode is better if it means that you can do it per list or per sublist. that can also be used for other list features, such as ensuring bullet style cnsistency or so. On 11/26/22, Terje Larsen wrote: > 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 > -- The Kafka Pandemic A blog about science, health, human rights, and misopathy: https://thekafkapandemic.blogspot.com