Skip to content

Commit

Permalink
Add docstring to org-babel-prolog--exit-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrenierejm committed Mar 28, 2018
1 parent 8b574d0 commit 77b2d97
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ob-prolog.el
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ Create SESSION if it does not already exist."
(comint-send-input nil t)))

(defun org-babel-prolog--exit-debug (string)
"If STRING indicates an exception, continue Prolog execution in no debug mode."
(when (string-match-p "\\(.\\|\n\\)*Exception.* \\? $" string)
(insert "no debug")
(comint-send-input nil t)))
Expand Down

0 comments on commit 77b2d97

Please sign in to comment.