I believe it was Hrvoje and Ben, fixing a bug unrelated to the *display*
of zero-length extents. This sounds like an orthogonal bug to me.
Andy Piper wrote:
You should probably ping Kyle, I'm pretty sure he fixed a bug in
zero-length extents (or maybe it was Hrvoje, I forget).
andy
At 08:45 PM 1/28/2002 +0900, Stephen J. Turnbull wrote:
> The following code wraps an extent around some text and flags it like
> so:
>
> ->some text<-
>
> If you then delete the text you get
>
> <-->
>
> which is not what I would expect. Anybody know what's going on?
> XEmacs 21.4.6.
>
> (defvar ov nil)
>
> (defun add-ov (beg end)
> (setq ov (make-extent beg end))
> (set-extent-properties ov
> `(face red
> begin-glyph ,(make-glyph "->")
> end-glyph ,(make-glyph "<-"))))
>
> (defun del-ov ()
> (delete-extent ov))
>
> (add-ov 1 11)
> (set-extent-property ov 'detachable nil)
> (delete-region 1 11)
>
> The original example used overlays, see
> <20020128093330.78903f25.Manuel.Serrano(a)sophia.inria.fr>
> on xemacs-beta and just add the set-extent-property 'detachable sexp
> for the same results in that context.
>
> --
> Institute of Policy and Planning Sciences
>
http://turnbull.sk.tsukuba.ac.jp
> University of Tsukuba Tennodai 1-1-1 Tsukuba
> 305-8573 JAPAN
> Don't ask how you can "do" free software business;
> ask what your business can "do for" free software.