From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marco Wahl Subject: Re: [RFC] Org Num library Date: Mon, 04 Feb 2019 12:23:08 +0100 Message-ID: <84bm3rbxwj.fsf@gmail.com> References: <87r2fftxq7.fsf@nicolasgoaziou.fr> <84k1ikludt.fsf@gmail.com> <87pns9b44k.fsf@nicolasgoaziou.fr> <87h8dkvz5m.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gqcPd-0005K2-Lv for emacs-orgmode@gnu.org; Mon, 04 Feb 2019 06:27:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gqcLL-0003pq-BV for emacs-orgmode@gnu.org; Mon, 04 Feb 2019 06:23:16 -0500 Received: from [195.159.176.226] (port=44438 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gqcLL-0003op-4c for emacs-orgmode@gnu.org; Mon, 04 Feb 2019 06:23:15 -0500 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1gqcLJ-000Vvf-3i for emacs-orgmode@gnu.org; Mon, 04 Feb 2019 12:23:13 +0100 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 Hello stardiviner, >>> Just one idea came to my mind. What about adding an option to restart >>> the numbering at 1 for the first heading in the case when narrowing is >>> in effect? >> >> AFAICT, detecting narrowing changes requires using >> `post-command-hook'. > > Add more things into `post-command-hook' is not a good idea. Org will > really getting slow! I saw many Org Mode newbie complain about Org Mode > slow on big Org file. Myself has this experience often. I have to > disable some features so speedup Org rendering. > > Well, I think this is just my personal opinion. I respect author's > decision. I also think it's a good idea to save resources. I tried out the patch from Nicolas (which works great BTW, thanks!) but I'm undecided if it adds much value to Org. So if there is no interest we could just not commit the patch. If there is interest in that patch, the code could be refined to only hook into the `post-command-hook' when local numbering of narrowed parts has been chosen. Best regards, Marco