From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Handle sharing Cocoa xwidgets more gracefully Date: Tue, 04 Oct 2022 10:41:36 +0800 Message-ID: <871qro1fa7.fsf@yahoo.com> References: <87zgec1lik.fsf@yahoo.com> <5FE28BCB-F5B8-4C37-868A-53DA70638C71@daum.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6959"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: Emacs developers To: Sungbin Jo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 04 04:43:19 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ofXtv-0001ix-0z for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Oct 2022 04:43:19 +0200 Original-Received: from localhost ([::1]:44228 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofXts-0002ha-95 for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Oct 2022 22:43:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57926) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofXsV-0001zj-4J for emacs-devel@gnu.org; Mon, 03 Oct 2022 22:41:51 -0400 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]:35724) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ofXsT-0004Aj-4A for emacs-devel@gnu.org; Mon, 03 Oct 2022 22:41:50 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664851304; bh=v6p7/espBorU6p/5cPqsMLlVcabPwg2pDbHDgr+qKRg=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=aSCp35rDjqDgYLkpZuFnxtraR8/x/MyzWD/uM1wCxtx9KvoBkemQpljkRYuDlfbfwFeyoYLBzzOD/5jc3H4Cc1xrRtI5wMUTZ6/YdhvkvAdwCK5G3g+dSxaKufYj0HOfAR/CFYbIc+7ktZ/9rzSYi9o/Pt1JnVRTToZMjAA7byBU62qiekfQd/I1S3VqdfmGX82gfNVTpr5mkE/9e/iJPKeEanf3vXCy4JlX7K/IGpy8pD2Tp9TNARlk7rQiJ6JaIguIWDiSzoTQ+ZFJnYb2tPmvkgeYp8ru4UtiHqr+EVZ+wCRoZfYBDeCkOjKBtAhWwYZWCHW56iXHbHcvXd9mkw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1664851304; bh=E0HJ6Z6PfTyU6QwgOGFjZghIpeOSbkeXKUE/Wqo2MCy=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=N+BrA8w/2NCqF4GXddrUtaJLjoqtpiJso28oJs9QMTGAxEBy4opqGzSoKL7MQ7zpkHFs813uKbeEaKM28eTLYeSvAfgnQ3REVOKHpbN7P7kaK9RJX1w4ED9FUn+P/IQcf49E//YtaP17yFg3mRPmksXHlm4PbHbuaM2uSYBAiLyqN6B46uZs1D678NgSwtFBy+R2rcs5P+mMStwUCmWVk9lHt5EnBMKw5yAoxCDpW47voNlTHgTx0WAVQF0a27rh7OPQlahdtnvm10BNKCi3XBwo1d8xDRpOO1bNinwdJ8D5gXyMyVCqsiMMz9TBZs85ONRjNu+7G5RO6FnOedGFhw== X-YMail-OSG: hBMCeXMVM1l8xTTtaSepxALm0CmS83VFR_kuSsSApLQWTy6QBju6.6wvc0lqxp0 vwOu8TtlW_CQCzCB6kOHX82N7PEYZ5WDdceBOhf_aFncrGK0So8FQbXwQUhv.lCZiUu4TERlfNwb HmHG6ayqQ2sENTespZRTjCS3RUCcUHVtEniBA4uiTwjKffUHd7xhLkZ6YfjD0XwiFhfPF.g2B5M2 BD10WAyCfnmgrkIjH6fj4OO4BA_niApnbLorVNHTXUMOs4cRpcud3mwnlk_8_WIRVtP.MQQK_YOO vRtRM6f9pyAjGjmKt17xovhXuMUvd0Moo5C6aOLgciA7tzbdXt.FWCREeRiU01JTCvudItCqy8SN UXI4k7QCEZKnLJkoPLgqqY5h_FYXzCQ5FYTyW4FnGoH7Lm8svSTeWujub.ELfKIddeZb6UAJ1ZTC 6kDTyzmpxn0Ufm3VbzUzv.rr_qKLPjuTlPFNX8BZrWsyRkK2memea1uVTKflq3MOVfFM8ysF1Dy3 0zzVg_ZKeJKIJc.XHFWvxTZJ.DhqjDDc_hzynYI0o6.c8sXxGrGXuYgy5EvVhF7VTxhn2uLU1IBf Wt7QmrPLXOUCtrK9CQORBvd4WedxxhlvOG6D76DuppWZA.S1w8GQB9F4_.k3lpKpCVtR23XxP3Ko FC8gVYxIbx4UQ8VstH8TtsfKPut.sD3arCw_BJQDNOJ2DEhuH1RqZDQ08fVLH2dM09aqKfPGTKh2 38QBb1MZTP3CFnh_94XMbCZM0KIIj4HGNs4tQL_VKJCpY9Uihq6BZn9AbAVW_AdMxeLK9cfg8sLU wfyVa37kplJyc_nM37v1KBVSvGCjsdTJtjSq4alIVB X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Tue, 4 Oct 2022 02:41:44 +0000 Original-Received: by hermes--production-sg3-cf9dc7f8d-f6dcn (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 2d6453e2aa73571a32c4991ed73a13c2; Tue, 04 Oct 2022 02:41:41 +0000 (UTC) In-Reply-To: <5FE28BCB-F5B8-4C37-868A-53DA70638C71@daum.net> (Sungbin Jo's message of "Tue, 4 Oct 2022 11:03:12 +0900") X-Mailer: WebService/1.1.20702 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.190.33; envelope-from=luangruo@yahoo.com; helo=sonic307-10.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:296832 Archived-At: Sungbin Jo writes: > Are you mentioning the case when the xwidget view is deleted via > =E2=80=98delete-xwidget-view=E2=80=99? If that=E2=80=99s the case, the pa= tch on bug#58271 will > automatically recreate the xwidget view. Can the xwidget itself get > deleted when a referencing xwidget view still exists in a buffer? Yes, the xwidget will be marked as "killed", and the xwidget views created for killed xwidgets should be empty and not reference the native widget. > I found that documentation on various parts of xwidgets were very light; > while the functions related to xwidget views are exposed in elisp, seems > like documentation on them were non-existent. I=E2=80=99m still having a = hard > time understanding on how the xwidget system is designed to interact > (e.g. it seems from the code that one window cannot contain two xwidget > views pointing the same xwidget =E2=80=93 is this a bug or is it working = as > designed?); do you have any pointers on this? That's a known limitation of the current xwidget code, which I intend to resolve at some point.