From: Nikolaj Schumacher <n_schumacher@web.de>
To: help-gnu-emacs@gnu.org
Subject: Re: Checking parameters
Date: Sun, 17 Jun 2007 17:28:44 +0200 [thread overview]
Message-ID: <m2lkei7g7n.fsf@nschum.de> (raw)
In-Reply-To: <46751315.1070607@gmail.com> (Lennart Borgman's message of "Sun\, 17 Jun 2007 12\:55\:17 +0200")
"Lennart Borgman (gmail)" <lennart.borgman@gmail.com> wrote:
> Cecil Westerhof wrote:
>> I am new to Emacs and lisp.
>> What is the best way to check parameters and do error handling when they are
>> not correct?
>
> You probably want to use the most simple way, something like
> (error errmsg))
You should also add the error message to `debug-ignored-errors' if you
use the debugger. Otherwise you start debugging every time you input
malformed data.
regards,
Nikolaj Schumacher
next prev parent reply other threads:[~2007-06-17 15:28 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-17 10:17 Checking parameters Cecil Westerhof
2007-06-17 10:55 ` Lennart Borgman (gmail)
2007-06-17 11:18 ` Lennart Borgman (gmail)
2007-06-17 15:28 ` Nikolaj Schumacher [this message]
[not found] ` <mailman.2283.1182079099.32220.help-gnu-emacs@gnu.org>
2007-06-17 18:01 ` Cecil Westerhof
2007-06-18 17:27 ` don provan
2007-06-17 13:18 ` Tim X
2007-06-17 18:08 ` Cecil Westerhof
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=m2lkei7g7n.fsf@nschum.de \
--to=n_schumacher@web.de \
--cc=help-gnu-emacs@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.
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).