[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: SVG widget in GNU Emacs
From: |
Eli Zaretskii |
Subject: |
Re: SVG widget in GNU Emacs |
Date: |
Wed, 20 Oct 2021 16:08:09 +0300 |
> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org, atamariya@gmail.com
> Date: Wed, 20 Oct 2021 20:48:15 +0800
>
> Eli Zaretskii <eliz@gnu.org> writes:
>
> > From my POV, the xwidget feature is incomplete and not maintained very
> > well. As long as this is the case, extending such an incomplete
> > feature is waste of our resources.
>
> I'm not sure I understand why the xwidget feature would be incomplete.
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.
> It seems to work OK for what it is currently intended to do: display web
> content in an Emacs buffer.
>
> But I'm probably missing something here. Could you please elaborate
> further? Thanks.
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.
- 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 <=
- 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, 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