all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@stupidchicken.com>
To: "Kim F. Storm" <storm@cua.dk>
Cc: Joe Wells <jbw@macs.hw.ac.uk>, emacs-devel@gnu.org
Subject: Re: interactions between after-string and display properties
Date: Fri, 29 Feb 2008 13:49:44 -0500	[thread overview]
Message-ID: <87lk53iomv.fsf@stupidchicken.com> (raw)

Hi Kim,

> Joe Wells <jbw@macs.hw.ac.uk> 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  <storm@cua.dk>

	* xdisp.c (handle_display_prop): Handle empty replacement.
	(handle_single_display_spec): Return -1 for empty replacement.




             reply	other threads:[~2008-02-29 18:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-29 18:49 Chong Yidong [this message]
2008-02-29 23:21 ` interactions between after-string and display properties Kim F. Storm

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lk53iomv.fsf@stupidchicken.com \
    --to=cyd@stupidchicken.com \
    --cc=emacs-devel@gnu.org \
    --cc=jbw@macs.hw.ac.uk \
    --cc=storm@cua.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.