emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Introduce "killed" state for xwidgets (Re: shr using `make-xwidget'


From: Eli Zaretskii
Subject: Re: Introduce "killed" state for xwidgets (Re: shr using `make-xwidget' incorrectly)
Date: Thu, 11 Nov 2021 09:59:15 +0200

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Thu, 11 Nov 2021 14:37:49 +0800
> 
> +DEFUN ("xwidget-live-p", Fxwidget_live_p, Sxwidget_live_p,
> +       1, 1, 0, doc: /* Return t if OBJECT is an xwidget that has not been 
> killed.
> +Value is nil if OBJECT is not an xwidget or if it has been killed.  */)
> +  (Lisp_Object object)
> +{
> +  return ((XWIDGETP (object)
> +        && !NILP (XXWIDGET (object)->buffer))
> +       ? Qt : Qnil);
> +}

What if the xwidget's buffer was itself killed? should this also test
that situation?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]