emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Manuel Serrano <address@hidden>] Re: flyspell before and after-stri


From: Stephen J. Turnbull
Subject: Re: [Manuel Serrano <address@hidden>] Re: flyspell before and after-string
Date: 28 Jan 2002 20:28:51 +0900
User-agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Common Lisp)

>>>>> "Manuel" == Manuel Serrano <address@hidden> writes:

    Manuel> The strings "->" and "<-" are still on the screen. Is this
    Manuel> really normal?  For your information, XEmacs 21.4 removes
    Manuel> the strings.

In XEmacs the overlay API is implemented using the extent primitives,
and by default new extents are "detachable":

------------------------------------------------------------------------
Detached Extents
================

   A detached extent is an extent that is not attached to a buffer or
string but can be re-inserted.  Detached extents have a start position
and end position of `nil'.  Extents can be explicitly detached using
`detach-extent'.  An extent is also detached when all of its characters
are all killed by a deletion, if its `detachable' property is set; if
this property is not set, the extent becomes a zero-length extent.
------------------------------------------------------------------------

See also C-h f set-extent-property RET.

So if you set the detachable property to nil, you should get the same
behavior as in Emacs.  Depending on how you manipulate those extents
you may prefer to do

(when (featurep 'xemacs)
  (set-extent-property ov 'detachable nil))

at creation rather than checking for xemacs at deletion time.  This
seems to expose a bug in XEmacs's overlay handling (for zero-length
overlays), but it's irrelevant if you're just going to go ahead and
delete it anyway.

HTH


-- 
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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]