all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Werner LEMBERG <wl@gnu.org>
Cc: 3400@emacsbugs.donarmstrong.com
Subject: bug#3400: bug in add-text-properties
Date: Thu, 28 May 2009 22:05:30 -0400	[thread overview]
Message-ID: <jwvprdsmzyr.fsf-monnier+emacsbugreports@gnu.org> (raw)
In-Reply-To: <20090528.234833.147211632.wl@gnu.org> (Werner LEMBERG's message of "Thu, 28 May 2009 23:48:33 +0200 (CEST)")

>> If you hit `b', the `b' will be inserted right before "12345", and it
>> will not be invisible.
> So what?  With `C-x =' I see `A' and get the data of `1',

Point is at position 1 (i.e. just before the char "1" rather than
before the char "A"), so it makes sense for C-h = to return data about
that position rather than about some other position one line down.

Also it makes sense to draw the cursor over the "A" because there's
nowhere else to draw it.  Basically, since the chars "12345\n" are
invisible and intangible, the display should pretend they don't exist,
but C-x = is designed to show you the actual underlying data.

> Actually, there is no way to retrieve information from `A' at all.

Your `intangible' span basically requests "12345\nA" to be treated as one
indivisible entity, so it's indeed difficult to get info about most of
those individual chars.

>> BTW, why are you using `intangible'?
> I've just copied some code -- I haven't checked whether I can omit it.

First things first: if you're not 200% sure you absolutely need
`intangible', then don't use it.  It's a nasty beast.


        Stefan





  reply	other threads:[~2009-05-29  2:05 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-27  5:26 bug#3400: bug in add-text-properties Werner LEMBERG
2009-05-28 15:15 ` martin rudalics
2009-05-28 16:26   ` Werner LEMBERG
2009-05-28 17:12     ` martin rudalics
2009-05-28 18:28     ` Stefan Monnier
2009-05-28 21:48       ` Werner LEMBERG
2009-05-29  2:05         ` Stefan Monnier [this message]
2009-05-29  7:00           ` Werner LEMBERG
2009-05-29 13:24             ` Lennart Borgman
2009-05-29 14:51               ` Drew Adams
2009-05-29 15:01             ` Stefan Monnier
2009-05-29 15:20               ` Werner LEMBERG
2009-05-29 16:08                 ` Stefan Monnier
2009-05-29 16:47                   ` martin rudalics
2009-05-30  5:51                     ` Werner LEMBERG
2009-05-30 10:12                       ` martin rudalics
2009-05-30  7:01                   ` Werner LEMBERG
2009-05-30 10:01                     ` Stephen Berman
2016-07-27 22:07                       ` Nicolas Petton
2016-07-29  2:26                         ` npostavs
2022-04-22 12:59                           ` bug#3400: Let C-x = show info about visible and invisible text near point Lars Ingebrigtsen

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=jwvprdsmzyr.fsf-monnier+emacsbugreports@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=3400@emacsbugs.donarmstrong.com \
    --cc=wl@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.