[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Fix org-narrow-to-subtree smaller than subtree
From: |
Nicolas Goaziou |
Subject: |
Re: [PATCH] Fix org-narrow-to-subtree smaller than subtree |
Date: |
Sat, 30 May 2020 18:05:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
Hello,
Kevin Liu <kevin@nivekuil.com> writes:
> Right now a narrowed subtree is one char smaller than the actual
> subtree. (org-mark-element) on a narrowed subtree will select a
> region 1 char out of bounds, for example. There doesn't seem like a
> good reason for this to be the case.
There is a good reason for this. If you insert text at (point-max), you
break the following headline.
OTOH `org-mark-element' should pay attention to buffer boundaries.
Regards,
--
Nicolas Goaziou