From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: =?utf-8?Q?Daniel_Mart=C3=ADn?= Newsgroups: gmane.emacs.devel Subject: Re: Volunteering to help on etc/TODO item: Improved xwidgets support Date: Thu, 20 Oct 2022 13:13:17 +0200 Message-ID: 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="20056"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (darwin) Cc: Qiantan Hong , Po Lu , "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 15:02:08 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 1olVBX-0004sL-4l for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Oct 2022 15:02:07 +0200 Original-Received: from localhost ([::1]:34280 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olVBS-0004mB-U1 for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Oct 2022 09:02:03 -0400 Original-Received: from [::1] (helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1olUzM-0000Ke-Lw for ged-emacs-devel@m.gmane-mx.org; Thu, 20 Oct 2022 08:49:32 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57172) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1olTUT-0003TB-Dw for emacs-devel@gnu.org; Thu, 20 Oct 2022 07:13:40 -0400 Original-Received: from sonic304-9.consmr.mail.bf2.yahoo.com ([74.6.128.32]:36518) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1olTUQ-0006oa-Ce for emacs-devel@gnu.org; Thu, 20 Oct 2022 07:13:33 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.es; s=s2048; t=1666264406; bh=zly7Lt69HZpNMVfBMCM8setp4l80VevZe4Z1YUKodew=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=hBrMXL1prE9/TWNOys66kART4uXiIu4jpPed1D24nnx3uXqPo+fu8ZpYa6MzX/jDz5FFhcElzWz6+JT2C68m3P7c/hsXQiZ8piWSDS0ykpEpe3imI7cdhKbpnqHpbaTWwLmBj7ozPC3Z9xrkVD1DqG75PT42456exfwwCEySXHQJm4u8SuCSTDCHd0Ngda6Gc7VvWukxW7CYX++BcVvs5taRXEBa3u++aIMSyN5jSZjz8OU/P91nWkkFImiK8PxndnMqQMm7XWtF6nPOAYAI0/FyQ0tKbIhCf6G5DTQ3vv4SmLi+Htmwo3lo1aSjmCv9SHvjFiL6fheEDwNKukWkUg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666264406; bh=+Z89TARsdyEjE3PCjl17qpmT/Ecs7udUdsqGaY5GFam=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=VSJ08Rqg1M0eH0dUXKg5g77IvRY8a7ymgsN+31WH9luRzazPExEMHCEMDXMMzkTsGzlrs+cYsKh3ckVJGyTQC9XBMmZ3u2bJ/W+s9ZEowZzXLROPkD5+t/zLId6NB9Id2K5mgmIh2YnEuXUKN6RXKZsDGUOTGbH+oq4Oq7K5gHro4iTD9K6VLT4fDnmJgMXLNDxZjVOYba2611L4OSeUSlf1qFVf6+1w4yURgCv1YPawVBRZbgKEQHv4X8WyU/6x6YGjrkjRMW9I4IfHnzTeQgBb2qH8divFpw8RmD3mddK6s2/6mMNDDMB0MtNPBgZnEBKIxJjqa6nkPDKlCqE9jg== X-YMail-OSG: mL._Y0UVM1nXR9cFEbbsZq8vwUhhblUVTO3BHbBnMag6uiiLAI_NigeWIs_ZILU GxresWRHNBgjiga7Y0JsVFVIOeSaCC4WGYS62Yd1THZbPTEhn0RF3kPPtaokNXkASwoOBKWCVzbK d7NMY_kPKPsGkJkdtlZTnJrlIkb5FoO3S1nWqGVv40QjgXFuKfqlXe1y8P7n53DHihEQKG51cnxS nJa_dsOJPp09FfsamphHJ2csL_4O3g5l0WLztVpKl8PguM294UAlrEc6cRLRLTErtohKO5.riAoo Oq.6EC3yKSizATxjhj4q3GvhMQkMInGQ260klFVjcKZzcDmVrtF7Lj1WIa1HLOZqEAYjyBYqStwy k3HyG1SWea4YhJuOpedb3ASvo4Ks2XqHtEn7jwusCvsTSbIHHhlFZheuNdULTg6jdaRcJEaVfk1z iJhIbSY6o07LaDXA21OsqmGdupuNBlBzGNqdF7prekFgsx023sYxVjf_FCK3_eJS16UVdil.Uii4 NWWx7M29WMEttqCgiV8YpFYr79gEPC5UFEEAMr_EMyXksMsPvS9KuDwn5BaG1.ytEh_fVZd3UyN_ tHjKtvgNOnZdj.paicyRBv6j4rHvgy.4IKEyMfLKKSMRnq4kiz6QXGjYfLvM6FB8Ntbkrnf4HlCw rQuOwDE4fGxNvlHUU_NmjWI29v28Xa5e5IKjnIEVIOQ7nSyTcfdBBviLxzNuuBFXQZRxO3YxQK5x m4iR0_yHGGDvyfCjOATFWVDhaT5ExSSUWu2Ujj095UNDtsIeApkGMJwk43frsYi8L_Bzt8NErlQa 8R5XkpylWi6Sz0vKA1QNbpXSDkGjWitKE6l5MVChMC X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic304.consmr.mail.bf2.yahoo.com with HTTP; Thu, 20 Oct 2022 11:13:26 +0000 Original-Received: by hermes--production-ir2-96dfb7869-gdv8x (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 160654b1e331b6c2868dfe6e71e343a4; Thu, 20 Oct 2022 11:13:19 +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=74.6.128.32; envelope-from=mardani29@yahoo.es; helo=sonic304-9.consmr.mail.bf2.yahoo.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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:298145 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? 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. > I'd also suggest instrumenting Emacs with Instruments.app and the "Leaks" profile. The generated profile will indicate if there are retain/release/autorelease problems that led to leaked objects under the MRC model. In recent versions of macOS you might have problems running Emacs under Instruments.app. One way to resolve this problem is by embedding a custom entitlement that sets "com.apple.security.get-task-allow" and then signing the binary again. That is, run this command from a shell: $ codesign -s - -v -f --entitlements Entitlements.plist emacs In the command above, "emacs" is the built Emacs binary and Entitlements.plist should contain this text: com.apple.security.get-task-allow I suspect this tweak could perfectly be part of the Emacs build system for NS, but I haven't investigated further.