all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Q: while loop in impl of error and user-error
@ 2013-10-29  1:24 T.V. Raman
  2013-10-29 21:06 ` Stefan Monnier
  0 siblings, 1 reply; 4+ messages in thread
From: T.V. Raman @ 2013-10-29  1:24 UTC (permalink / raw)
  To: emacs-devel

I was surprized to see the while loop in the body of function
'error and 'user-error

why is the call to signal enclosed in a (while t ...) loop?

(defun user-error (format &rest args)
  "Signal a pilot error, making error message by passing all args to `format'.
In Emacs, the convention is that error messages start with a capital
letter but *do not* end with a period.  Please follow this convention
for the sake of consistency.
This is just like `error' except that `user-error's are expected to be the
result of an incorrect manipulation on the part of the user, rather than the
result of an actual problem."
  (while t
    (signal 'user-error (list (apply #'format format args)))))
-- 

--



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-10-30  9:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-29  1:24 Q: while loop in impl of error and user-error T.V. Raman
2013-10-29 21:06 ` Stefan Monnier
2013-10-29 23:14   ` Jarek Czekalski
2013-10-30  9:13     ` T.V. Raman

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.