From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.devel Subject: Re: Dynamic modules: MODULE_HANDLE_SIGNALS etc. Date: Sun, 20 Dec 2015 18:34:03 +0000 Message-ID: References: <83mvu1x6t3.fsf@gnu.org> <565779CD.80405@cs.ucla.edu> <83io4nuc68.fsf@gnu.org> <83r3iht93x.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=089e0102def48a20650527589ee2 X-Trace: ger.gmane.org 1450636481 10449 80.91.229.3 (20 Dec 2015 18:34:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 20 Dec 2015 18:34:41 +0000 (UTC) Cc: aurelien.aptel+emacs@gmail.com, tzz@lifelogs.com, eggert@cs.ucla.edu, dancol@dancol.org, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Dec 20 19:34:39 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aAioT-0000A6-AE for ged-emacs-devel@m.gmane.org; Sun, 20 Dec 2015 19:34:33 +0100 Original-Received: from localhost ([::1]:41620 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAioR-0005zt-VE for ged-emacs-devel@m.gmane.org; Sun, 20 Dec 2015 13:34:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAioD-0005zm-6s for emacs-devel@gnu.org; Sun, 20 Dec 2015 13:34:18 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aAioC-00053d-Ae for emacs-devel@gnu.org; Sun, 20 Dec 2015 13:34:17 -0500 Original-Received: from mail-wm0-x230.google.com ([2a00:1450:400c:c09::230]:37372) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAioA-00053P-M2; Sun, 20 Dec 2015 13:34:14 -0500 Original-Received: by mail-wm0-x230.google.com with SMTP id p187so44120619wmp.0; Sun, 20 Dec 2015 10:34:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-type; bh=fRGyLU0B+dFnNtI6AYO5dtYydav+2/bE+lCQ19y8pIY=; b=RMTQoPRHn4J3TG9YkZ8ZlsfpSggKiBPXTPMfWkQp/aAoZx3QglgKh+LQrpuTyotiNE L+8/+vN+/PhbtqGx1aPT7cXo8f0V+S5fgy/TCPDDmfUJ+nMlO/OJ1shLBq3WMnX0+ZVS 1x/QNBklrs6hZaevoaMgMQNGhi/VuEFu3VdaFmGnLcq3eqqWDuRakscXw+0lFu3QWwUv /1j+Sf2TmLEk1p/iqu5NsiBhwdz/vlA3/htp/Uw41urbWv9rfjYfK8+r5PgzpL6FxUom whO/PmV8SU5ymkiVBTSH+OKLsdfFO58Fa5W3pc3b8hizj63o3sAsyxujuMTE500g2MBK AniA== X-Received: by 10.194.87.39 with SMTP id u7mr16060409wjz.11.1450636453907; Sun, 20 Dec 2015 10:34:13 -0800 (PST) In-Reply-To: <83r3iht93x.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::230 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196559 Archived-At: --089e0102def48a20650527589ee2 Content-Type: multipart/alternative; boundary=089e0102def48a20610527589ee0 --089e0102def48a20610527589ee0 Content-Type: text/plain; charset=UTF-8 Eli Zaretskii schrieb am So., 20. Dez. 2015 um 16:47 Uhr: > > From: Philipp Stephani > > Date: Sat, 19 Dec 2015 22:57:14 +0000 > > Cc: dancol@dancol.org, tzz@lifelogs.com, aurelien.aptel+emacs@gmail.com, > > emacs-devel@gnu.org > > > > Added another patch that documents some of the assumptions about > non-local > > exits. I've added them directly to lisp.h so that people changing these > > definitions will hopefully notice. > > Thanks, but please mention in these comments that emacs-module.c > relies on these requirements. > > Done. Attached new patch. --089e0102def48a20610527589ee0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Eli Za= retskii <eliz@gnu.org> schrieb am= So., 20. Dez. 2015 um 16:47=C2=A0Uhr:
> From: Philipp Stephani <p.stephani2@gmail.com>
> Date: Sat, 19 Dec 2015 22:57:14 +0000
> Cc: dancol@danc= ol.org, tzz@lifel= ogs.com, aurelien.aptel+emacs@gmail.com,
>=C2=A0 =C2=A0 =C2=A0 =C2=A0emacs-devel@gnu.org
>
> Added another patch that documents some of the assumptions about non-l= ocal
> exits. I've added them directly to lisp.h so that people changing = these
> definitions will hopefully notice.

Thanks, but please mention in these comments that emacs-module.c
relies on these requirements.


Done. Attached new patch.=C2=A0
<= /div>
--089e0102def48a20610527589ee0-- --089e0102def48a20650527589ee2 Content-Type: application/octet-stream; name="0001-Document-assumptions-about-non-local-exits.patch" Content-Disposition: attachment; filename="0001-Document-assumptions-about-non-local-exits.patch" Content-Transfer-Encoding: base64 Content-ID: <151c0ab7a561386d4821> X-Attachment-Id: 151c0ab7a561386d4821 RnJvbSBhNWM4OTExY2FlNjc2MTcwMDJhOTc0M2UxOWI2YzlhYzc0OGZiODg5IE1vbiBTZXAgMTcg MDA6MDA6MDAgMjAwMQpGcm9tOiBQaGlsaXBwIFN0ZXBoYW5pIDxwaHN0QGdvb2dsZS5jb20+CkRh dGU6IFNhdCwgMTkgRGVj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