branch: master
commit 78aba8b3de57927b10b0b55b288f1673fc3b1cd9
Author: rocky <[email protected]>
Commit: rocky <[email protected]>

    DRY with respect to realgud:regexp-captured-num
---
 realgud/lang/js.el |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/realgud/lang/js.el b/realgud/lang/js.el
index 7d33357..faaf716 100644
--- a/realgud/lang/js.el
+++ b/realgud/lang/js.el
@@ -33,7 +33,8 @@
 ;;     main::foo(3) called at /tmp/foo.pl line 8
 (defconst realgud:js-backtrace-loc-pat
   (make-realgud-loc-pat
-   :regexp "^\\(?:[\t ]+at \\)?\\([^:]+\\) 
(\\(.*\\):\\([0-9]+\\):\\([0-9]+\\))"
+   :regexp (format "^\\(?:[\t ]+at \\)?\\([^:]+\\) (\\(.*\\):%s:%s)"
+                  realgud:regexp-captured-num realgud:regexp-captured-num)
    :file-group 2
    :line-group 3
    :char-offset-group 4)
@@ -42,6 +43,7 @@
 (defun realgud:js-remove-ansi-schmutz()
   "Remove ASCII escape sequences that node.js 'decorates' in
 prompts and interactive output with"
+  (interactive "")
   (add-to-list
    'comint-preoutput-filter-functions
    (lambda (output)

Reply via email to