all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Daniel Brockman <daniel@brockman.se>
To: emacs-devel@gnu.org
Subject: Invisibility bug: `invisible' vs `display'
Date: Mon, 12 Feb 2007 20:00:11 +0100	[thread overview]
Message-ID: <87sldbtd50.fsf@wigwam.brockman.se> (raw)

[-- 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

             reply	other threads:[~2007-02-12 19:00 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-12 19:00 Daniel Brockman [this message]
2007-02-12 20:39 ` Invisibility bug: `invisible' vs `display' 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

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=87sldbtd50.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.