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

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

Re: Checking parameters


From: Nikolaj Schumacher
Subject: Re: Checking parameters
Date: Sun, 17 Jun 2007 17:28:44 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin)

"Lennart Borgman (gmail)" <address@hidden> 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




reply via email to

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