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

From: Richard Hansen <[email-masked]>
Date: Tue, 13 Dec 2022 21:42:35 -0500

On 12/13/22 01:48, Ihor Radchenko wrote:
> Richard Hansen <[email-masked]> writes:
>> Sounds like setting CLONE to t does not clone markers.  That sounds like
>> a bug in `make-indirect-buffer', no?
> 
> AFAIK, it does clone markers. Also changing marker buffer appropriately.

Hmm, maybe not.  The following fails:

emacs -Q

(progn
   (whitespace-mode 1)
   (with-current-buffer (clone-indirect-buffer "foo" nil)
     (cl-assert (eq (current-buffer)
                    (marker-buffer whitespace-bob-marker)))))

C-x C-e

I don't know if this is working as intended or a bug.