all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* (copy-marker nil)
@ 2018-05-07  8:19 Andreas Röhler
  2018-05-07 13:39 ` John Mastro
  2018-05-07 13:55 ` Noam Postavsky
  0 siblings, 2 replies; 10+ messages in thread
From: Andreas Röhler @ 2018-05-07  8:19 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

Hi,

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?

Wanted to check for a valid buffer position, which doesn't seem possible 
that way. While without copy-marker, the variable a would be set to nil, 
now the result evaluates to  #<marker in no buffer>, which is a kind of t.


Cheers,

Andreas



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2018-05-12 22:06 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-07  8:19 (copy-marker nil) Andreas Röhler
2018-05-07 13:39 ` John Mastro
2018-05-07 14:23   ` Andreas Röhler
2018-05-07 13:55 ` Noam Postavsky
2018-05-07 14:20   ` Andreas Röhler
2018-05-07 14:26     ` Drew Adams
2018-05-07 17:16       ` Andreas Röhler
2018-05-08  1:46         ` Stefan Monnier
2018-05-08  8:44           ` Andreas Röhler
2018-05-12 22:06             ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.