From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Jambunathan K <kjambunathan@gmail.com>
Cc: 15312@debbugs.gnu.org
Subject: bug#15312: Info (point-entered, point-left): Doc incomplete, hence incorrect
Date: Fri, 13 Sep 2013 09:12:49 -0400 [thread overview]
Message-ID: <jwvd2ocri0x.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <87vc25z1pe.fsf@gmail.com> (Jambunathan K.'s message of "Fri, 13 Sep 2013 11:45:57 +0530")
> ,---- (info "(elisp) Not Intervals")
> | "What are the properties of this character?" So we have decided these
> | are the only questions that make sense; we have not implemented asking
> | questions about where intervals start or end.
> `----
We should indeed amend the above: while text-properties indeed only
apply to individual characters, and are not intervals (contrary to
overlays), there are several places where we consider runs of
consecutive characters that share the same property value (and more
specifically, we use `eq' as the equality predicate in those cases).
This is the case for example for `mouse-face' since we don't just want
to highlight the character under the mouse.
It's also the case for point-entered/left, otherwise "entering/leaving"
is kind of meaningless (remember that point is never in/on a character,
but always between 2 characters).
It can be important to know how the boundaries of such regions is
determined (i.e. by checking `eq'uality of property value of consecutive
characters), since it is sometimes necessary to copy such a value in
order to explicitly split such an "interval" (e.g. if two consecutive
words need to use `mouse-face' with the same face, but where the two
words should not be highlighted together).
Other than the above 3 properties, I also know of `display',
`font-lock-multiline', and `jit-lock-defer-multiline' behaving in
this way. Any other?
I think rather than "intervals", we could call those "runs".
Stefan
next prev parent reply other threads:[~2013-09-13 13:12 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-09 13:34 bug#15312: Info (point-entered, point-left): Doc incomplete, hence incorrect Jambunathan K
2013-09-09 16:37 ` Eli Zaretskii
2013-09-10 3:33 ` Jambunathan K
2013-09-10 3:40 ` Jambunathan K
2013-09-10 15:18 ` Eli Zaretskii
2013-09-11 9:55 ` Jambunathan K
2013-09-11 13:42 ` Eli Zaretskii
2013-09-13 5:22 ` Jambunathan K
2013-09-13 6:15 ` Jambunathan K
2013-09-13 8:02 ` Eli Zaretskii
2013-09-13 10:28 ` Jambunathan K
2013-09-13 13:12 ` Stefan Monnier [this message]
2013-09-13 13:29 ` Eli Zaretskii
2013-09-13 15:15 ` Stefan Monnier
2013-09-13 15:59 ` Eli Zaretskii
2013-09-13 16:28 ` Stefan Monnier
2013-09-13 16:42 ` Jambunathan K
2013-09-13 16:45 ` Eli Zaretskii
2013-09-13 17:18 ` Stefan Monnier
2013-09-13 19:26 ` Eli Zaretskii
2013-09-13 20:32 ` Stefan Monnier
2013-09-14 6:48 ` Eli Zaretskii
2013-09-16 16:15 ` Stefan Monnier
2013-09-16 17:10 ` Eli Zaretskii
2013-09-13 16:20 ` Jambunathan K
2013-09-13 16:43 ` Eli Zaretskii
2013-09-13 17:19 ` Stefan Monnier
2013-09-13 19:27 ` Eli Zaretskii
2013-09-13 20:35 ` Stefan Monnier
2013-09-14 6:50 ` Eli Zaretskii
2013-09-13 8:03 ` Eli Zaretskii
2013-09-14 6:35 ` Jambunathan K
2013-11-15 5:04 ` Jambunathan K
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=jwvd2ocri0x.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=15312@debbugs.gnu.org \
--cc=kjambunathan@gmail.com \
/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.