all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Re: Retrieve front-advance from make-overlay
@ 2007-01-17 17:19 Stuart D. Herring
  2007-01-17 18:57 ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Stuart D. Herring @ 2007-01-17 17:19 UTC (permalink / raw)
  Cc: Lennart Borgman, Stefan Monnier, Emacs Devel

[Sorry if this is a repeat post and/or doesn't go into the thread
properly; my mailer didn't like my first attempt.]

> It was untested, and naturally, it is wrong.  Both calls to
> move-overlay.  You have to use
>
> (move-overlay ov 1 1 (current-buffer))
>
> and
>
> (move-overlay ov start end buf)
>
> instead, respectively.  There are probably more errors: I still did not
test it.

It seems to me that you should put the overlay on a single character in a
buffer and then insert once on either side of that character.  Would a
0-length overlay with front-advance but not rear-advance actually sit on
the range n to n-1 if you inserted before it?

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Retrieve front-advance from make-overlay
@ 2007-01-14 21:04 Lennart Borgman (gmail)
  2007-01-15  1:23 ` Stefan Monnier
  0 siblings, 1 reply; 9+ messages in thread
From: Lennart Borgman (gmail) @ 2007-01-14 21:04 UTC (permalink / raw)


Is it possible to retrieve from an overlay the parameters front-advance 
and rear-advance that was given to make-overlay?

Without that it is not possible to make a new copy of an overlay AFAICS.

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

end of thread, other threads:[~2007-01-17 18:57 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-17 17:19 Retrieve front-advance from make-overlay Stuart D. Herring
2007-01-17 18:57 ` Stefan Monnier
  -- strict thread matches above, loose matches on Subject: below --
2007-01-14 21:04 Lennart Borgman (gmail)
2007-01-15  1:23 ` Stefan Monnier
2007-01-15  1:29   ` Lennart Borgman (gmail)
2007-01-15  7:20     ` David Kastrup
2007-01-15  9:18       ` Lennart Borgman (gmail)
2007-01-15  9:59         ` David Kastrup
2007-01-15 15:39           ` 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.