help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (copy-marker nil)


From: Andreas Röhler
Subject: Re: (copy-marker nil)
Date: Tue, 8 May 2018 10:44:46 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 08.05.2018 03:46, Stefan Monnier wrote:
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.


Thats a concern. It would surprise me though. Do you have an example.


 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).


Well, zero here is a special case. But copying a marker out of nil seems not logically. Resp. thats how the universe started? ;)






reply via email to

[Prev in Thread] Current Thread [Next in Thread]