From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#1208: overlay after-string and adjacent overlays with same string Date: Sun, 19 Oct 2008 17:30:00 -0400 Message-ID: <18683.42712.498573.238665@fencepost.gnu.org> References: Reply-To: Glenn Morris , 1208@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1224493881 18034 80.91.229.12 (20 Oct 2008 09:11:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 20 Oct 2008 09:11:21 +0000 (UTC) To: 1208@emacsbugs.donarmstrong.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 20 11:12:22 2008 connect(): Connection refused 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 1KrgBL-0003g9-Ff for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Oct 2008 23:51:27 +0200 Original-Received: from localhost ([127.0.0.1]:42680 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrgAG-0005Wk-Dx for geb-bug-gnu-emacs@m.gmane.org; Sun, 19 Oct 2008 17:50:20 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KrgA2-0005Jk-TZ for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 17:50:06 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KrgA1-0005Ff-6k for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 17:50:06 -0400 Original-Received: from [199.232.76.173] (port=57735 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KrgA0-0005Es-P0 for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 17:50:04 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:50780) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KrgA0-0005Ay-8J for bug-gnu-emacs@gnu.org; Sun, 19 Oct 2008 17:50:04 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m9JLo0Uj010961; Sun, 19 Oct 2008 14:50:01 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m9JLe4kR008735; Sun, 19 Oct 2008 14:40:04 -0700 X-Loop: don@donarmstrong.com Resent-From: Glenn Morris Resent-To: bug-submit-list@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: Original-Received: via spool by 1208-submit@emacsbugs.donarmstrong.com id=B1208.12244519677431 (code B ref 1208); Sun, 19 Oct 2008 21:40:04 +0000 Original-Received: (at 1208) by emacsbugs.donarmstrong.com; 19 Oct 2008 21:32:47 +0000 Original-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 Original-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 In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Sun, 19 Oct 2008 17:50:06 -0400 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:21684 Archived-At: 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.