From: Richard Stallman <rms@gnu.org>
To: Joe Wells <jbw@macs.hw.ac.uk>
Cc: emacs-devel@gnu.org
Subject: Re: before-string property has no effect if display property is empty string
Date: Sun, 23 Sep 2007 05:07:41 -0400 [thread overview]
Message-ID: <E1IZNRF-0002AR-06@fencepost.gnu.org> (raw)
In-Reply-To: <86tzpp9r51.fsf@macs.hw.ac.uk> (message from Joe Wells on Thu, 20 Sep 2007 18:35:22 +0100)
I don't believe in "documenting bugs". Bugs should be fixed,
not treated as permanent.
Would someone please debug this?
The documentation leads me to believe that the before-string and
display properties of an overlay should be orthogonal. However, the
before-string is not displayed if the display property is the empty
string.
Reproduce by evaluating this code:
(let ((buf (get-buffer-create "foo")))
(with-current-buffer buf
(display-buffer buf)
(erase-buffer)
(dolist (o (overlays-in (point-min) (point-max)))
(delete-overlay o))
(insert "ABC")
(let ((o (make-overlay 2 3))
(s (make-string 3 ?X)))
(overlay-put o 'display "")
(overlay-put o 'before-string s))))
You will see the foo window pop up and in the window you will see
AC. I expected that instead AXXXC would be shown.
> Does the same happen for the after-string?
It works fine with after-string.
prev parent reply other threads:[~2007-09-23 9:07 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-18 21:57 before-string property has no effect if display property is empty string Joe Wells
2007-09-19 15:48 ` Richard Stallman
2007-09-19 16:07 ` Joe Wells
2007-09-20 16:34 ` Richard Stallman
2007-09-20 17:35 ` Joe Wells
2007-09-23 9:07 ` Richard Stallman [this message]
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=E1IZNRF-0002AR-06@fencepost.gnu.org \
--to=rms@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=jbw@macs.hw.ac.uk \
/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.