emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals-release/org 8cf704e 1/2: lisp/org.el: Fix org-update-st


From: ELPA Syncer
Subject: [elpa] externals-release/org 8cf704e 1/2: lisp/org.el: Fix org-update-statistics-cookies error
Date: Sun, 16 May 2021 15:57:11 -0400 (EDT)

branch: externals-release/org
commit 8cf704e3fe0bc56c678307427c41413085535a1d
Author: Nicholas Savage <nick@nicksavage.ca>
Commit: Bastien <bzg@gnu.org>

    lisp/org.el: Fix org-update-statistics-cookies error
    
    * lisp/org.el (org-update-statistics-cookies): Replace
    usage of `org-map-entries' with `org-map-region' to prevent bug where
    an error was thrown if the current buffer had not yet been saved to disk.
    
    Formatted from a patch proposal by mail@kisaragi-hiu.com
    Reported-by: mail@kisaragi-hiu.com
---
 lisp/org.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/org.el b/lisp/org.el
index d732b48..dc433c0 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -10012,7 +10012,7 @@ all statistics cookies in the buffer."
   (if all
       (progn
        (org-update-checkbox-count 'all)
-       (org-map-entries 'org-update-parent-todo-statistics))
+       (org-map-region 'org-update-parent-todo-statistics (point-min) 
(point-max)))
     (if (not (org-at-heading-p))
        (org-update-checkbox-count)
       (let ((pos (point-marker))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]