unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Invisibility bug: `invisible' vs `display'
@ 2007-02-12 19:00 Daniel Brockman
  2007-02-12 20:39 ` Daniel Brockman
  2007-02-12 23:46 ` Chong Yidong
  0 siblings, 2 replies; 20+ messages in thread
From: Daniel Brockman @ 2007-02-12 19:00 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 11 bytes --]

Try this:


[-- Attachment #2: Type: application/x-emacs-lisp, Size: 988 bytes --]

[-- Attachment #3: Type: text/plain, Size: 1078 bytes --]


The test inserts the following text:

   A: *
   B: ?
   C: *?
   D: ?*
   E: *?*
   F: ?*?
   G: ??

The `*' and `?' characters have `invisibile' properties
with a value of `t', so I expect to see none of them.

The `?' characters all have `display' properties with a
value of "!" (one of them has "$" instead, for clarity).
This, I believe, _should_ be irrelevant.

In other words, I expect to see the following:

   A:
   B:
   C:
   D:
   E:
   F:
   G:

The actual result I get is this:

   A:
   B: ?
   C:
   D: ?
   E:
   F: ?
   G: ?!

Those exclamation marks should not be there.  What they all
have in common is that none of them are preceded by
invisible characters _without_ `display' properties.

That is, a character with both `invisible' and `display'
properties appears to display correctly (i.e., not at all)
if and only if it is preceded by an invisible character
without a `display' property.

I get the same (AFAICS) erroneous results if I put an image
or some space instead of a string on the `display' property.

-- 
Daniel Brockman <daniel@brockman.se>

[-- Attachment #4: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

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

end of thread, other threads:[~2007-02-23 13:23 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2007-02-22 17:08               ` Kim F. Storm

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).