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

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

Re: (copy-marker nil)


From: Noam Postavsky
Subject: Re: (copy-marker nil)
Date: Mon, 7 May 2018 09:55:52 -0400

On 7 May 2018 at 04:19, Andreas Röhler <andreas.roehler@easy-emacs.de> wrote:

> being surprised WRT behavior of copy-marker:
>
> (setq a (copy-marker nil)) -> #<marker in no buffer>
> (markerp a) -> t
> a -> #<marker in no buffer>
>
> Is taking nil by copy-marker reasonable?

For most functions, passing nil for an &optional parameter is the same
as omitting it.

(copy-marker &optional MARKER TYPE)
[...]
If MARKER is not specified, the new marker does not point anywhere.



reply via email to

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