GNU bug report logs - #25856
25.1; after-string of overlay may not be displayed

Previous Next

Package: emacs;

Reported by: ynyaaa <at> gmail.com

Date: Fri, 24 Feb 2017 06:20:01 UTC

Severity: normal

Tags: notabug

Found in version 25.1

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #7 received at control <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: ynyaaa <at> gmail.com
Cc: 25856-done <at> debbugs.gnu.org
Subject: Re: bug#25856: 25.1; after-string of overlay may not be displayed
Date: Fri, 24 Feb 2017 10:34:17 +0200
tags 25856 notabug
thanks

> From: ynyaaa <at> gmail.com
> Date: Fri, 24 Feb 2017 15:19:06 +0900
> 
> Evaluating the form below, I expect to see 4 <BeforeAfter>.
> It displays 3 <Before> and 1 <BeforeAfter>.
> If before-string is not specified, 4 <After> are displayed.
> 
> (dotimes (i 4)
>   (let ((p (point)) ol)
>     (insert "<HIDDEN>\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.




This bug report was last modified 8 years and 89 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.