unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: storm@cua.dk (Kim F. Storm)
Subject: Fsignal cleanup
Date: Tue, 18 Jul 2006 15:39:40 +0200	[thread overview]
Message-ID: <m33bczkp5v.fsf@kfs-l.imdomain.dk> (raw)


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 <storm@cua.dk> http://www.cua.dk

             reply	other threads:[~2006-07-18 13:39 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-18 13:39 Kim F. Storm [this message]
2006-07-19  0:39 ` Fsignal cleanup Richard Stallman

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=m33bczkp5v.fsf@kfs-l.imdomain.dk \
    --to=storm@cua.dk \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).