From: "Stuart D. Herring" <herring@lanl.gov>
Cc: Lennart Borgman <lennart.borgman@gmail.com>,
Stefan Monnier <monnier@iro.umontreal.ca>,
Emacs Devel <emacs-devel@gnu.org>
Subject: Re: Retrieve front-advance from make-overlay
Date: Wed, 17 Jan 2007 09:19:43 -0800 (PST) [thread overview]
Message-ID: <53214.128.165.123.18.1169054383.squirrel@webmail.lanl.gov> (raw)
[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.
next reply other threads:[~2007-01-17 17:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-01-17 17:19 Stuart D. Herring [this message]
2007-01-17 18:57 ` Retrieve front-advance from make-overlay 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=53214.128.165.123.18.1169054383.squirrel@webmail.lanl.gov \
--to=herring@lanl.gov \
--cc=emacs-devel@gnu.org \
--cc=lennart.borgman@gmail.com \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.