From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Wells Newsgroups: gmane.emacs.bugs 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 Message-ID: <86fy069w8g.fsf@macs.hw.ac.uk> References: <86k5pi9wrg.fsf@macs.hw.ac.uk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1192859042 30515 80.91.229.12 (20 Oct 2007 05:44:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2007 05:44:02 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 20 07:44:02 2007 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Ij77y-0005QO-45 for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2007 07:44:02 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ij77q-0004Hh-IS for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2007 01:43:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ij77o-0004F6-Ub for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2007 01:43:52 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ij77m-0004DJ-Fi for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2007 01:43:51 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ij77m-0004DA-CK for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2007 01:43:50 -0400 Original-Received: from [137.195.13.6] (helo=izanami.macs.hw.ac.uk) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Ij77l-0003Li-T4 for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2007 01:43:50 -0400 Original-Received: from lxultra1.macs.hw.ac.uk ([137.195.27.173]:40025 helo=127.0.0.1) by izanami.macs.hw.ac.uk with smtp (Exim 4.51) id 1Ij77f-0001Vv-FD for bug-gnu-emacs@gnu.org; Sat, 20 Oct 2007 06:43:43 +0100 Original-Received: (nullmailer pid 30457 invoked by uid 1001); Sat, 20 Oct 2007 05:43:43 -0000 In-Reply-To: <86k5pi9wrg.fsf@macs.hw.ac.uk> (Joe Wells's message of "Sat\, 20 Oct 2007 06\:32\:19 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:16791 Archived-At: Joe Wells 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 =E2=80=9CAB1D=E2=80=9D. The above expression wrongly actually displays =E2=80=9CABD=E2=80=9D. > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > 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. --=20 Joe