[Top][All Lists]

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

Re: Checking parameters

From: Cecil Westerhof
Subject: Re: Checking parameters
Date: Sun, 17 Jun 2007 20:08:05 +0200
User-agent: KNode/0.8.0

Tim X 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?
> Emacs will throw an error if the function is called with the wrong number
> of arguments.

Okay, I do not have to take care of that. ;-}

> However, if you want to get a bit more
> adventurous and you would like a function that can tell the user the
> arguement is invalid and give them another opportunity to enter a
> correctly formatted argument, you might want to use a function instead of
> the prompt sring. 

Not at the moment, I am just starting. Furthermore, the function shall
mostly be used non-interactively.
But thanks for the thought.

reply via email to

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