From 2ed71da91eeeffed9c659527e347cda6601de902 Mon Sep 17 00:00:00 2001 From: Juergen Hoetzel Date: Thu, 20 Sep 2012 15:02:41 +0200 Subject: [PATCH] fix slime-break-on-exception The prefix arg was always converted to a number. Numbers are always logically true. Also "swank:break-on-exception" was invoked using the string value "true" or "false", which are always logically true. --- swank/elisp/slime-ritz.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/swank/elisp/slime-ritz.el b/swank/elisp/slime-ritz.el index d1b0e4a..2f80d28 100644 --- a/swank/elisp/slime-ritz.el +++ b/swank/elisp/slime-ritz.el @@ -19,10 +19,11 @@ (define-key java-mode-map "\C-c\C-x\C-b" 'slime-java-line-breakpoint))) (defun slime-break-on-exception (flag) - "Set a breakpoint at the current line" - (interactive "p") + "Break when an exception is thrown. +With prefix argument FLAG, do not break on exception" + (interactive "P") (slime-eval-with-transcript - `(swank:break-on-exception ,(if flag "true" "false")))) + `(swank:break-on-exception ,(not flag)))) (defun slime-line-breakpoint () "Set a breakpoint at the current line"