Subject: bug#59618: 29.0.50; global-whitespace-mode + org-capture: "Marker does not point anywhere"

From: Ihor Radchenko <[email-masked]>
Date: Tue, 13 Dec 2022 06:34:57 +0000

Richard Hansen <[email-masked]> writes:

> I believe this is caused by an interaction between indirect buffers and 
> after-change-functions.  In the buffer with the error, 
> whitespace--update-bob-eob is in after-change-functions even though 
> whitespace-color-on (which is the only place that hook is registered) is 
> never called on the buffer.  whitespace-color-on sets up state that 
> whitespace--update-bob-eob depends on, which is why the error occurs.

Org's capture buffer is created by calling `make-indirect-buffer' with
CLONE argument.  This makes Emacs clone buffer local variables,
including `after-change-functions'.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>