emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "J. G." <jerzor@pacbell.net>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: [PATCH] org-list.el: Reduce scope to subtree
Date: Sun, 24 Sep 2023 23:35:30 +0000 (UTC)	[thread overview]
Message-ID: <861235485.1488189.1695598530412@mail.yahoo.com> (raw)
In-Reply-To: 861235485.1488189.1695598530412.ref@mail.yahoo.com


[-- Attachment #1.1: Type: text/plain, Size: 134 bytes --]

Hi, this patch reduces the scope of the function org-reset-checkbox-state-subtree to just the subtree per its name and documentation.

[-- Attachment #1.2: Type: text/html, Size: 348 bytes --]

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-This-is-change-1.patch --]
[-- Type: text/x-patch, Size: 926 bytes --]

From f7b0e67935f7677fe2c238a17bf4f70ac962ab08 Mon Sep 17 00:00:00 2001
From: JG <jerzor@pacbell.net>
Date: Sun, 24 Sep 2023 16:17:45 -0700
Subject: [PATCH] org-list.el: Reduce scope to subtree

* lisp/org-list.el (org-reset-checkbox-state-subtree): Fix
scope of function call to update checkboxes to just subtree.
TINYCHANGE
---
 lisp/org-list.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org-list.el b/lisp/org-list.el
index 7da10649d..023cfc0f8 100644
--- a/lisp/org-list.el
+++ b/lisp/org-list.el
@@ -2523,7 +2523,7 @@ subtree, ignoring planning line and any drawer following it."
 	    (when (org-at-item-checkbox-p)
 	      (replace-match "[ ]" t t nil 1))
 	    (forward-line 1)))
-	(org-update-checkbox-count-maybe 'all)))))
+	(org-update-checkbox-count-maybe)))))
 
 (defun org-update-checkbox-count (&optional all)
   "Update the checkbox statistics in the current section.
-- 
2.40.1


       reply	other threads:[~2023-09-24 23:37 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <861235485.1488189.1695598530412.ref@mail.yahoo.com>
2023-09-24 23:35 ` J. G. [this message]
2023-09-26  9:34   ` [PATCH] org-list.el: Reduce scope to subtree Ihor Radchenko
2023-09-26 14:44     ` J. G.
2023-10-05  9:40       ` Ihor Radchenko
2023-10-05 13:04         ` Jeremias Gonzalez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=861235485.1488189.1695598530412@mail.yahoo.com \
    --to=jerzor@pacbell.net \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).