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] Add user content APIs for WebKit Xwidgets Date: Mon, 24 Oct 2022 15:20:49 +0800 Message-ID: <87mt9l4rhq.fsf@yahoo.com> References: <763B89A7-AF82-4AAB-A0E9-A04D9958CAE8@stanford.edu> <878rlianx4.fsf@yahoo.com> <9FF9464C-1369-423E-A581-A900D132845F@stanford.edu> <87zgdy97t1.fsf@yahoo.com> <63F00459-018C-4634-9B52-A89A3ED1AA36@stanford.edu> <0F1442C8-45E2-408C-B310-448B4A26496E@stanford.edu> <87ilklnxei.fsf@yahoo.com> <0583C9C0-9953-414E-9F51-2AEFDF225BD9@stanford.edu> <87edv8mlr5.fsf@yahoo.com> <264D17C0-1FD6-44BA-B8BE-28249374F7A2@stanford.edu> <877d10mfsw.fsf@yahoo.com> <874jvu6c3h.fsf@yahoo.com> <392D5A0E-AC2D-4582-8B81-777CB7C85D7A@stanford.edu> <87zgdm3vx6.fsf@yahoo.com> <186D6762-A6AC-4753-9C3B-DBD482EB7C82@stanford.edu> <87r0yx4w83.fsf@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="35655"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: "emacs-devel@gnu.org" To: Qiantan Hong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Oct 24 09:26:31 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 1omrqx-00096L-9I for ged-emacs-devel@m.gmane-mx.org; Mon, 24 Oct 2022 09:26:31 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1omrmF-0005kx-Ld; Mon, 24 Oct 2022 03:21:39 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1omrln-0005fH-A0 for emacs-devel@gnu.org; Mon, 24 Oct 2022 03:21:29 -0400 Original-Received: from sonic309-22.consmr.mail.ne1.yahoo.com ([66.163.184.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1omrlh-00020E-Rr for emacs-devel@gnu.org; Mon, 24 Oct 2022 03:21:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666596062; bh=yPuWczYxHmF2XoU0O7ZTffzEfV7E0uaYKQjAhxrZADw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=imOX0/toXQ6rvSPdo68OjwgXeBUN62vM7/SHBgR0fQynW7izAyoA1npALcuSaPeFQKk3pVvVkCps2HsJl0wai4r1LYXAyNHEB9tFNpoHd/9DBfoC047UDXHaTO2JRvDJuTM6Z+E+HPFZEVDC9Trs/DKbZEr2dkaV/wO2tPyWf+DqpN7jLcj6nham2hKfXM4zIPTkY1QwSHKTbPA8VCKuBVDLXe21Tie6eRmBorCGeNDO2uMclyDQ7RnaVvKKswtFWsXhjyACnpMXMVDCR0t7ckaN4bxa1mSpTx4kaIepQoIihV/RkerqcFOhQQSc5CjhQY8sSbY7qtj8HBnwUvZvwg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666596062; bh=Sl9DCdOtS4lF6/DPWhnB2tkOsG/QJaTQedZCVTBn4Gw=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=jhYgRo8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h952uts girniKpm9xPiQjv5TgUHcm9MIv.LoCWGan3kntUAUX7fkIeYqIWwQFrzAD8QGBrbZgOctvhRnGFP 60tPcQvj65o4xBoG95_SdRlYbqo9.QfZ7uBPQGrkTL X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Mon, 24 Oct 2022 07:21:02 +0000 Original-Received: by hermes--production-sg3-74fb94585-65f2n (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7cfd3fd1e3091b741265bfe233f9e571; Mon, 24 Oct 2022 07:20:54 +0000 (UTC) In-Reply-To: (Qiantan Hong's message of "Mon, 24 Oct 2022 05:44:01 +0000") X-Mailer: WebService/1.1.20754 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.148; envelope-from=luangruo@yahoo.com; helo=sonic309-22.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: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298351 Archived-At: Qiantan Hong writes: > Sure. In that case, would it be appropriate for the script_message_cb > to call the handler directly? No, it is not safe to call Lisp there. > Or should it emit an event and let xwidget-webkit-callback call it on > Lisp side? Yes. > I'm not sure how well does the former approach (which is more direct) > interact with error handling/Lisp debugger. Badly, unless you use safe_call, but that's not the place for safe_call.