GNU bug report logs - #72848
[PATCH RESEND] xwidget: Fix xwidget-at misinterpreting non-xwidget text-properties

Previous Next

Package: emacs;

Reported by: George Huebner <george <at> feyor.sh>

Date: Wed, 28 Aug 2024 01:05:02 UTC

Severity: normal

Tags: patch

Merged with 72104

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 72848-done <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: George Huebner <george <at> feyor.sh>
Cc: 72848-done <at> debbugs.gnu.org
Subject: Re: bug#72848: [PATCH RESEND] xwidget: Fix xwidget-at misinterpreting
 non-xwidget text-properties
Date: Thu, 29 Aug 2024 15:13:58 +0300
> From: George Huebner <george <at> feyor.sh>
> Date: Tue, 27 Aug 2024 20:03:44 -0500
> 
> xwidget-at assumes the text-property at `point-min` either doesn't
> exist or is an xwidget, and can improperly access fields. This 
> patch
> just returns nil if the text-property isn't an xwidget.
> 
> This is definitely an edge case; I use a package called org-modern
> where headlines are formatted with text-properties, which is how I
> found the bug:
> Debugger entered--Lisp error: (wrong-type-argument listp #("◉" 0 1
> (face org-modern-symbol)))
>  xwidget-at(1)
>  xwidget-webkit-current-session()

Thanks, installed on the emacs-30 branch, and closing the bug.




This bug report was last modified 85 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.