GNU bug report logs -
#51473
[PATCH] Enable xwidget scrolling optimizations, and other xwidgets improvements
Previous Next
Reported by: Po Lu <luangruo <at> yahoo.com>
Date: Fri, 29 Oct 2021 04:32:01 UTC
Severity: normal
Tags: patch
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #109 received at 51473 <at> debbugs.gnu.org (full text, mbox):
> From: Po Lu <luangruo <at> yahoo.com>
> Cc: Eli Zaretskii <eliz <at> gnu.org>, 51473 <at> debbugs.gnu.org
> Date: Sun, 07 Nov 2021 08:41:15 +0800
>
> Lars Ingebrigtsen <larsi <at> gnus.org> writes:
>
> > I can test both, but it'd be easier to test if it was just one huge
> > patch. (When applying for real, we can apply the patch series.) So can
> > you post this series as one patch?
>
> Thanks, here you go.
> --- a/src/print.c
> +++ b/src/print.c
> @@ -1521,8 +1521,20 @@ print_vectorlike (Lisp_Object obj, Lisp_Object printcharfun, bool escapeflag,
> printchar ('>', printcharfun);
> break;
>
> - case PVEC_XWIDGET: case PVEC_XWIDGET_VIEW:
> - print_c_string ("#<xwidget ", printcharfun);
> + case PVEC_XWIDGET:
> +#ifdef HAVE_XWIDGETS
> + {
> + int len = sprintf (buf, "#<xwidget %u %p>",
> + XXWIDGET (obj)->xwidget_id,
> + XXWIDGET (obj)->widget_osr);
> + strout (buf, len, len, printcharfun);
> + break;
> + }
The printed representation of xwidget objects should be documented in
the ELisp manual, under the "Editing Types" section. In fact, we lack
a subsection there for xwidgets; it should be added.
Thanks.
This bug report was last modified 3 years and 248 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.