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: Volunteering to help on etc/TODO item: Improved xwidgets support Date: Thu, 20 Oct 2022 10:46:41 +0800 Message-ID: <878rlb8b5a.fsf@yahoo.com> References: <87k04wa97f.fsf@yahoo.com> <5E2D44D4-1D11-4531-9F0E-FD46F2B86FE1@stanford.edu> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4148"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Qiantan Hong , "emacs-devel@gnu.org" To: Andrew De Angelis Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 20 04:48:34 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 1olLbl-0000yM-C2 for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Oct 2022 04:48:33 +0200 Original-Received: from localhost ([::1]:47674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olLbj-0000SP-FS for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Oct 2022 22:48:31 -0400 Original-Received: from [::1] (port=41982 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olLaZ-000860-Aq for ged-emacs-devel@m.gmane-mx.org; Wed, 19 Oct 2022 22:47:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33118) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olLaA-00084Q-0I for emacs-devel@gnu.org; Wed, 19 Oct 2022 22:46:54 -0400 Original-Received: from sonic314-22.consmr.mail.ne1.yahoo.com ([66.163.189.148]:36714) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olLa8-0002Bj-11 for emacs-devel@gnu.org; Wed, 19 Oct 2022 22:46:53 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666234010; bh=fQBrVtv8kgPEQmwtjKttciIrOgxIl+KARPJ3UIjlYmA=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=hUT1/VIse+yBmdrxn8yJTEHYxZOGPRHj+4t4rJ7oEIvyx6sUG1+baUrw7fqibqSTnyUkeIzLgQspvs6JHCQpbdKLezPMwi2S7g0AK+fB3wbJKwiedB772xBbD1kR4fYpORKm//ABuD37DH4qV416K/Aqbg1DwBdA/3M1aypBfEfGcUGTNEM3spbRA5WMUtzd7aU8QQ6TeriPmviMmMYdBbObYQV5uwB7qx3SrHNOj+HBS+75raXXOyMrFPUAGr4tRA3DZ8FqFHYj5nFaDKtjYRUQPr8FqvckjmIF6XANPTUoMo+74+Z/hITSlzCHwTtabvc5HDozyTel283bM1UJ1g== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666234010; bh=PkEc75Kt0HQzXDuvMT3+FmIDfVqmFz0SNHOMQjrvG9w=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=JR+6ow+1ACRlhXR4RiLr4hTakyi7KH46NOHiugI3I8rNBWN+69yP+D3wG6y4ZgWeM1xIrAihugraG5xH5YB5UJhH5tZGpShaZUqqOwUL0Eu7UGkbDra/5oZwuvcgF1mjq9BMVGoA00GHDwR0KpW4vidhnBCvlAIC/dISHj5wPjRADcmi803eLur+OqfWq/davRYfMXiDkZnfP+51H2ak+zAg6ToFbICgotjUavRENBIb4eNnlnKNSH3FmVDCKC0nycZsxQxh0lDHdD0hASPNAIkXpMFPiz6vBqOkeUSaIu92MNoC3s0qQ8NX1p5hO+V3HVYP7eZ3/CTS8QKfdaeGgQ== X-YMail-OSG: UcvcZCgVM1m25RnefE7TJwPtq_h9YZZf55vcRa8mczgTqCzW3kqE5XN8U5JZb9S MOVR.6te0cJPkpfVoJvzUI9TXLfVkqqcrQ1DI3x7nr.vtgp52SKivvcaZV8Rtsq6l_8aJ4jRr9fo _v0l88SLpVQBBMMavL6eSewZY1S5suduqGAHzkXfhbYYREWEInbQZGIH1g60xR6g2no2_GE59bhh inNfsYY.hOmDAbjFC25wiL_G5Ry_cXgoLY84AZgp5FJ4FNdlN0YfnGhkLqgORhngz..eDRSyBFDi 49e3xcfUPzCEFXiRrggbBPC58EtxNakj1AiVOBW2GbntPszK3MXmegyuQjAbxFrkDtGexwB8SRzP mRGfIJxuHF.Oq9ey5xCR47PhDodb5Au99LduQqFpEZxBjg2UbY.Oh423xP8grkoRch10gKwRAwcy R0iy4H7AeaoK4BUkFuxxRwbFwBhyBdC47B8iJ1AGaw86x0yLSnykRua10NCCgYK2rEnw6C2cZMyu THkOuwn8wIcPsP1PrqdS02cObT.DaZYOads8oZYuCGvQWe5f7RvDj3jvc3lpO0XbbvDYcr8JIUDp zyZKjO0t32tC2MqITIz9Vo58OOmr5et7hzStDVQtgxI3c_ar8HnbcSe3vheafhQMi6YCopzTqBCA 8fE77KvYexbaSidVY5hH2b37jZJb78wk.d7j8Ebp6I2ho6LLhQJxtqr9U.w1cHNe84y6lM5vPXiH Pok1BrwqYYsOYr.jBvuTLS89QMbn8yr7E67vgscyADrYcZ_Qqemt.pI_oy2ir_Gfi348hOJ0tXk1 FprWbz6RpJBWacVkQ72yauX.em9KRSmzvjvbsadsdk X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Thu, 20 Oct 2022 02:46:50 +0000 Original-Received: by hermes--production-sg3-74fb94585-g2qrq (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 7dba0e3b29053f1d57b2a84d2751f0d7; Thu, 20 Oct 2022 02:46:46 +0000 (UTC) In-Reply-To: (Andrew De Angelis's message of "Wed, 19 Oct 2022 22:23:43 -0400") 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.189.148; envelope-from=luangruo@yahoo.com; helo=sonic314-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: , 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:298133 Archived-At: Andrew De Angelis writes: > Great, thanks Qiantian for the info. I'm looking into ways to adapt > the Objective C code to use manual reference counting rather than > ARC. Is this a problem that other Objective-C Emacs files have? No, the other Objective-C files do not have this problem. > Maybe I can also come up with some general rules/approaches to help > people fix the problem in other files. One thing that would be very > helpful is if you (or anyone else) is aware of somebody making this > fix (ARC -> MRC in Objective C) before: most of the > tutorials/documentation I'm finding on the topic is on how to go in > the opposite direction, which is helpful information but I'm stuck > "reverse engineering" the whole approach. Not having much experience with Objective-C, I can't say. But I think code like this: [scriptor addUserScript:[[WKUserScript alloc] initWithSource:xwScript injectionTime: WKUserScriptInjectionTimeAtDocumentStart forMainFrameOnly:NO]]; has to be modified to keep track of the allocated WKUserScript objects, and to call release on them when necessary.