From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jorge Subject: Bug: Feature request: more automatic updating of cookies [8.3.6 (8.3.6-4-g4835be-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/)] Date: Tue, 27 Sep 2016 09:34:31 -0300 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1borak-00060v-Vh for emacs-orgmode@gnu.org; Tue, 27 Sep 2016 08:34:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boraj-0004t7-E3 for emacs-orgmode@gnu.org; Tue, 27 Sep 2016 08:34:34 -0400 Received: from mail-qk0-x22f.google.com ([2607:f8b0:400d:c09::22f]:32924) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boraj-0004sp-Ap for emacs-orgmode@gnu.org; Tue, 27 Sep 2016 08:34:33 -0400 Received: by mail-qk0-x22f.google.com with SMTP id g67so14115688qkd.0 for ; Tue, 27 Sep 2016 05:34:32 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org mode Paste the following in an Org buffer: --8<---------------cut here---------------start------------->8--- * Cookie_a [0/0] * TODO Dummy_a * Cookie_b [0/1] ** TODO Dummy_b --8<---------------cut here---------------end--------------->8--- Within that buffer: 1. Move point to the line of Dummy_a. 2. I wished the cookie to be updated to [0/1] but it is not. Then: 1. Move point to the line of Dummy_b. 2. C-c C-x C-w 3. Move point to the line of Dummy_a at column 0. 4. C-c C-x C-y I wished both cookies to be updated. They are not. The manual [[info:org#Checkboxes][says]]: Checkbox statistic cookies are updated automatically if you toggle checkboxes with `C-c C-c' and make new ones with `M-S-'. TODO statistics cookies update when changing TODO states. If you delete boxes/entries or add/change them by hand, use this command to get thing= s back into sync. I request the feature of Org automatically updating cookies when using structure editing commands such as C-c C-x C-w, C-c C-x C-y, , and friends. This could be governed by a user option. The point is that C-u C-c # (to update cookies in the entire buffer) takes long enough that I only call it a few times per week. This means that cook= ies can get out of sync. Then I try to remember manually invoking C-c # on the relevant line every time it goes out of sync, but I sometimes omit it. Regards Emacs : GNU Emacs 25.1.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.18.9) of 2016-09-18 Package: Org-mode version 8.3.6 (8.3.6-4-g4835be-elpaplus @ /home/jorge/.emacs.d/elpa/org-plus-contrib-20160926/) current state: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-confirm-shell-link-function 'yes-or-no-p org-after-todo-state-change-hook '(org-clock-out-if-current) org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(#[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes org-eldoc-load) org-archive-hook '(org-attach-archive-delete-maybe) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-clock-out-hook '(org-clock-remove-empty-clock-drawer) ) --=20 =E2=80=A2 I am Brazilian. I hope my English is correct and I welcome corre= ctions. =E2=80=A2 Please adopt free formats like PDF, ODF, Org, LaTeX, Opus, WebM a= nd 7z. =E2=80=A2 Free (as in free speech) software for Android: https://f-droid.or= g/