From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Fsignal cleanup Date: Tue, 18 Jul 2006 15:39:40 +0200 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1153230108 20701 80.91.229.2 (18 Jul 2006 13:41:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 18 Jul 2006 13:41:48 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jul 18 15:41:46 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1G2ppT-0006PX-5p for ged-emacs-devel@m.gmane.org; Tue, 18 Jul 2006 15:41:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G2ppS-0002IB-MI for ged-emacs-devel@m.gmane.org; Tue, 18 Jul 2006 09:41:38 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1G2ppH-0002Hy-NU for emacs-devel@gnu.org; Tue, 18 Jul 2006 09:41:27 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1G2ppG-0002Gu-MH for emacs-devel@gnu.org; Tue, 18 Jul 2006 09:41:27 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1G2ppG-0002Ge-JM for emacs-devel@gnu.org; Tue, 18 Jul 2006 09:41:26 -0400 Original-Received: from [195.41.46.235] (helo=pfepa.post.tele.dk) by monty-python.gnu.org with esmtp (Exim 4.52) id 1G2psA-0003hQ-Ah for emacs-devel@gnu.org; Tue, 18 Jul 2006 09:44:26 -0400 Original-Received: from kfs-l.imdomain.dk.cua.dk (unknown [80.165.4.124]) by pfepa.post.tele.dk (Postfix) with SMTP id 04286FAC06F for ; Tue, 18 Jul 2006 15:41:24 +0200 (CEST) Original-To: emacs-devel@gnu.org User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:57261 Archived-At: Following the recent confusion over whether Fsignal and wrong_type_argument return or not, I went ahead and cleaned up this whole mess. There is now a new function `xsignal' which is similar to `Fsignal', but is guaranteed never to return. To further clean up the code, I've added functions xsignal0, xsignal1, xsignal2, and xsignal3, which are like xsignal, but they take a fixed number of arguments and build a list from those arguments which is then passed on to xsignal. Finally, I took the signal_error function from xfaces.c and generalized it a bit to be useful everywhere we signal a Qerror with a string + additional args. The arg need not be a list; if not, it is automatically made into a 1-element list before being passed to xsignal. There are still calls to Fsignal left in the code. Those all signal Qquit -- which may return if the debugger says so. -- Kim F. Storm http://www.cua.dk