From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id wGYRMVSY1GbIDAEA62LTzQ:P1 (envelope-from ) for ; Sun, 01 Sep 2024 16:37:40 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id wGYRMVSY1GbIDAEA62LTzQ (envelope-from ) for ; Sun, 01 Sep 2024 18:37:40 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=AsiOF1B4; 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=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725208660; 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=IMuFnnSUk6c/yaPEQDHZI+UfY5m2pc7JJvJkwSsNRJI=; b=QzWTOf8ND7N4bsHuUZ7KASY7sVx75k6WwULHy03SBmxcKPlV8emJvacGoh1dZBWahRdnMo 8h707EHW2a4fHFfWvscm1rbF9JKdiow/O1zulgSRZEhpThoWxBorGbMJ1TJOio0032p89F i8XMc1VI3x1qBGJlzhsYsSx3TwSI8y0553b6nK0efCZoosop/XuQBURkNP8C95y+LrkdGt sAnvVFhN9q7FBrVUcRvFgVmJdEGCxUEUrLcozCQLjAEwWGuw1CCT26phRhgi6+HxBdeshJ K3iEnWg3wYJY7NX41J6VkFwgmN9KPcNsSeLNX77aQE6ofHtojrhSZA6fSyeJtA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=AsiOF1B4; 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=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725208660; a=rsa-sha256; cv=none; b=bdIgqxbOjdIQrMKW8cqukdb2218eiEHV+YtSf0Cb3ypy/XXmcolwulhPKlcUElH2Bq6Nsh +F1/a6bqI7rjvHG53u8XBuTNmUho9Yw3aHU3af8japKBvhghuX4PBoCe3ERWwjuGGg9EUv jC2d6xuisB4zMTocsqkzGai7iWK4CCeCnXa4stpoJ/kBcYWNrikgIGoogwsuq5f9WXanR5 OjverMyV5j47hwxo+/fbCgfkYgQTbrFL6jR6G0CZcca+HgtP0wHfgf4n5E5S4+uYjIWGiR Z5IFEo2Af39MiXjEAwvPDPDMHjH/hBxgzoIT9ai4R5Dn3OhQ3BHofK6rEiMCBw== 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 85F0B22616 for ; Sun, 1 Sep 2024 18:37:40 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sknZI-00056s-1N; Sun, 01 Sep 2024 12:36:48 -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 1sknZF-00056O-7L for emacs-orgmode@gnu.org; Sun, 01 Sep 2024 12:36:45 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sknZC-00008w-Fc for emacs-orgmode@gnu.org; Sun, 01 Sep 2024 12:36:44 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 731CF240103 for ; Sun, 1 Sep 2024 18:36:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1725208599; bh=B9AeNHdTLAbr88ip7KuwEZSIrTrFVC+GazwwDWeCOIY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=AsiOF1B4W2Zy3QPuiR45rgKkKxzQalT3+k8mV//1dFNejzHeNidXJsK6oP1iX/X8d /aqUuF0oRUbvp1onW0+i+J1qscEhouj12VPwMEDiGfH2ev+MtVfNnFa3+7w6qaWRna fbk4Ih9VnPOb6ktoQbR2aqjmOMiMwoLBaSVxMXZD6BTJMdQdEPHi/Z/B3k59sW0KAc 4hcW+ROCnCWkT41yWq4739Z+p/OYKygkssjPdVgUYh8K4Po7SQfMzVr1UTMInEz/eq iavMD7jSSnHG14a/bqwOeT/RuRWtX2oWhZaUnZkN0OkU85X6rReFpzedtBCX4e+qSD iQB8yyi8HWzTQ== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4WxcwQ526Mz9rxP; Sun, 1 Sep 2024 18:36:38 +0200 (CEST) From: Ihor Radchenko To: Rohit Patnaik Cc: emacs-orgmode@gnu.org Subject: Re: Automatically update plain list checkboxes when removing nested list items? In-Reply-To: <1f727436-54bd-4875-966b-8aa6a70527f1@app.fastmail.com> References: <1f727436-54bd-4875-966b-8aa6a70527f1@app.fastmail.com> Date: Sun, 01 Sep 2024 16:38:03 +0000 Message-ID: <87plpnpbx0.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 X-Spam-Score: -8.71 X-Migadu-Queue-Id: 85F0B22616 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -8.71 X-TUID: cxfvDunYxyXP "Rohit Patnaik" writes: > I have a question about plain list checkboxes. If I have a plain list, as > follows: > ... > Then, if it turns out that Sub-item 3 is unnecessary, I can delete it with C-k: > > - [-] Item 1 > - [X] Sub-item 1 > - [X] Sub-item 2 > > However, Item 1's checkbox is in the intermediate state, even though all of its > sub-items have been completed. > > I'm wondering if there's a way that I can delete Sub-item 3 and update the Item > 1 checkbox all at once. Right now, I have to move the cursor back up to Item 1 > and hit C-c C-c to force the checkbox to update. There is no such way readily available, AFAIK. You might be able to do with appropriate after-change function, but such things may cause performance degradation. Another way might be an advice for org-kill-line (if your C-k is bound to org-kill-line). -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at