From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Paul Eggert Newsgroups: gmane.emacs.devel Subject: Re: Dynamic modules: emacs-module.c and signaling errors Date: Tue, 24 Nov 2015 13:34:07 -0800 Organization: UCLA Computer Science Department Message-ID: <5654D7CF.90001@cs.ucla.edu> References: <83k2p7xk13.fsf@gnu.org> <87wpt7p369.fsf@tromey.com> <83d1uzxgvw.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1448400886 29551 80.91.229.3 (24 Nov 2015 21:34:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 24 Nov 2015 21:34:46 +0000 (UTC) Cc: aurelien.aptel+emacs@gmail.com, p.stephani2@gmail.com, dancol@dancol.org, tzz@lifelogs.com, emacs-devel@gnu.org To: Eli Zaretskii , Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 24 22:34:36 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 1a1LEA-0001q2-Lf for ged-emacs-devel@m.gmane.org; Tue, 24 Nov 2015 22:34:18 +0100 Original-Received: from localhost ([::1]:41544 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1LEC-0007kA-0I for ged-emacs-devel@m.gmane.org; Tue, 24 Nov 2015 16:34:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52779) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1LE7-0007jt-TT for emacs-devel@gnu.org; Tue, 24 Nov 2015 16:34:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a1LE7-0004c2-5o for emacs-devel@gnu.org; Tue, 24 Nov 2015 16:34:15 -0500 Original-Received: from zimbra.cs.ucla.edu ([131.179.128.68]:35722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a1LE1-0004Vj-GW; Tue, 24 Nov 2015 16:34:09 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 43E0B1606CC; Tue, 24 Nov 2015 13:34:08 -0800 (PST) Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id rfWQB5aq7PdY; Tue, 24 Nov 2015 13:34:07 -0800 (PST) Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 8FD04160998; Tue, 24 Nov 2015 13:34:07 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Original-Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id l8JxMf4gPk98; Tue, 24 Nov 2015 13:34:07 -0800 (PST) Original-Received: from Penguin.CS.UCLA.EDU (Penguin.CS.UCLA.EDU [131.179.64.200]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id 6D9BD1606CC; Tue, 24 Nov 2015 13:34:07 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.1.0 In-Reply-To: <83d1uzxgvw.fsf@gnu.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 131.179.128.68 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:195190 Archived-At: On 11/24/2015 12:49 PM, Eli Zaretskii wrote: > Btw, using this method the module code becomes very tedious It's so tedious I can't imagine using it that way. Module authors shouldn't have to call env->non_local_exit_check (env) after every function call, to see whether the function actually worked. Functions should be able to signal an error, just as they can in the Emacs core, and the error should propagate through calls in a natural way.