[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#18: Fine-grained revert-buffer
From: |
Basil L. Contovounesios |
Subject: |
bug#18: Fine-grained revert-buffer |
Date: |
Fri, 03 May 2019 15:05:45 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Richard Stallman <rms@gnu.org> writes:
> > >> When I bumped into the problem of the marker being sent to the
> > >> beginning of the hunk, I started looking for something to get the
> > >> markers of the buffer, but didn't found anything at the Lisp level.
> > >
> > > We could introduce a function 'marker-list' based on BUF_MARKERS.
>
> There is a reason why you can't get a copy of that list: if anything
> else pointed to a copy of it, no marker in that buffer could be
> garbage collected.
Isn't that true of all marker copying/manipulation at the Lisp level?
I think the manual already documents these pitfalls.
> We should look for some other way to solve your problem.
I think that would indeed be preferable.
--
Basil