From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jesper Harder Newsgroups: gmane.emacs.help Subject: Re: Lisp help: debug-on-error not effective twice? Date: Sun, 25 Apr 2004 03:12:01 +0200 Organization: http://purl.org/harder/ Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082855764 25775 80.91.224.253 (25 Apr 2004 01:16:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Apr 2004 01:16:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Apr 25 03:15:57 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BHYFR-0001CU-00 for ; Sun, 25 Apr 2004 03:15:57 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHYFI-0003pi-0d for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Apr 2004 21:15:48 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!colt.net!news.tele.dk!not-for-mail Original-Newsgroups: gnu.emacs.help X-Face: ^RrvqCr7c,P$zTR:QED"@h9+BTm-"fjZJJ-3=OU7.)i/K]<.J88}s>'Z_$r; List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17968 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17968 Lars Brinkhoff writes: > (catch 'error > (car)) > ;;(debug) > (print (format "debug-on-error = %s" debug-on-error)) > (catch 'error > (car))) > > I get one "foo" from my-debug, then "debug-on-error = t", and then the > error "Wrong number of arguments: #, 0". > > Why isn't my-debug called twice? I don't know. But interestingly it works correctly in the _interpreter_ in XEmacs (the byte-compiler doesn't compile the first catch form correctly). -- Jesper Harder