Skip to content

Commit

Permalink
fix slime-break-on-exception
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
juergenhoetzel committed Oct 2, 2012
1 parent 4df592f commit 2ed71da
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions swank/elisp/slime-ritz.el
Expand Up @@ -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"
Expand Down

0 comments on commit 2ed71da

Please sign in to comment.