From: Eli Zaretskii <eliz@gnu.org>
To: "Clément Pit-Claudel" <clement.pitclaudel@gmail.com>
Cc: larsi@gnus.org, 4911@debbugs.gnu.org
Subject: bug#4911: mouse-face property should merge face attributes, not replace
Date: Fri, 08 May 2020 17:39:22 +0300 [thread overview]
Message-ID: <83a72iij8l.fsf@gnu.org> (raw)
In-Reply-To: <dd1fba2d-4921-8f56-0f51-5ef276e32ec7@gmail.com> (message from Clément Pit-Claudel on Mon, 4 May 2020 11:16:05 -0400)
> Cc: drew.adams@oracle.com, 4911@debbugs.gnu.org, larsi@gnus.org
> From: Clément Pit-Claudel <clement.pitclaudel@gmail.com>
> Date: Mon, 4 May 2020 11:16:05 -0400
>
> Currently we cache a single realized mouse_face. Could we cache a sequence of such realized faces instead, attached to regions of text? That is, we'd compute the realized mouse-face for all regions of the current span, and cache that. Concretely, I guess this would mean enhancing Mouse_HLInfo to keep a list of spans instead of a single one.
I'm not sure I understand what you mean by "span" in general and
"current span" in particular.
We could, of course, realize such combinations. It would need:
. realizing and caching 2 faces whenever we render some text which
has a mouse-face property;
. recording the buffer positions to which those realized mouse-faces
are relevant; and
. using the corresponding face when redrawing the highlighted
portions of text by looking at the positions of each of the
affected glyphs (which might be complicated if the text doesn't
come from a buffer)
next prev parent reply other threads:[~2020-05-08 14:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-12 12:41 bug#4911: mouse-face property should merge face attributes, not replace Dave Aspinall
2019-10-01 14:08 ` Lars Ingebrigtsen
2019-10-01 14:36 ` Basil L. Contovounesios
2019-10-01 15:00 ` Eli Zaretskii
2019-10-01 15:14 ` Lars Ingebrigtsen
2019-10-01 16:46 ` Drew Adams
2020-04-10 16:26 ` Clément Pit-Claudel
2020-04-25 21:22 ` Clément Pit-Claudel
2020-04-25 22:13 ` Drew Adams
2020-04-26 3:10 ` Clément Pit-Claudel
2020-04-26 13:34 ` Eli Zaretskii
2020-05-04 15:16 ` Clément Pit-Claudel
2020-05-08 14:39 ` Eli Zaretskii [this message]
2020-05-08 15:01 ` Clément Pit-Claudel
2020-05-08 15:20 ` Eli Zaretskii
2020-05-08 15:58 ` Clément Pit-Claudel
2020-04-26 17:22 ` Drew Adams
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=83a72iij8l.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=4911@debbugs.gnu.org \
--cc=clement.pitclaudel@gmail.com \
--cc=larsi@gnus.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.