emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Marco Wahl <marcowahlsoft@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: [RFC] Org Num library
Date: Mon, 04 Feb 2019 12:23:08 +0100	[thread overview]
Message-ID: <84bm3rbxwj.fsf@gmail.com> (raw)
In-Reply-To: 87h8dkvz5m.fsf@gmail.com

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

  reply	other threads:[~2019-02-04 11:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-20 18:22 [RFC] Org Num library Nicolas Goaziou
2018-11-20 22:29 ` Neil Jerram
2018-11-21  6:31 ` Eric S Fraga
2019-01-31 15:27 ` Marco Wahl
2019-02-03  9:41   ` Nicolas Goaziou
2019-02-04  6:35     ` stardiviner
2019-02-04 11:23       ` Marco Wahl [this message]
2019-02-04 19:36         ` Nicolas Goaziou

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=84bm3rbxwj.fsf@gmail.com \
    --to=marcowahlsoft@gmail.com \
    --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).