[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SVG widget in GNU Emacs
From: |
Po Lu |
Subject: |
Re: SVG widget in GNU Emacs |
Date: |
Wed, 20 Oct 2021 21:17:29 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
> Here's an example:
>
> static int
> scrolling_window (struct window *w, int tab_line_p)
> {
> ...
> #ifdef HAVE_XWIDGETS
> /* Currently this seems needed to detect xwidget movement reliably.
> This is most probably because an xwidget glyph is represented in
> struct glyph's 'union u' by a pointer to a struct, which takes 8
> bytes in 64-bit builds, and thus the comparison of u.val values
> done by GLYPH_EQUAL_P doesn't work reliably, since it assumes the
> size of the union is 4 bytes. FIXME. */
> return 0;
> #endif
> This disables one of the more important display optimizations in an
> Emacs compiled with xwidgets support.
Thanks. Since I can't work on this right now, I'd like to ask if
changing the field `val' from `unsigned' to `void *' would work to
resolve this particular issue.
> Apart of the above, just look at xwidget.c and xwidget.el, and you
> will see the FIXMEs, the incomplete doc strings, and other stuff left
> unfinished. The idea was that those will get finished once the
> feature is in the sources, but unfortunately it didn't happen.
Indeed, I see your point. Thanks.
I will probably work on this once I get the time.
- SVG widget in GNU Emacs, Anand Tamariya, 2021/10/19
- Re: SVG widget in GNU Emacs, Po Lu, 2021/10/19
- Re: SVG widget in GNU Emacs, Eli Zaretskii, 2021/10/20
- Re: SVG widget in GNU Emacs, Po Lu, 2021/10/20
- Re: SVG widget in GNU Emacs, Eli Zaretskii, 2021/10/20
- Re: SVG widget in GNU Emacs,
Po Lu <=
- Re: SVG widget in GNU Emacs, Eli Zaretskii, 2021/10/20
- Re: SVG widget in GNU Emacs, Akira Kyle, 2021/10/26
- GUI and redisplay work (was: SVG widget in GNU Emacs), Stefan Monnier, 2021/10/26
- Re: GUI and redisplay work (was: SVG widget in GNU Emacs), Stefan Kangas, 2021/10/26
- Re: GUI and redisplay work (was: SVG widget in GNU Emacs), Eli Zaretskii, 2021/10/26
- Re: GUI and redisplay work (was: SVG widget in GNU Emacs), Eli Zaretskii, 2021/10/26
- Re: GUI and redisplay work (was: SVG widget in GNU Emacs), Alexandre Garreau, 2021/10/27
- Re: GUI and redisplay work (was: SVG widget in GNU Emacs), tomas, 2021/10/27
- Re: GUI and redisplay work (was: SVG widget in GNU Emacs), Alexandre Garreau, 2021/10/27
- Re: GUI and redisplay work, Arthur Miller, 2021/10/29