From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25856: 25.1; after-string of overlay may not be displayed Date: Fri, 24 Feb 2017 10:34:17 +0200 Message-ID: <83r32ornqu.fsf@gnu.org> References: <8760k0nmat.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1487925415 12604 195.159.176.226 (24 Feb 2017 08:36:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 24 Feb 2017 08:36:55 +0000 (UTC) Cc: 25856-done@debbugs.gnu.org To: ynyaaa@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 24 09:36:48 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chBMm-0002EN-Om for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 09:36:40 +0100 Original-Received: from localhost ([::1]:35468 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chBMs-0005ik-GO for geb-bug-gnu-emacs@m.gmane.org; Fri, 24 Feb 2017 03:36:46 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chBMD-0005J3-Lc for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 03:36:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chBMA-0001g6-Hu for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 03:36:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:55326) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1chBMA-0001ft-En for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 03:36:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1chBMA-0000cd-9F for bug-gnu-emacs@gnu.org; Fri, 24 Feb 2017 03:36:02 -0500 Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Fri, 24 Feb 2017 08:36:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 25856 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: notabug Mail-Followup-To: 25856@debbugs.gnu.org, eliz@gnu.org, ynyaaa@gmail.com Original-Received: via spool by 25856-done@debbugs.gnu.org id=D25856.14879253042324 (code D ref 25856); Fri, 24 Feb 2017 08:36:02 +0000 Original-Received: (at 25856-done) by debbugs.gnu.org; 24 Feb 2017 08:35:04 +0000 Original-Received: from localhost ([127.0.0.1]:53524 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chBLE-0000bQ-Ix for submit@debbugs.gnu.org; Fri, 24 Feb 2017 03:35:04 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:49919) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1chBLC-0000aa-Ap for 25856-done@debbugs.gnu.org; Fri, 24 Feb 2017 03:35:02 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1chBL4-0001S4-6M for 25856-done@debbugs.gnu.org; Fri, 24 Feb 2017 03:34:57 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:52099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1chBKv-0001RI-H7; Fri, 24 Feb 2017 03:34:45 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1252 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1chBKu-0007Y8-LX; Fri, 24 Feb 2017 03:34:45 -0500 In-reply-to: <8760k0nmat.fsf@gmail.com> (ynyaaa@gmail.com) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129721 Archived-At: tags 25856 notabug thanks > From: ynyaaa@gmail.com > Date: Fri, 24 Feb 2017 15:19:06 +0900 > > Evaluating the form below, I expect to see 4 . > It displays 3 and 1 . > If before-string is not specified, 4 are displayed. > > (dotimes (i 4) > (let ((p (point)) ol) > (insert "\n") > (setq ol (make-overlay (1+ p) (- (point) 2))) > (cond ((= i 0) (overlay-put ol 'display "")) > ((= i 1) (overlay-put ol 'invisible t)) > ((= i 2) (put-text-property (1+ p) (- (point) 2) 'display "")) > ((= i 3) (put-text-property (1+ p) (- (point) 2) 'invisible t))) > (overlay-put ol 'before-string "Before") > (overlay-put ol 'after-string "After") > (overlay-put ol 'evaporate t))) I don't see any bug here. You are making text disappear using different methods, and each one has its implications wrt before- and after-string.