[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: (copy-marker nil)
From: |
Stefan Monnier |
Subject: |
Re: (copy-marker nil) |
Date: |
Mon, 07 May 2018 21:46:14 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
> Is there a use-case for a marker pointing nowhere?
Yes.
> From my point of view refusing to create such a marker makes sense.
It would break existing code. BTW "check for a valid buffer position"
won't work with copy-marker for other reasons (e.g. (copy-marker 0)
returns a marker pointing to (point-min), even though 0 is not a valid
position).
I have no idea why you think copy-marker might be a good way to solve
your problem, but the evidence seems to suggest you should try
something else.
Stefan