From: "T.V. Raman" <tv.raman.tv@gmail.com>
To: emacs-devel@gnu.org
Subject: Q: while loop in impl of error and user-error
Date: Mon, 28 Oct 2013 18:24:10 -0700 [thread overview]
Message-ID: <CADkJX2jhgNp9rzMxY0jAEEJ21v22PjPdQpQQAaGTiyLNBB7tgQ@mail.gmail.com> (raw)
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)))))
--
--
next reply other threads:[~2013-10-29 1:24 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-29 1:24 T.V. Raman [this message]
2013-10-29 21:06 ` Q: while loop in impl of error and user-error Stefan Monnier
2013-10-29 23:14 ` Jarek Czekalski
2013-10-30 9:13 ` T.V. Raman
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CADkJX2jhgNp9rzMxY0jAEEJ21v22PjPdQpQQAaGTiyLNBB7tgQ@mail.gmail.com \
--to=tv.raman.tv@gmail.com \
--cc=emacs-devel@gnu.org \
/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 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.