[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Introduce "killed" state for xwidgets (Re: shr using `make-xwidget'
From: |
Po Lu |
Subject: |
Re: Introduce "killed" state for xwidgets (Re: shr using `make-xwidget' incorrectly) |
Date: |
Thu, 11 Nov 2021 17:28:09 +0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) |
Eli Zaretskii <eliz@gnu.org> writes:
>> 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?
When the buffer is killed, all of its xwidgets are killed first, which
means XXWIDGET (object)->buffer will always be nil in that case.
Thanks.
- Re: shr using `make-xwidget' incorrectly, (continued)
- Re: shr using `make-xwidget' incorrectly, Lars Ingebrigtsen, 2021/11/10
- Re: shr using `make-xwidget' incorrectly, Po Lu, 2021/11/10
- Re: shr using `make-xwidget' incorrectly, Lars Ingebrigtsen, 2021/11/10
- Re: shr using `make-xwidget' incorrectly, Po Lu, 2021/11/11
- Re: shr using `make-xwidget' incorrectly, Lars Ingebrigtsen, 2021/11/11
- Re: shr using `make-xwidget' incorrectly, Po Lu, 2021/11/11
- Re: shr using `make-xwidget' incorrectly, Lars Ingebrigtsen, 2021/11/11
- Re: shr using `make-xwidget' incorrectly, Po Lu, 2021/11/11
- Introduce "killed" state for xwidgets (Re: shr using `make-xwidget' incorrectly), Po Lu, 2021/11/11
- Re: Introduce "killed" state for xwidgets (Re: shr using `make-xwidget' incorrectly), Eli Zaretskii, 2021/11/11
- Re: Introduce "killed" state for xwidgets (Re: shr using `make-xwidget' incorrectly),
Po Lu <=
- Re: Introduce "killed" state for xwidgets (Re: shr using `make-xwidget' incorrectly), Lars Ingebrigtsen, 2021/11/11
- Re: Introduce "killed" state for xwidgets (Re: shr using `make-xwidget' incorrectly), Po Lu, 2021/11/11
- Re: Introduce "killed" state for xwidgets (Re: shr using `make-xwidget' incorrectly), Eli Zaretskii, 2021/11/11
- Re: Introduce "killed" state for xwidgets (Re: shr using `make-xwidget' incorrectly), Po Lu, 2021/11/11
- Re: shr using `make-xwidget' incorrectly, Eli Zaretskii, 2021/11/11