* Strange (while t ...) in 'error' definition...
@ 2013-03-05 21:35 Oleksandr Gavenko
2013-03-06 2:38 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: Oleksandr Gavenko @ 2013-03-05 21:35 UTC (permalink / raw)
To: help-gnu-emacs
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'?
This definition dated by 1990-11-05 (according to bzr history)...
--
Best regards!
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Strange (while t ...) in 'error' definition...
2013-03-05 21:35 Strange (while t ...) in 'error' definition Oleksandr Gavenko
@ 2013-03-06 2:38 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2013-03-06 2:38 UTC (permalink / raw)
To: help-gnu-emacs
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-03-06 2:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-05 21:35 Strange (while t ...) in 'error' definition Oleksandr Gavenko
2013-03-06 2:38 ` Stefan Monnier
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.