From unknown Sun Aug 10 04:03:06 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#1208 <1208@debbugs.gnu.org> To: bug#1208 <1208@debbugs.gnu.org> Subject: Status: overlay after-string and adjacent overlays with same string Reply-To: bug#1208 <1208@debbugs.gnu.org> Date: Sun, 10 Aug 2025 11:03:06 +0000 retitle 1208 overlay after-string and adjacent overlays with same string reassign 1208 emacs submitter 1208 rms@gnu.org severity 1208 normal tag 1208 wontfix thanks From rms@gnu.org Sat Oct 18 22:03:18 2008 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 Subject: Two more overlay display bugs Reply-To: rms@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 rgm@gnu.org Sun Oct 19 14:09:32 2008 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.6 required=4.0 tests=AWL,BAYES_00,MISSING_SUBJECT, NOSUBJECT,RCVD_IN_DNSWL_MED,X_DEBBUGS_NO_ACK autolearn=ham version=3.2.3-bugs.debian.org_2005_01_02 Received: (at control) by emacsbugs.donarmstrong.com; 19 Oct 2008 21:09:33 +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 m9JL9U33001443 for ; Sun, 19 Oct 2008 14:09:31 -0700 Received: from rgm by fencepost.gnu.org with local (Exim 4.67) (envelope-from ) id 1KrfUC-0004Ma-1U; Sun, 19 Oct 2008 17:06:52 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18683.41324.17958.87485@fencepost.gnu.org> Date: Sun, 19 Oct 2008 17:06:52 -0400 From: Glenn Morris To: control X-Attribution: GM X-Mailer: VM (www.wonderworks.com/vm), GNU Emacs (www.gnu.org/software/emacs) X-Hue: magenta X-Ran: Q{wCsPNNd$vI5&wek{*OsuMY!PxX90IZWyv]I.w)DoSL(|Rf1j+s{Khm.K(MT`$2); 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 Subject: Re: Two more overlay display bugs In-Reply-To: References: X-Debbugs-No-Ack: yes 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 rgm@gnu.org Sun Oct 19 14:32:47 2008 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 Subject: Re: bug#1208: overlay after-string and adjacent overlays with same string In-Reply-To: References: X-Debbugs-No-Ack: yes 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 From unknown Sun Aug 10 04:03:06 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 31 Aug 2011 11:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator