From unknown Sun Aug 10 04:02:54 2025 X-Loop: don@donarmstrong.com Subject: bug#1200: Two more overlay display bugs Reply-To: rms@gnu.org, 1200@debbugs.gnu.org Resent-From: Richard Stallman Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 19 Oct 2008 05:10:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1200 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.122439259819860 (code B ref -1); Sun, 19 Oct 2008 05:10:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-8.5 required=4.0 tests=AWL,BAYES_00,FOURLA, RCVD_IN_DNSWL_MED autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at submit) by emacsbugs.donarmstrong.com; 19 Oct 2008 05:03:18 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9J53ETv019853 for ; Sat, 18 Oct 2008 22:03:15 -0700 Received: from rms by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KrQP6-0007UX-Le; Sun, 19 Oct 2008 01:00:36 -0400 From: Richard Stallman Content-Type: text/plain; charset=ISO-8859-15 To: emacs-pretest-bug@gnu.org Message-Id: Date: Sun, 19 Oct 2008 01:00:36 -0400 Here are bugs that were reported a year ago which I think should not be forgotten. To: bug-gnu-emacs@gnu.org From: Joe Wells Date: Sat, 20 Oct 2007 06:32:19 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Subject: two display bugs involving interactions between after-string and display properties of adjacent overlays Here are two more display bugs I found while trying to improve the code in tex-fold.el in AUCTeX. 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) `(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 ))) BUG #1: An overlay's after-string property that would appear at the end of the buffer is not displayed, if the same overlay also has a display property and an immediately preceding overlay also has an after-string property. (Putting extra characters at the end of the buffer works around this bug.) Reproduce with this expression: (test-in-fresh-buffer-and-window (insert "AB") (let ((o1 (make-overlay 1 2)) (o2 (make-overlay 2 3))) (overlay-put o1 'after-string "1") (overlay-put o2 'after-string "2") (overlay-put o2 'display "b") )) The above expression should display ?A1b2?. The above expression wrongly actually displays ?A1b?. BUG #2: An overlay's display property and after-string property are not displayed if an immediately following overlay shares the same Lisp string as its display property. (Using two distinct display strings with identical contents works around the bug.) Reproduce with this expression: (test-in-fresh-buffer-and-window (insert "ABCD") (let ((o1 (make-overlay 2 3)) (o2 (make-overlay 3 4)) (s #1=" ")) (overlay-put o1 'after-string "1") (overlay-put o1 'display #1#) (overlay-put o2 'display #1#))) The above expression should display ?A 1 D?. The above expression wrongly actually displays ?A D?. I hope these bug reports are helpful. Joe ====================================================================== In GNU Emacs 22.1.1 (i686-pc-linux-gnu, GTK+ Version 2.8.20) of 2007-06-27 on artemis Windowing system distributor `The X.Org Foundation', version 11.0.70000000 configured using `configure '--prefix=/home/jbw/local2' '--enable-debug' '--disable-nls' '--with-x-toolkit=gtk' 'CFLAGS=-O0 -g3 -ggdb'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: en_US.UTF-8 value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: jbw value of $LANG: nil locale-coding-system: utf-8 default-enable-multibyte-characters: t Minor modes in effect: TeX-source-specials-mode: t outline-minor-mode: t desktop-save-mode: t url-handler-mode: t tooltip-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t unify-8859-on-encoding-mode: t utf-translate-cjk-mode: t auto-compression-mode: t temp-buffer-resize-mode: t size-indication-mode: t line-number-mode: t transient-mark-mode: t From unknown Sun Aug 10 04:02:54 2025 X-Loop: don@donarmstrong.com Subject: bug#1208: Two more overlay display bugs Reply-To: Glenn Morris , 1208-quiet@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: Resent-Date: Sun, 19 Oct 2008 21:25:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1208 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1208-quiet@emacsbugs.donarmstrong.com id=Q1208.12244512225056 (code Q ref 1208); Sun, 19 Oct 2008 21:25:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-10.7 required=4.0 tests=AWL,BAYES_00, RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1208-quiet) by emacsbugs.donarmstrong.com; 19 Oct 2008 21:20:22 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9JLKJac004785 for <1208-quiet@emacsbugs.donarmstrong.com>; Sun, 19 Oct 2008 14:20:21 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Krfef-0004kx-9P; Sun, 19 Oct 2008 17:17:41 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18683.41973.184335.729754@fencepost.gnu.org> Date: Sun, 19 Oct 2008 17:17:41 -0400 From: Glenn Morris To: 1208-quiet@debbugs.gnu.org In-Reply-To: References: This was cloned from 1200, since 1200 contains two bugs. > BUG #1: An overlay's after-string property that would appear at the > end of the buffer is not displayed, if the same overlay also has a > display property and an immediately preceding overlay also has an > after-string property. (Putting extra characters at the end of the > buffer works around this bug.) This is fixed (see bug#1200). > BUG #2: An overlay's display property and after-string property are > not displayed if an immediately following overlay shares the same Lisp > string as its display property. (Using two distinct display strings > with identical contents works around the bug.) This bug, 1208, is for this issue. From unknown Sun Aug 10 04:02:54 2025 X-Loop: don@donarmstrong.com Subject: bug#1208: overlay after-string and adjacent overlays with same string Reply-To: Glenn Morris , 1208@debbugs.gnu.org Resent-From: Glenn Morris Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Sun, 19 Oct 2008 21:40:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1208 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by 1208-submit@emacsbugs.donarmstrong.com id=B1208.12244519677431 (code B ref 1208); Sun, 19 Oct 2008 21:40:04 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.3-bugs.debian.org_2005_01_02 (2007-08-08) on rzlab.ucr.edu X-Spam-Level: X-Spam-Status: No, score=-13.2 required=4.0 tests=AWL,BAYES_00,HAS_BUG_NUMBER, RCVD_IN_DNSWL_MED,VALID_BTS_CONTROL,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at 1208) by emacsbugs.donarmstrong.com; 19 Oct 2008 21:32:47 +0000 Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9JLWcxL007425; Sun, 19 Oct 2008 14:32:39 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1Krfqa-00058G-JA; Sun, 19 Oct 2008 17:30:00 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18683.42712.498573.238665@fencepost.gnu.org> Date: Sun, 19 Oct 2008 17:30:00 -0400 From: Glenn Morris To: 1208@debbugs.gnu.org In-Reply-To: References: tags 1208 wontfix stop > BUG #2: An overlay's display property and after-string property are > not displayed if an immediately following overlay shares the same Lisp > string as its display property. (Using two distinct display strings > with identical contents works around the bug.) Tagging as wontfix based on the previous discussion: http://lists.gnu.org/archive/html/bug-gnu-emacs/2008-02/msg00179.html This occurs because, as stated in the Emacs Lisp manual, all consecutive characters that have the same Lisp object as their `display' property are replaced as a single unit. In this case, it's somewhat ambiguous what the behavior should be, but after looking at the code I think the behavior you suggest would be much more difficult to implement (and slower) than the current behavior. Furthermore, you can trivially obtain the behavior you want by making a copy of the string using copy-sequence, so that the two display strings are different Lisp objects. Therefore, let's leave this alone. From debbugs-submit-bounces@debbugs.gnu.org Tue Aug 02 12:04:29 2011 Received: (at control) by debbugs.gnu.org; 2 Aug 2011 16:04:29 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QoHSG-0002mv-VX for submit@debbugs.gnu.org; Tue, 02 Aug 2011 12:04:29 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1QoHSF-0002mj-2B for control@debbugs.gnu.org; Tue, 02 Aug 2011 12:04:27 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1QoHRa-0004CF-NJ for control@debbugs.gnu.org; Tue, 02 Aug 2011 18:03:46 +0200 Date: Tue, 02 Aug 2011 18:03:24 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #1208 X-MailScanner-ID: 1QoHRa-0004CF-NJ X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1312905826.82238@hFM4jkyVVrbeh83yIdKLyA X-Spam-Status: No X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) close 1208