[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: two display bugs involving interactions between after-string and dis
Re: two display bugs involving interactions between after-string and display properties of adjacent overlays
Sat, 20 Oct 2007 06:43:43 +0100
Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)
Joe Wells <address@hidden> 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.
> I'm assuming this macro in my reproduction code below:
> (defmacro test-in-fresh-buffer-and-window (&rest body)
> (kill-buffer (get-buffer-create "xyzzy"))
> (let ((xyzzy-buf (get-buffer-create "xyzzy")))
> (set-buffer xyzzy-buf)
> (display-buffer xyzzy-buf)
> 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
Reproduce with this expression:
(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.