all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* overlay start/end marker access funs?
@ 2002-03-12  2:51 Miles Bader
  2002-03-12 18:07 ` Stefan Monnier
  2002-03-12 20:29 ` Richard Stallman
  0 siblings, 2 replies; 3+ messages in thread
From: Miles Bader @ 2002-03-12  2:51 UTC (permalink / raw)


I wanted to augment `describe-text-at' to print the start/end
insertion-types of overlays, but there doesn't seem to be any way to
actually get that info in elisp.

So, I thought it might be nice to add `overlay-start-marker'and
`overlay-end-marker' access functions -- then one could use
`marker-insertion-type' to do what I want.

Does anyone see a problem with allowing elisp access to these markers?
(or is there one already, and I'm missing it?)

[If there is a problem, I guess something like `overlay-start-insertion-type'
and `overlay-end-insertion-type' would be OK, then.]

Thanks,

-Miles
-- 
97% of everything is grunge

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


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

* Re: overlay start/end marker access funs?
  2002-03-12  2:51 overlay start/end marker access funs? Miles Bader
@ 2002-03-12 18:07 ` Stefan Monnier
  2002-03-12 20:29 ` Richard Stallman
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2002-03-12 18:07 UTC (permalink / raw)
  Cc: emacs-devel

> I wanted to augment `describe-text-at' to print the start/end
> insertion-types of overlays, but there doesn't seem to be any way to
> actually get that info in elisp.
> 
> So, I thought it might be nice to add `overlay-start-marker'and
> `overlay-end-marker' access functions -- then one could use
> `marker-insertion-type' to do what I want.
> 
> Does anyone see a problem with allowing elisp access to these markers?
> (or is there one already, and I'm missing it?)
> 
> [If there is a problem, I guess something like `overlay-start-insertion-type'
> and `overlay-end-insertion-type' would be OK, then.]

The lack of this functionality is already noted in subr.el in
the definition of `copy-overlay'.  So I agree it would be good to have.


	Stefan


_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


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

* Re: overlay start/end marker access funs?
  2002-03-12  2:51 overlay start/end marker access funs? Miles Bader
  2002-03-12 18:07 ` Stefan Monnier
@ 2002-03-12 20:29 ` Richard Stallman
  1 sibling, 0 replies; 3+ messages in thread
From: Richard Stallman @ 2002-03-12 20:29 UTC (permalink / raw)
  Cc: emacs-devel

    Does anyone see a problem with allowing elisp access to these markers?
    (or is there one already, and I'm missing it?)

That would make it possible to call move-marker on them,
which would mess up the overlay data structure.

So it would be better to add a function that only provides access
to the insertion types.

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://mail.gnu.org/mailman/listinfo/emacs-devel


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

end of thread, other threads:[~2002-03-12 20:29 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-03-12  2:51 overlay start/end marker access funs? Miles Bader
2002-03-12 18:07 ` Stefan Monnier
2002-03-12 20:29 ` Richard Stallman

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.