From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Lars Brinkhoff Newsgroups: gmane.emacs.help Subject: Lisp help: debug-on-error not effective twice? Date: 24 Apr 2004 09:41:48 +0200 Organization: nocrew Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <85y8ol6cw3.fsf@junk.nocrew.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1082792628 25478 80.91.224.253 (24 Apr 2004 07:43:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 24 Apr 2004 07:43:48 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 24 09:43:38 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 1BHHp3-0000j5-00 for ; Sat, 24 Apr 2004 09:43:38 +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 1BHHo7-0006g4-VN for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Apr 2004 03:42:39 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BHHns-0006fd-Sl for help-gnu-emacs@gnu.org; Sat, 24 Apr 2004 03:42:24 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BHHnL-0006bG-St for help-gnu-emacs@gnu.org; Sat, 24 Apr 2004 03:42:24 -0400 Original-Received: from [80.91.224.249] (helo=main.gmane.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHHnL-0006aw-Cv for help-gnu-emacs@gnu.org; Sat, 24 Apr 2004 03:41:51 -0400 Original-Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1BHHnK-0004tg-00 for ; Sat, 24 Apr 2004 09:41:50 +0200 Original-Received: from junk.nocrew.org ([213.242.147.30]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Apr 2004 09:41:50 +0200 Original-Received: from lars by junk.nocrew.org with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Apr 2004 09:41:50 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: help-gnu-emacs@gnu.org Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: junk.nocrew.org User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor 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:17942 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17942 If I run this (in *scratch*) in GNU Emacs 21.3: (defun my-debug (&rest args) (print "foo") (throw 'error nil)) (let ((debug-on-error t) (debug-on-quit t) (debug-on-signal t) (debug-ignored-errors nil) (debugger 'my-debug)) (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? If I uncomment (debug) and enter 'c' in the debugger to contine, my-debug does get called twice. Is debug doing something magic? -- Lars Brinkhoff, Services for Unix, Linux, GCC, HTTP Brinkhoff Consulting http://www.brinkhoff.se/