From: Daniel Brockman <daniel@brockman.se>
To: emacs-devel@gnu.org
Subject: Re: Invisibility bug: `invisible' vs `display'
Date: Fri, 23 Feb 2007 14:23:34 +0100 [thread overview]
Message-ID: <87y7mp6m95.fsf@wigwam.brockman.se> (raw)
In-Reply-To: 85irdtdfnp.fsf@lola.goethe.zz
David Kastrup <dak@gnu.org> writes:
> Daniel Brockman <daniel@brockman.se> writes:
>
>> David Kastrup <dak@gnu.org> writes:
>>
>>> They apply to the region between its buffer positions. Which is
>>> usually pretty similar to "characters under the overlay". But
>>> zero-length overlays exist and work, too, and when copying text
>>> from a buffer, overlay properties are not copied as part of the
>>> text.
>>
>> I can't get zero-length overlays to display anything using
>> the `display' property. Here's what I'm doing:
>>
>> (overlay-put (make-overlay (point) (point)) 'display "foo")
>
> Hm. Weird. It works using before-string and after-string, though.
> Looking at preview-latex, it actually moves stuff from 'display to
> 'before-string in the zero-length case.
Okay. However --- and I guess for the record, --- I can't
see that the display patch affects this in any way.
(progn
(insert "foo")
(overlay-put (make-overlay (point) (point)) 'after-string "bar")
(insert (propertize "baz" 'invisible t))
The above displays the same with and without the patch.
Likewise for `before-string'.
> This can probably can well be considered a bug, but it is a bug that
> has been around for eternities, so we are not going to win much
> applause trying to fix it before the release.
>
> Afterwards, however, should be a good time to tackle this
> inconsistency along with the others.
I agree that it could be considered a bug.
--
Daniel Brockman <daniel@brockman.se>
next prev parent reply other threads:[~2007-02-23 13:23 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-02-12 19:00 Invisibility bug: `invisible' vs `display' Daniel Brockman
2007-02-12 20:39 ` Daniel Brockman
2007-02-12 23:46 ` Chong Yidong
2007-02-13 1:09 ` Daniel Brockman
2007-02-13 7:13 ` David Kastrup
2007-02-13 14:59 ` Daniel Brockman
2007-02-22 2:57 ` Daniel Brockman
2007-02-22 11:27 ` Kim F. Storm
2007-02-22 11:42 ` David Kastrup
2007-02-22 13:22 ` Daniel Brockman
2007-02-22 13:38 ` David Kastrup
2007-02-22 14:15 ` Daniel Brockman
2007-02-22 17:19 ` Johan Bockgård
2007-02-22 17:37 ` David Kastrup
2007-02-22 20:39 ` Daniel Brockman
2007-02-22 21:00 ` David Kastrup
2007-02-22 21:23 ` Daniel Brockman
2007-02-22 21:51 ` David Kastrup
2007-02-23 13:23 ` Daniel Brockman [this message]
2007-02-22 17:08 ` 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=87y7mp6m95.fsf@wigwam.brockman.se \
--to=daniel@brockman.se \
--cc=emacs-devel@gnu.org \
/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.