From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sungbin Jo Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Handle sharing Cocoa xwidgets more gracefully Date: Tue, 4 Oct 2022 11:03:12 +0900 Message-ID: <5FE28BCB-F5B8-4C37-868A-53DA70638C71@daum.net> References: <87zgec1lik.fsf@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.92\)) 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="32332"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Emacs developers To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Oct 04 04:04:42 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 1ofXIY-0008Ew-8a for ged-emacs-devel@m.gmane-mx.org; Tue, 04 Oct 2022 04:04:42 +0200 Original-Received: from localhost ([::1]:38680 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ofXIW-0007sY-P0 for ged-emacs-devel@m.gmane-mx.org; Mon, 03 Oct 2022 22:04:40 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37408) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofXHV-0007AV-T0 for emacs-devel@gnu.org; Mon, 03 Oct 2022 22:03:37 -0400 Original-Received: from mail-smail-vm103.daum.net ([211.231.106.178]:6428 helo=mail-smail-vm103.hanmail.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ofXHT-0001zX-01 for emacs-devel@gnu.org; Mon, 03 Oct 2022 22:03:37 -0400 Original-Received: from dmail-hmailsmtp-ayvm02 ([10.93.109.133]) by mail-smail-vm103.hanmail.net (8.13.8/8.9.1) with SMTP id 29423N36005107; Tue, 4 Oct 2022 11:03:23 +0900 X-Kakaomail-MID: Cl1thQAAD20AAAGDoLvDnAADo6E= X-Hermes-Message-Id: q94B3NNUq839896910 X-Originating-IP: 147.46.174.125 Original-Received: from mail-qpsmtp-vm13 ([10.61.241.143]) by hermes of dmail-hmailsmtp-ayvm02 (10.93.109.133) with ESMTP id q94B3NNUq839896910; Tue, 04 Oct 2022 11:03:23 +0900 (KST) Original-Received: from [147.46.174.125] (HELO smtpclient.apple) (147.46.174.125) by (8.12.9/8.9.1) with ESMTPA; Tue, 04 Oct 2022 11:03:23 +0900 Authentication-Results: mail-qpsmtp-vm13; auth=pass (plain) smtp.auth=goranmoomin@daum.net In-Reply-To: <87zgec1lik.fsf@yahoo.com> X-Mailer: Apple Mail (2.3731.200.92) X-HM-UT: FhzuMO7fDybt1KvIE2LddDOPNRA+bHyTw3HQj6tM3jc= Received-SPF: pass client-ip=211.231.106.178; envelope-from=goranmoomin@daum.net; helo=mail-smail-vm103.hanmail.net X-Spam_score_int: 21 X-Spam_score: 2.1 X-Spam_bar: ++ X-Spam_report: (2.1 / 5.0 requ) BAYES_50=0.8, FREEMAIL_FROM=0.001, RCVD_IN_VALIDITY_RPBL=1.31, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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:296830 Archived-At: > 2022. 10. 4. =EC=98=A4=EC=A0=84 9:26, Po Lu = =EC=9E=91=EC=84=B1: >=20 > Some minor formatting comments on the patch below: Thanks; continuing on the patch itself as bug#58271. > Thanks; since you seem to be the original author of the xwidget code = on > Mac OS, could you please fix the crash there when an xwidget is = deleted > but remains on-screen? 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 = patch 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? I=E2=80=99m unfortunately not *that* knowledgable on xwidget internals; = the very first original patch was written by Jaesup Kwak, I=E2=80=99ve been = slowly expanding my understandings. 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? Thanks.=