From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Arsen =?utf-8?Q?Arsenovi=C4=87?= Newsgroups: gmane.emacs.devel Subject: Re: Merging feature/android Date: Mon, 06 Mar 2023 10:07:22 +0100 Message-ID: <867cvuz1hp.fsf@aarsen.me> References: <87edq7ztks.fsf.ref@yahoo.com> <87zg8uw9b9.fsf@yahoo.com> <837cvycjse.fsf@gnu.org> <87ttz2w4c3.fsf@yahoo.com> <83356mcbxw.fsf@gnu.org> <87pm9qvu9w.fsf@yahoo.com> <83y1odc37g.fsf@gnu.org> <87cz5pwf9c.fsf@yahoo.com> <83edq5asb3.fsf@gnu.org> <875ybhvt4w.fsf@yahoo.com> <83356kbxnh.fsf@gnu.org> <87lekcvho4.fsf@yahoo.com> <83r0u4adgd.fsf@gnu.org> <87a60suknn.fsf@yahoo.com> <83356jafll.fsf@gnu.org> <87o7p7tz16.fsf@yahoo.com> <83sfej8v17.fsf@gnu.org> <87fsajtrrx.fsf@yahoo.com> <83o7p78ns8.fsf@gnu.org> <87y1obsamf.fsf@yahoo.com> <0100f288-fcc0-8b91-5f12-18bf22969e50@cs.ucla.edu> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="16729"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Po Lu , Eli Zaretskii , emacs-devel@gnu.org To: Paul Eggert Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Mar 06 10:14:18 2023 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 1pZ6vC-00046K-0F for ged-emacs-devel@m.gmane-mx.org; Mon, 06 Mar 2023 10:14:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pZ6uc-0005HF-1T; Mon, 06 Mar 2023 04:13:42 -0500 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 1pZ6uX-0005Fp-TO for emacs-devel@gnu.org; Mon, 06 Mar 2023 04:13:37 -0500 Original-Received: from mout-p-102.mailbox.org ([2001:67c:2050:0:465::102]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1pZ6uS-0004y8-JK; Mon, 06 Mar 2023 04:13:37 -0500 Original-Received: from smtp102.mailbox.org (smtp102.mailbox.org [IPv6:2001:67c:2050:b231:465::102]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-102.mailbox.org (Postfix) with ESMTPS id 4PVXtX5csZz9sdk; Mon, 6 Mar 2023 10:13:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aarsen.me; s=MBO0001; t=1678094004; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=7Uq6EJsWAzEgSTDFk9L0Nre/3oMBJtG36o7mBasE1wo=; b=eEiZ3DNxb1lMQcKJsNefCwu3swaGnwTF96rndZBhor9GOnwhgNoR8AhCpqUCubGvTPHb2l clBkwqKZQHWXwJBjK72EKIkitJztnW3nuUaxCiHTFfgIgRzpox1+tovGgAAbWZGx9DSqZt m+3ZkzY8ijPy18WWCezRU0h5VBQcTpSSRJ9V8S1ZJ9+JgXBzWcomP10MEhieUJo2qWEYVI hkyAwUz8LgScklIA+Y+LV6mLwxiNpu2yiZ7pZtEv4HMDd7tTKEaaPD18g3m+sGmCDGv17/ XBQeHXvV9gl7FfGpNEfbdx/uVZn39R8ZK6BA6tDGydO060P3QESUP46Mr4lEKA== In-reply-to: <0100f288-fcc0-8b91-5f12-18bf22969e50@cs.ucla.edu> X-Rspamd-Queue-Id: 4PVXtX5csZz9sdk Received-SPF: pass client-ip=2001:67c:2050:0:465::102; envelope-from=arsen@aarsen.me; helo=mout-p-102.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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, RCVD_IN_DNSWL_LOW=-0.7, 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-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:304021 Archived-At: --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Paul Eggert writes: > On 2023-03-05 03:25, Po Lu wrote: >> I'd like to see the discussion where it was concluded that the >> cleanup attribute is absolutely required. It doesn't do fancy things >> like clean up after Lisp signals under the hood, so all of the cleanup >> can be done in portable C as well. > > As I recall there wasn't much discussion, unfortunately. I very vaguely r= ecall > that there was some worry that Emacs modules would be written in C++, and= that > they would invoke Elisp code, and that this meant it'd be hard to do the > cleanup in portable C. > > One option that was discussed was to require a C++ compiler to compile > emacs-modules.cc (i.e., to write the emacs-modules interface in C++). I e= xpect > this would have addressed the cleanup issue in a different way. But RMS w= as > very strongly against requiring a C++ compiler. Depending on how long ago that was, it might be worth reconsidering. GCC has been C++ for a decade now, for instance, so C++ compilers are likely fairly widespread. One could make the case that using portable C++ in addition to portable C is a more portable way to do cleanups than GNU C cleanups. If still undesirable, I strongly suggest at least using GNU C cleanups. They are a decent workaround. > You may find this patch useful: > > https://lists.gnu.org/archive/html/emacs-devel/2019-04/msg01075.html =2D-=20 Arsen Arsenovi=C4=87 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iOYEARYKAI4WIQT+4rPRE/wAoxYtYGFSwpQwHqLEkwUCZAWusl8UgAAAAAAuAChp c3N1ZXItZnByQG5vdGF0aW9ucy5vcGVucGdwLmZpZnRoaG9yc2VtYW4ubmV0RkVF MkIzRDExM0ZDMDBBMzE2MkQ2MDYxNTJDMjk0MzAxRUEyQzQ5MxAcYXJzZW5AYWFy c2VuLm1lAAoJEFLClDAeosSTHIgA/3PGYvnMeWcI/dENZRTSyZFFXVcYRGVdsLq1 fbZ8YR5SAPwLWAfMsjISAbZ9WCcRazUC42i1y6Ad5T0OUvzPt2AoDA== =SI8R -----END PGP SIGNATURE----- --=-=-=--