From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id uFm2HhhBkGB2lwAAgWs5BA (envelope-from ) for ; Mon, 03 May 2021 20:29:44 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id yCxfGhhBkGAVYgAAB5/wlQ (envelope-from ) for ; Mon, 03 May 2021 18:29:44 +0000 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 B965F215DB for ; Mon, 3 May 2021 20:29:43 +0200 (CEST) Received: from localhost ([::1]:43424 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lddK9-0002yu-Iz for larch@yhetil.org; Mon, 03 May 2021 14:29:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:37838) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lddJW-0002yZ-Pv for emacs-orgmode@gnu.org; Mon, 03 May 2021 14:29:04 -0400 Received: from mail-oln040092074051.outbound.protection.outlook.com ([40.92.74.51]:9545 helo=EUR04-DB3-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lddJS-0004EI-7e for emacs-orgmode@gnu.org; Mon, 03 May 2021 14:29:02 -0400 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IT5E9qC8YpzH9FIONyW3FScrM11fnOG1YAb7eiDof0olVHG3zNiLn8GPNjK3rf+x8RLStlW/QM8h5Q4U+ZxPsuEpwOA3yLoFFBP/AFNY51Tmi4f15fgI9LNj9eFDXEdkdiqF5YLvE/7HrfzpZD7+LtONmGt7urTz+wXLm9FRZjbY238WCVqLjTU5PWZhrf2KA5X/ZPaty5S5gSomSBd8a0fHnXg0L9pkNVBPRVk7jCgvyXDC4hIuAMxFWVlmWgsntupJ5Qlq6GxR9Rv4b95iaK6oCRFsLEqL93uMTKUvOil2KK35Aw6P3BaqrThVTEIC5QA/BpEFytt3qRuH3zOfhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=128lzNmOCncXXSlV5LmCRfk/63C8DvT6Qs+immBYmws=; b=P9LRrrT0F0o0UpvCcvNliQA4v2usC2Ds9BXLB/PdlmlV2TOe+qp2DaTWdP+XflDRp8D2DH1E2Xv2VZ906BgdmErLrCuKzXmbqIwhmZmaUClS5VcFjlk6b+q8vmVLMInffCKWR34RP/c5XVELH5BI7GJpPvdqAw0bC10JLxRaKEO9VUxhB64FN9TQSCOuSfeIK6zLjVB0I4NmBNYUwG7ZJ3fbz0v/lK9C65xzhydy1HauPu23Kui2E64MSZGqQP+QaxBDZZfw33yOVucYKiFrLiOs270oJcRIEUIv8xPKEhpoRhbk+CRlHOm3+lsUFgw28Jcm3pB+D5a5Gz2XRovVAQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=live.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=128lzNmOCncXXSlV5LmCRfk/63C8DvT6Qs+immBYmws=; b=mNpUiwaYab2IPuT7HQjvaRCwMv1Hqr6h7RxhAnz+twEUiGzmS24dqmWbcY/mpqvIIWaP9HF2LfP5YRRgkGt0X+DmhQDu4UHBm/WkNTMP4NRXT2sdLf3ugX/44EU2qClqglnKlurpvrbr7rk6B3mpRdxwRenH/WPTRjxMCbqLXEBGabvquhkDOf3hql1jW9B1hOP6P4Yz4Sb+op4Uxn3NLwtjYN6MRTBatFwl9Nn+JnDHhv0gu3ac8LkUGAlx+PAUXyxm5d8wzbQs3tiZY+6g5lczdL1S8qr7Uh9T6lfKVGX5Vxp6nj+lM3HD1VqS7SmbspwlI/cJQv8ngvTwj4AuZA== Received: from VI1EUR04FT042.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0e::4d) by VI1EUR04HT075.eop-eur04.prod.protection.outlook.com (2a01:111:e400:7e0e::415) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27; Mon, 3 May 2021 18:28:53 +0000 Received: from AM9PR09MB4977.eurprd09.prod.outlook.com (2a01:111:e400:7e0e::48) by VI1EUR04FT042.mail.protection.outlook.com (2a01:111:e400:7e0e::68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.27 via Frontend Transport; Mon, 3 May 2021 18:28:53 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:656C17F1888E1DFCABC9EC5BD6C777E455925C4A34F62BA78C18425805E5E8B0; UpperCasedChecksum:38EC76B86B13E12E8A216B60522DB5C2B0FE76435506D7CA6146D1217949F2B5; SizeAsReceived:7409; Count:45 Received: from AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::d1c1:2a0d:3b2b:4591]) by AM9PR09MB4977.eurprd09.prod.outlook.com ([fe80::d1c1:2a0d:3b2b:4591%7]) with mapi id 15.20.4087.044; Mon, 3 May 2021 18:28:53 +0000 From: Arthur Miller To: emacs-orgmode@gnu.org Subject: Re: Checkboxes in headings - opinions wanted References: Date: Mon, 03 May 2021 20:28:52 +0200 In-Reply-To: (Russell Adams's message of "Mon, 3 May 2021 17:50:11 +0200") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (windows-nt) Content-Type: text/plain X-TMN: [dqN7lrIhOIOGPnA18pBpdPwQyCqUPUnL] X-ClientProxiedBy: AM6P195CA0010.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:81::23) To AM9PR09MB4977.eurprd09.prod.outlook.com (2603:10a6:20b:304::20) X-Microsoft-Original-Message-ID: <82r1inoemz.fsf@live.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from HP-Laptop.homepc (81.232.177.30) by AM6P195CA0010.EURP195.PROD.OUTLOOK.COM (2603:10a6:209:81::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4087.25 via Frontend Transport; Mon, 3 May 2021 18:28:52 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 0b2b142d-2a40-4767-ac82-08d90e614dc0 X-MS-TrafficTypeDiagnostic: VI1EUR04HT075: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: yyYL+rlWzLQNH68tqmqg7uvXupydMWG0Sr/1JcBBbvNk4nk7jtT0N+O3lMGgXZoNYaqmWK9WRiUE+0jygA9RYoYWl6Z/BTXs0r4mirzh+Lyo1sXBkkFL46ADA6dH5lWjEnf4YqMPoeEIMDuh3c5QXf6ZzyOtCJHmFgtllTjo5UFJdBEH2yfKLFbzmIId5MiOnVNeq1kU6c2rGAXBW9MlcWHljGmoaeUMTAAU/CQOQZ/m99qWwn8m8NMftCgmdFOeocazc3Vl9ktpxcnO3BziIYFhpyB1ouW5DgQLPewkMcL2ho5TsiQ0UMCS+nn60TqDBTjoHN2tngRPp7NJUZaH+BkZaIK3oD6fwTXEj4HY39zCU1Z+oY3IZCNxY3kQtRpWm7s6OvUzqyMuD8w42m+24yXac2yLNlHvZxMbxX9L/Wc= X-MS-Exchange-AntiSpam-MessageData: 2x08DDf91z6yFmqeLX8SM3oVU6YT1PwFD+AjJvAW265N2sMya7AMLjtu2tC/X/6Ec5axQeOS57voXHFjVw765ESmcvAMSZDrhem5VtwpSFA5TZ78cagEm0yCq5jiZ5+8r4shJEz95Kqc1vEF1FUIEw== X-OriginatorOrg: live.com X-MS-Exchange-CrossTenant-Network-Message-Id: 0b2b142d-2a40-4767-ac82-08d90e614dc0 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 May 2021 18:28:53.1692 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: VI1EUR04FT042.eop-eur04.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1EUR04HT075 Received-SPF: pass client-ip=40.92.74.51; envelope-from=arthur.miller@live.com; helo=EUR04-DB3-obe.outbound.protection.outlook.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, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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.23 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620066584; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=128lzNmOCncXXSlV5LmCRfk/63C8DvT6Qs+immBYmws=; b=mMkIUQiaYtawI22zRgbbXJMUWXGvqtxTAwPgGoJZJYv7oErYy87HGJndSA1qdk2P7xXWMf cCOfzno4oTM6tn+zpIL56YQ5OIYmAzZxrl41rl1mArXDLLPfrHMHU+n4sRJ/AsWatQiHbt AhvmrEB+C5Bdgh8zUnv/o0zgoa8tDyEtzcuoPGt2jFgCmePYmAJRvMM2ZSYmNAisgXiCGM Yhv9VS2XZKPZZ9vGBctu7cPczHiT5G4w8wwqmWoken2MmwSujpxEzJ8dxPXd9SYg1+gHby pvfoa4Rk58MD8tVBnq5FcSxq/gosupCth8rEkNnC3VX4CQfXCbgWPyGrBUBURw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1620066584; a=rsa-sha256; cv=pass; b=BR9C7XghwO+Nd0OGPb7tdsqPowD2D0mtD/qNwzJyX+242AfhNJLNYGySnmpGodP64voayr aC5fT0KAMpMxMF70rMPZjvUC7Pod0rWKn9VTUn/eXpjlVIUSgBG65pRpRtm8D+KcwveJgN Q5GmyEkEjvoEmnHhu6VuSEuyNkDZc1LArr0JS2yBXDQ8N6o4pP569lquBDwe/9KlVFDoIa O0D9Skfs/r60d2po/Ps2JcRr1gLnJqCJn+wSC9pIqR+Q7ohXbjyyT4s26n1acHuxWhwepJ Ve2+bEtER5r6POyZ9C6Ss9A+7iN8QGoSSegbcf1ThviFbCiVwK9zu1H2oJHJmQ== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=mNpUiwaY; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=live.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -4.16 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=live.com header.s=selector1 header.b=mNpUiwaY; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=none) header.from=live.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: B965F215DB X-Spam-Score: -4.16 X-Migadu-Scanner: scn0.migadu.com X-TUID: dZ2XBS3qqzx0 Russell Adams writes: > Arthur, > > Could you just use unicode checkbox symbols instead of TODO and DONE? > > https://kdr2.com/tech/emacs/1405-orgmode-checkbox-unicode.html > > That ought to be just a string, and need no patch. No, I am sorry, that is completely off. I have done this minor mode to make it independent of TODO states. Just replacing TODO and DONE (as I already did as described in other thread 2 days ago), is effectively locking TODO to ack as checkboxes. I would like to be able to use TODO states together with a checkbox, independently of each other, so no, I need something more general then just renamed todo states. Also unicode will depend on some font to be installed, I don't want to pay that dependency, since I am using this for my init file. By the way, this is not a patch, this is a small minor mode that can be installed and enabled/disabled like an extra package. By the way, there is a widghet.el library included in Emacs, if I wanted to use checkboxes as in screenshot there, I could use that library, but that would be much more involved than those few lines to write the code I attached in first mail. > On Mon, May 03, 2021 at 09:00:40AM +0200, Arthur Miller wrote: > >> >> Last night I have been playing with a minor mode to enable a checkbox in >> a heading, or rather to fake a checkbox. To be honest, it was a 10 >> minute job. Took me way moare time to figure out avialable key >> combination to use (which I didn't found). >> >> In general, enable mode and use S+up/down to toggle a checkbox. A >> heading with a checkbox is of form [ \t]*\\*+.*? followed by a [ ] or >> [x] before a heading. It means a [ ] can be placed somewhere after the >> leading stars, whitespaces ignored. >> >> This has nothing todo with my previous hacks of todo keywords. This one >> does not uses todo states at all so it can be used with todo states. >> >> It is just a small prototype. I will use something else than >> replace-string later on. >> >> Just wonder if the approach is sane. >> >> There is also a repo on gh for interested one: >> >> https://github.com/amno1/org-heading-checkbox > > > ------------------------------------------------------------------ > Russell Adams RLAdams@AdamsInfoServ.com > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > Fingerprint: 1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3