From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id ECPKFuf2DmZ9EQEAqHPOHw:P1 (envelope-from ) for ; Thu, 04 Apr 2024 20:52:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id ECPKFuf2DmZ9EQEAqHPOHw (envelope-from ) for ; Thu, 04 Apr 2024 20:52:23 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=lYUW8eBB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1712256743; a=rsa-sha256; cv=none; b=q2hS/WViSnaWsJSbplQO7q0S2ciupKex9jAAjXlLLoXCqZhwGTJgCSAeVChsKmsP2KMiFk PtiQ9NSozZWvgn7bfh6vExaD9iLnNtMQa3gvpAuzLh311EpH2tPka9gsaLI/XeMROq5Sot iKS1H+E6h7y0K86heJ1j8bMuu1TPf0EKyvNW9lWfdA5weHmcbViYaiPl3BhPop0Mg4ASDe Ly4psradjt1pbNnaOt9DRd5fvQK5EF8C3QFyevfucUgyJGG3Z0lCG0hckLT2u12r1/QZat JsNozGe8oOkrPai/WOWuLWf9unSMZzALhbUobo4AVhQMpinkUs1+fs4YCORk1Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20230601 header.b=lYUW8eBB; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1712256743; 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=zHPvB3aK4eBSnbkkcwmeh9CckAaMoEv7zBOw5tzp108=; b=owmOII8EoW163qwYLqCyJrUnQg6Qb7syIQCLW3eSHafZQ9SNxS30OCU/9lYePXKH7fQGPw 3UKJDDKOIOsKZjqo+PZFLZANG06DMcpsQfELJXyUgF0qQd+fhNYZgxOdSJMBpAt9YSByxp vEFsLW4H2ba3q/MpRYp1SHVgH/U2+YnWaD+f5ZaLcuz/5VXmYON1QhOBZoHTMdgVvRxURZ wPz9da0I+nqD+TGGLmFG4+as+WcNIBplpEIV55ngEYTD/qdAjH14VrJ5ApkHFW271YM2DH 9ONuPrvX4lbtln57gto7PQ6hc0woqHRFxOJ6wFG7y0+cPypcEV63/HgRW1QOag== 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 1196775270 for ; Thu, 4 Apr 2024 20:52:23 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rsRZr-0001Gm-KM; Thu, 04 Apr 2024 14:12:43 -0400 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 1rsRZp-0001F5-LF for emacs-orgmode@gnu.org; Thu, 04 Apr 2024 14:12:41 -0400 Received: from mail-lj1-x230.google.com ([2a00:1450:4864:20::230]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rsRZn-0004fu-Oi for emacs-orgmode@gnu.org; Thu, 04 Apr 2024 14:12:41 -0400 Received: by mail-lj1-x230.google.com with SMTP id 38308e7fff4ca-2d6c220a377so15780951fa.2 for ; Thu, 04 Apr 2024 11:12:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712254357; x=1712859157; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=JbMEqSVmBUJq+PDGsvxetPluUuEjnIx/6BSTdPrZ4JE=; b=lYUW8eBBziqgGRpOjqtf5oyFCXy7FUjrsm6CVCzVMRN2BDW+VyRXYPBD/VfxbCX7JV tXzv6kOO7Ry4yiahMSICjC2tS5fGefoCO3hOq8wqCJ7VnqcdreBHt31HWt384c/dILoY XOeRph9m6Ke8sO4XrqxwucHst0tyGkND3hyQoCFwu+6m7QCiIshgP0kzAtswvdR+3n3N eY5KwqK0zeiYOTlHO2HGJd7y3cEipAsVfjkipEAjcLI9Vte9OelXxToDBTIN96sNjZvV Bi2ntGHoglbc6wxELnF/ygHC6q8WR5/p3mSDhgRj14UptZr1EDMogwQdBGE4buLKSCDt h/Og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712254357; x=1712859157; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JbMEqSVmBUJq+PDGsvxetPluUuEjnIx/6BSTdPrZ4JE=; b=m0c55HB1gowF0sLVGcKMmwwat2MGK/h9oB5kv2r14dJdx0lGzGXuZsG2De/IUJmPD0 jZjWg2yGVMvkWNF0pKgaVwh7EkKh5I58uWbBQKWLfxJxHPYI4lf1ZUXWGKZPJn3zZ2Ai cYnZOeKbl82CCJ1AlMkIo3m1tluxKFLH5tOzokGCtbg+UAVR7x0sn8mPoDuRcRE3YAEB uMZ9tflSsPCbesOkvVXj7vlaIY/VJbhESHMcsPymkZ7IR3Qmz2GncB4FXOLrN+hIqDqp /8fCP5frS/wQaje1fyOkcRPwyBLvLEe72Mg1KvcxyHY4bU+WD0TWOvc3ZrHu8hb4IKdC TbkA== X-Gm-Message-State: AOJu0Yxt3kUbAxZGO466fp01FhnvT5woSpY+ir85zF5RsBtHJ2cISxHl QETCOVMs5NwHoUowSulbzjF+auouO4fjc54Ed7u/5OKBqfHPHDmtfsoV0L8GB/s= X-Google-Smtp-Source: AGHT+IEVptNf7GKqfJVDM8ZmYEEhnvMqcjVP3GjY/fqkovRkfT650eBDtqP1j9iCSuP05QKwQE2unQ== X-Received: by 2002:a05:6512:3119:b0:516:d30c:7236 with SMTP id n25-20020a056512311900b00516d30c7236mr32799lfb.18.1712254356716; Thu, 04 Apr 2024 11:12:36 -0700 (PDT) Received: from windows (83.24.116.217.ipv4.supernova.orange.pl. [83.24.116.217]) by smtp.gmail.com with ESMTPSA id f2-20020a056402068200b0056e2432d10bsm388233edy.70.2024.04.04.11.12.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 11:12:36 -0700 (PDT) From: =?utf-8?Q?S=C5=82awomir?= Grochowski To: Ihor Radchenko Cc: emacs-orgmode@gnu.org Subject: Re: [FR] 'org-columns-next-allowed-value' for 'summary-checkbox'es functions should have 'intermediate state' '[-]' In-Reply-To: <87wmpdt7w1.fsf@localhost> References: <87frw2cmgo.fsf@gmail.com> <87wmpdt7w1.fsf@localhost> Date: Thu, 04 Apr 2024 20:12:35 +0200 Message-ID: <87cyr5c7zg.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::230; envelope-from=slawomir.grochowski@gmail.com; helo=mail-lj1-x230.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-Flow: FLOW_IN X-Migadu-Country: US X-Spam-Score: -3.76 X-Migadu-Queue-Id: 1196775270 X-Migadu-Spam-Score: -3.76 X-Migadu-Scanner: mx10.migadu.com X-TUID: sOugKa1iz5Sl --=-=-= Content-Type: text/plain Ihor Radchenko writes: > Do not forget to add :package-version. Thank you for bringing it to my attention. Patch in attachment. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-lisp-org-colview.el-Add-defcustom-org-columns-checkb.patch >From eb71166693065534be9effdc28aea54bb24e64d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C5=82awomir=20Grochowski?= Date: Sat, 16 Mar 2024 13:29:53 +0100 Subject: [PATCH] lisp/org-colview.el: Add defcustom `org-columns-checkbox-allowed-values' * lisp/org-colview.el Add defcustom `org-columns-checkbox-allowed-values'. (org-columns-next-allowed-value): Introduce variable `org-columns-checkbox-allowed-values'. This would allow to use more than two states ("[ ]", "[X]") in columns with SUMMARY-TYPE that use checkbox ("X", "X/", "X%"). For example you can add an intermediate state ("[-]"). Or empty state ("") to remove checkbox. * etc/ORG-NEWS New option ~org-columns-checkbox-states~ --- etc/ORG-NEWS | 7 +++++++ lisp/org-colview.el | 8 +++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/etc/ORG-NEWS b/etc/ORG-NEWS index ca73f06e7..72caf073a 100644 --- a/etc/ORG-NEWS +++ b/etc/ORG-NEWS @@ -1753,6 +1753,13 @@ following properties: ~:hook~, ~:prepare-finalize~, prior to their global counterparts for the selected template. ** New options +*** New option ~org-columns-checkbox-allowed-values~ + +This would allow to use more than two states ("[ ]", "[X]") in +columns with SUMMARY-TYPE that use checkbox ("X", "X/", "X%"). +For example you can add an intermediate state ("[-]"). +Or empty state ("") to remove checkbox. + *** A new option for custom setting ~org-refile-use-outline-path~ to show document title in refile targets Setting ~org-refile-use-outline-path~ to ~'title~ will show title diff --git a/lisp/org-colview.el b/lisp/org-colview.el index d71c84a76..5545c5691 100644 --- a/lisp/org-colview.el +++ b/lisp/org-colview.el @@ -59,6 +59,12 @@ ;;; Configuration +(defcustom org-columns-checkbox-allowed-values '("[ ]" "[X]") + "Allowed values for columns with SUMMARY-TYPE that use checkbox." + :group 'checkbox + :package-version '(Org . "9.6") + :type '(repeat string)) + (defcustom org-columns-modify-value-for-display-function nil "Function that modifies values for display in column view. For example, it can be used to cut out a certain part from a time stamp. @@ -737,7 +743,7 @@ an integer, select that value." (let ((all (or (org-property-get-allowed-values pom key) (pcase (nth column org-columns-current-fmt-compiled) - (`(,_ ,_ ,_ ,(or "X" "X/" "X%") ,_) '("[ ]" "[X]"))) + (`(,_ ,_ ,_ ,(or "X" "X/" "X%") ,_) org-columns-checkbox-allowed-values)) (org-colview-construct-allowed-dates value)))) (if previous (reverse all) all)))) (when (equal key "ITEM") (error "Cannot edit item headline from here")) -- 2.30.2 --=-=-= Content-Type: text/plain Regards, -- Slawomir Grochowski --=-=-=--