From: Joe Wells <jbw@macs.hw.ac.uk>
To: bug-gnu-emacs@gnu.org
Subject: Re: two display bugs involving interactions between after-string and display properties of adjacent overlays
Date: Sat, 20 Oct 2007 06:43:43 +0100 [thread overview]
Message-ID: <86fy069w8g.fsf@macs.hw.ac.uk> (raw)
In-Reply-To: <86k5pi9wrg.fsf@macs.hw.ac.uk> (Joe Wells's message of "Sat\, 20 Oct 2007 06\:32\:19 +0100")
Joe Wells <jbw@macs.hw.ac.uk> writes:
> Here are two more display bugs I found while trying to improve the
> code in tex-fold.el in AUCTeX.
Here is a third such bug.
> These bugs involve interactions between after-string and display
> properties of adjacent overlays.
Ditto.
> I'm assuming this macro in my reproduction code below:
>
> (defmacro test-in-fresh-buffer-and-window (&rest body)
> `(progn
> (delete-other-windows)
> (kill-buffer (get-buffer-create "xyzzy"))
> (let ((xyzzy-buf (get-buffer-create "xyzzy")))
> (set-buffer xyzzy-buf)
> (display-buffer xyzzy-buf)
> ,@body
> )))
Ditto.
> BUG #1: ...
> BUG #2: ...
BUG #3: An overlay's after-string property is not displayed if an
immediately following overlay has the empty string as its display
property.
Reproduce with this expression:
(test-in-fresh-buffer-and-window
(insert "ABCD")
(let ((o1 (make-overlay 2 3))
(o2 (make-overlay 3 4)))
(overlay-put o1 'after-string "1")
(overlay-put o2 'display "")))
The above expression should display “AB1D”.
The above expression wrongly actually displays “ABD”.
> ======================================================================
> In GNU Emacs 22.1.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20) ...
Same details as in last message.
I hope this bug report is helpful.
--
Joe
next prev parent reply other threads:[~2007-10-20 5:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-20 5:32 two display bugs involving interactions between after-string and display properties of adjacent overlays Joe Wells
2007-10-20 5:43 ` Joe Wells [this message]
2008-02-29 3:12 ` Chong Yidong
2008-02-29 18:27 ` Chong Yidong
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=86fy069w8g.fsf@macs.hw.ac.uk \
--to=jbw@macs.hw.ac.uk \
--cc=bug-gnu-emacs@gnu.org \
/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.