help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Strange (while t ...) in 'error' definition...


From: Stefan Monnier
Subject: Re: Strange (while t ...) in 'error' definition...
Date: Tue, 05 Mar 2013 21:38:06 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> From 'emacs-bzr/trunk/lisp/subr.el':
>   (defun user-error (format &rest args)
>     (while t
>       (signal 'user-error (list (apply #'format format args)))))

> Why is it needed to surround 'signal' with 'while t'?

Indeed, the while t is not needed any more.

> This definition dated by 1990-11-05 (according to bzr history)...

In early Elisp, `signal' could return.  This is now only true for the
`quit' signal.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]