unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* invisible&after-string of overlay
@ 2003-11-11  0:47 Kenichi Handa
  2003-11-12  2:30 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Kenichi Handa @ 2003-11-11  0:47 UTC (permalink / raw)
  Cc: mule-ja

I've got a bug report about the combination of invisible and
after-string properties of an overlay.

Please evaluate this in *scratch* buffer.

(save-excursion
  (goto-char (point-min))
  (insert "123\n")
  (let ((o1 (make-overlay 1 2))
	(o2 (make-overlay 2 3)))
    (overlay-put o1 'invisible t)
    (overlay-put o1 'evaporate t)
    (overlay-put o1 'after-string "A")
    (overlay-put o2 'invisible t)
    (overlay-put o2 'evaporate t)
    (overlay-put o2 'after-string "B")))

Emacs 21.3 and HEAD displays "B3" in the first line, but
Emacs 20.7 displays "AB3".  It seems that the latter is
correct.  Is it a feature change or a bug?

---
Ken'ichi HANDA
handa@m17n.org

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: invisible&after-string of overlay
  2003-11-11  0:47 invisible&after-string of overlay Kenichi Handa
@ 2003-11-12  2:30 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2003-11-12  2:30 UTC (permalink / raw)
  Cc: mule-ja, emacs-devel

    I've got a bug report about the combination of invisible and
    after-string properties of an overlay.

    Emacs 21.3 and HEAD displays "B3" in the first line, but
    Emacs 20.7 displays "AB3".  It seems that the latter is
    correct.  Is it a feature change or a bug?

I think it is a bug.  The two overlays cover different pieces of text,
so one does not override the other.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-11-12  2:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-11  0:47 invisible&after-string of overlay Kenichi Handa
2003-11-12  2:30 ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).