From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adam Porter Subject: Re: 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: Wed, 28 Sep 2016 18:08:20 -0500 Message-ID: <87r383fwrf.fsf@alphapapa.net> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43953) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpO4T-0002Ie-5z for emacs-orgmode@gnu.org; Wed, 28 Sep 2016 19:15:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bpO4P-00026S-1x for emacs-orgmode@gnu.org; Wed, 28 Sep 2016 19:15:24 -0400 Received: from [195.159.176.226] (port=58722 helo=blaine.gmane.org) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bpO4O-00025h-Rf for emacs-orgmode@gnu.org; Wed, 28 Sep 2016 19:15:20 -0400 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1bpO4A-0003CN-6J for emacs-orgmode@gnu.org; Thu, 29 Sep 2016 01:15:06 +0200 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: emacs-orgmode@gnu.org Jorge writes: > 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 cookies > 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. Yeah, I have wished for this myself. It would probably work without too much overhead to advise the outline-manipulating functions to call org-update-statistics-cookies afterward. There might be a few other functions to advise also to get more complete coverage.