From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nikolaj Schumacher Newsgroups: gmane.emacs.help Subject: Re: Checking parameters Date: Sun, 17 Jun 2007 17:28:44 +0200 Message-ID: References: <46750a24$0$338$e4fe514c@news.xs4all.nl> <46751315.1070607@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1182094884 20717 80.91.229.12 (17 Jun 2007 15:41:24 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 17 Jun 2007 15:41:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Jun 17 17:41:21 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HzwsQ-0001wI-K8 for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2007 17:41:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HzwsQ-0004vT-2R for geh-help-gnu-emacs@m.gmane.org; Sun, 17 Jun 2007 11:41:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hzws8-0004qp-1g for help-gnu-emacs@gnu.org; Sun, 17 Jun 2007 11:41:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hzws6-0004oJ-Hi for help-gnu-emacs@gnu.org; Sun, 17 Jun 2007 11:40:59 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hzws6-0004nu-9r for help-gnu-emacs@gnu.org; Sun, 17 Jun 2007 11:40:58 -0400 Original-Received: from fmmailgate02.web.de ([217.72.192.227]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hzws5-0007CK-SX for help-gnu-emacs@gnu.org; Sun, 17 Jun 2007 11:40:58 -0400 Original-Received: from smtp05.web.de (fmsmtp05.dlan.cinetic.de [172.20.4.166]) by fmmailgate02.web.de (Postfix) with ESMTP id D0B3487803C3 for ; Sun, 17 Jun 2007 17:40:56 +0200 (CEST) Original-Received: from [89.59.146.59] (helo=wednesday) by smtp05.web.de with asmtp (TLSv1:AES256-SHA:256) (WEB.DE 4.108 #197) id 1HzwgG-0000ao-00 for help-gnu-emacs@gnu.org; Sun, 17 Jun 2007 17:28:44 +0200 In-Reply-To: <46751315.1070607@gmail.com> (Lennart Borgman's message of "Sun\, 17 Jun 2007 12\:55\:17 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (darwin) X-Sender: X-Provags-ID: X-detected-kernel: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:45133 Archived-At: "Lennart Borgman (gmail)" 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