From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: interactions between after-string and display properties Date: Fri, 29 Feb 2008 13:49:44 -0500 Message-ID: <87lk53iomv.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1204311123 32445 80.91.229.12 (29 Feb 2008 18:52:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Feb 2008 18:52:03 +0000 (UTC) Cc: Joe Wells , emacs-devel@gnu.org To: "Kim F. Storm" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 29 19:52:29 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JVAL1-0008Cn-HT for ged-emacs-devel@m.gmane.org; Fri, 29 Feb 2008 19:52:07 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVAKV-0007fx-7f for ged-emacs-devel@m.gmane.org; Fri, 29 Feb 2008 13:51:35 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JVAKR-0007fg-33 for emacs-devel@gnu.org; Fri, 29 Feb 2008 13:51:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JVAKO-0007fU-OW for emacs-devel@gnu.org; Fri, 29 Feb 2008 13:51:29 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JVAKO-0007fR-J3 for emacs-devel@gnu.org; Fri, 29 Feb 2008 13:51:28 -0500 Original-Received: from cyd.mit.edu ([18.115.2.24]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JVAKN-00052s-Uk for emacs-devel@gnu.org; Fri, 29 Feb 2008 13:51:28 -0500 Original-Received: by cyd.mit.edu (Postfix, from userid 1000) id A1D244E3F9; Fri, 29 Feb 2008 13:49:44 -0500 (EST) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:90902 Archived-At: Hi Kim, > Joe Wells writes: > > An overlay's after-string property is not displayed if an immediately > following overlay has the empty string as its display property. To reproduce: (progn (if (get-buffer "*test*") (kill-buffer "*test*")) (pop-to-buffer "*test*") (erase-buffer) (insert "ABCD") (let ((o1 (make-overlay 2 3)) (o2 (make-overlay 3 4))) (overlay-put o1 'after-string "1") (overlay-put o2 'display ""))) This bug seems to have been introduced by the following change. It's pretty long ago, but do you remember why this change was made, and what implications where could be for reverting it? 2005-05-16 Kim F. Storm * xdisp.c (handle_display_prop): Handle empty replacement. (handle_single_display_spec): Return -1 for empty replacement.