home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from bug-lucid-emacs to alt.lucid-emacs.bug; Wed, 27 Jan 1993 18:00:50 EST
- From: piggy%hilbert.maths.utas.edu.au@lucid.com (La Monte Yarroll)
- Message-ID: <9301270632.AA06329@hilbert.maths.utas.edu.au>
- Subject: BUG: extents dribble
- Date: Wed, 27 Jan 1993 17:32:51 EST
- X-Mailer: ELM [version 2.2 PL11]
- Newsgroups: alt.lucid-emacs.bug
- Path: sparky!uunet!wendy-fate.uu.net!bug-lucid-emacs
- Sender: bug-lucid-emacs-request@lucid.com
- Lines: 33
-
- I'm running the lucid emacs 19.4 sparc binary currently available for ftp.
-
- I've noticed an annoying feature of the realization of extents. Under
- conditions I don't yet understand, and extent can dribble over into
- the next character for a short period.
-
- You can see this effect most easily by highlighting a region and then
- using ^w. You delete one less character than it looked like.
-
- At first I thought this was the cursor getting in the way, but it
- isn't. There appear to be conditions under which extents show
- themselves from [start, end] instead of [start, end).
-
- To investigate this bug, eval the following code to set up an extent.
-
- (setq bug-face (make-face 'smile))
- (defun demonstrate-extent-problem ()
- (let ((start (point))
- (end))
- (insert "Put it here-")
- (setq end (point))
- (insert "!-to demonstrate bug.")
- (set-face-font bug-face "7x13b")
- (setq bug-extent (make-extent start end))
- (set-extent-face bug-extent bug-face))
- )
-
-
- Now evaluate (demonstrate-extent-problem). Put your cursor on the "!".
- Type a single character. Notice that the "!" is now bold. Now eval
- (cons bug-extent (point)); note that (point) is supposedly not
- included in the extent. Now move to the "-" after the "!". Type
- another character, and the "!" reverts.
-