all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Daniel Martín" <mardani29@yahoo.es>
To: Andrew De Angelis <bobodeangelis@gmail.com>
Cc: Qiantan Hong <qthong@stanford.edu>,  Po Lu <luangruo@yahoo.com>,
	"emacs-devel@gnu.org" <emacs-devel@gnu.org>
Subject: Re: Volunteering to help on etc/TODO item: Improved xwidgets support
Date: Thu, 20 Oct 2022 13:13:17 +0200	[thread overview]
Message-ID: <m135biagtu.fsf@yahoo.es> (raw)
In-Reply-To: <CAP5CrM398OqLwxHnu6+GEbkWB-gs2QWnDuYNQuwsBu6y0jRTXQ@mail.gmail.com> (Andrew De Angelis's message of "Wed, 19 Oct 2022 22:23:43 -0400")

Andrew De Angelis <bobodeangelis@gmail.com> 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:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "https://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>com.apple.security.get-task-allow
    </key>
    <true/>
  </dict>
</plist>

I suspect this tweak could perfectly be part of the Emacs build system
for NS, but I haven't investigated further.



  parent reply	other threads:[~2022-10-20 11:13 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-18 15:55 Volunteering to help on etc/TODO item: Improved xwidgets support Andrew De Angelis
2022-10-19  1:33 ` Po Lu
2022-10-19  3:43   ` Andrew De Angelis
2022-10-19  4:45     ` Po Lu
2022-10-19  4:55       ` Andrew De Angelis
2022-10-19  5:11         ` Po Lu
2022-10-19 18:54     ` Qiantan Hong
2022-10-20  2:23       ` Andrew De Angelis
2022-10-20  2:46         ` Po Lu
2022-10-20 11:13         ` Daniel Martín [this message]
2022-10-21 23:29           ` Andrew De Angelis
2022-10-22  0:07             ` Po Lu
2022-10-22  2:13               ` Andrew De Angelis
2022-10-22  4:49               ` Matt Armstrong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m135biagtu.fsf@yahoo.es \
    --to=mardani29@yahoo.es \
    --cc=bobodeangelis@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.com \
    --cc=qthong@stanford.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.