'xwidget-open' wrongly assumed the the text-property at
min-position is an xwidget, if it exists; the fix is just
returning nil if the text-property isn't an xwidget.
* lisp/xwidget.el (xwidget-at): Use 'ignore-errors'. (Bug#72848)
Copyright-paperwork-exempt: yes
(cherry picked from commit
d05d8c336c82457dcad3b924b19c3bb57ff0e791)
(defun xwidget-at (pos)
"Return xwidget at POS."
(let* ((disp (get-text-property pos 'display))
- (xw (car (cdr (cdr disp)))))
+ (xw (ignore-errors (car (cdr (cdr disp))))))
(when (xwidget-live-p xw) xw)))