[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/realgud-trepan-ni 68079f2 01/25: Start trepan-ni
From: |
Rocky Bernstein |
Subject: |
[elpa] externals/realgud-trepan-ni 68079f2 01/25: Start trepan-ni |
Date: |
Thu, 23 May 2019 02:14:20 -0400 (EDT) |
branch: externals/realgud-trepan-ni
commit 68079f26dd7cf119fe003145738827c99e170316
Author: rocky <address@hidden>
Commit: rocky <address@hidden>
Start trepan-ni
---
Makefile.am | 2 +-
README.md | 7 +-
common.mk | 2 +-
configure.ac | 4 +-
realgud-node-inspect.el => realgud-trepan-ni.el | 8 +-
test/test-loc-regexp-node-inspect.el | 2 +-
test/test-node-inspect.el | 2 +-
{node-inspect => trepan-ni}/Makefile.am | 2 +-
{node-inspect => trepan-ni}/core.el | 70 +++++++-------
{node-inspect => trepan-ni}/init.el | 120 ++++++++++++------------
{node-inspect => trepan-ni}/main.el | 34 +++----
{node-inspect => trepan-ni}/track-mode.el | 52 +++++-----
12 files changed, 154 insertions(+), 151 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 66d3f8b..451e84d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -2,7 +2,7 @@
# These comments before the targets start with #:
# remake --tasks to shows the targets and the comments
-SUBDIRS = node-inspect test
+SUBDIRS = trepan-ni test
GIT2CL ?= git2cl
RUBY ?= ruby
diff --git a/README.md b/README.md
index 0c4a5ff..6bb8a64 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,5 @@
-Module to add [node inspect](https://nodejs.org/api/debugger.html)'s
[V8-inspector-protocol](https://chromedevtools.github.io/devtools-protocol/v8/Debugger)
+Module to add [trepan-ni](https://github.com/rocky/trepan-ni) support
+using nodejs'
+[V8-inspector-protocol](https://chromedevtools.github.io/devtools-protocol/v8/Debugger)
debugger support to emacs
[realgud](http://github.com/realgud/realgud).
-
-For node before version 6.3, an older protocol is used. In realgud,
-that debugger for the older version is called node-debug.
diff --git a/common.mk b/common.mk
index ac10f31..de60b93 100644
--- a/common.mk
+++ b/common.mk
@@ -1,5 +1,5 @@
MOSTLYCLEANFILES = *.elc
-EMACSLOADPATH=:/home/rocky/.emacs.d/elpa/test-simple-20170527.832/:/home/rocky/.emacs.d/elpa/realgud-20180207.1330/
+EMACSLOADPATH=:/home/rocky/.emacs.d/elpa/test-simple-20170527.1532/:/home/rocky/.emacs.d/elpa/realgud-20180711.253/:/home/rocky/.emacs.d/elpa/load-relative-20170526.1010/:/home/rocky/.emacs.d/elpa/loc-changes-20160801.1708/
short:
$(MAKE) 2>&1 >/dev/null | ruby $(top_srcdir)/make-check-filter.rb
diff --git a/configure.ac b/configure.ac
index 6d5d73d..00780b6 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,6 +1,6 @@
dnl FIXME: pick up from realgud.el
AC_INIT(realgud-inspect, 1.0,)
-AC_CONFIG_SRCDIR(node-inspect/main.el)
+AC_CONFIG_SRCDIR(trepan-ni/main.el)
AM_INIT_AUTOMAKE([foreign])
AM_MAINTAINER_MODE
@@ -49,7 +49,7 @@ AM_CONDITIONAL(INSTALL_EMACS_LISP, test "x$lispdir_realgud"
!= "x")
AC_CONFIG_FILES([Makefile \
common.mk \
- node-inspect/Makefile \
+ trepan-ni/Makefile \
test/Makefile \
])
AC_OUTPUT
diff --git a/realgud-node-inspect.el b/realgud-trepan-ni.el
similarity index 89%
rename from realgud-node-inspect.el
rename to realgud-trepan-ni.el
index bd7f39f..9ce52c4 100644
--- a/realgud-node-inspect.el
+++ b/realgud-trepan-ni.el
@@ -35,13 +35,13 @@
(require 'load-relative)
-(defgroup realgud-node-inspector nil
- "Realgud interface to the 'node inspect' debugger"
+(defgroup realgud-trepan-ni nil
+ "Realgud interface to the 'trepan-ni' debugger"
:group 'realgud
:version "24.3")
-(require-relative-list '( "./node-inspect/main" ) "realgud-")
-(load-relative "./node-inspect/main.el")
+(require-relative-list '( "./trepan-ni/main" ) "realgud-")
+(load-relative "./trepan-ni/main.el")
(provide-me)
diff --git a/test/test-loc-regexp-node-inspect.el
b/test/test-loc-regexp-node-inspect.el
index 58be563..8c47f03 100644
--- a/test/test-loc-regexp-node-inspect.el
+++ b/test/test-loc-regexp-node-inspect.el
@@ -6,7 +6,7 @@
(require 'realgud)
(load-file "./regexp-helper.el")
-(load-file "../node-inspect/init.el")
+(load-file "../trepan-ni/init.el")
(declare-function realgud-cmdbuf-info-loc-regexp 'realgud-buffer-command)
(declare-function cmdbuf-loc-match 'realgud-regexp-helper)
diff --git a/test/test-node-inspect.el b/test/test-node-inspect.el
index 659b9ad..d8180de 100644
--- a/test/test-node-inspect.el
+++ b/test/test-node-inspect.el
@@ -2,7 +2,7 @@
;; (test-simple-run "emacs -batch -L %s -l %s" (file-name-directory
(locate-library "test-simple.elc")) buffer-file-name)
(require 'test-simple)
-(load-file "../node-inspect/main.el")
+(load-file "../trepan-ni/main.el")
(eval-when-compile (defvar test:run-process-save))
diff --git a/node-inspect/Makefile.am b/trepan-ni/Makefile.am
similarity index 75%
rename from node-inspect/Makefile.am
rename to trepan-ni/Makefile.am
index aa624b8..648ea8f 100644
--- a/node-inspect/Makefile.am
+++ b/trepan-ni/Makefile.am
@@ -2,4 +2,4 @@ lisp_files = $(wildcard *.el)
EXTRA_DIST=$(lisp_files)
lisp_LISP = $(lisp_files)
include ../common.mk
-lispdir = @lispdir@/node-inspect
+lispdir = @lispdir@/trepan-ni
diff --git a/node-inspect/core.el b/trepan-ni/core.el
similarity index 68%
rename from node-inspect/core.el
rename to trepan-ni/core.el
index b3a13f1..41c785f 100644
--- a/node-inspect/core.el
+++ b/trepan-ni/core.el
@@ -30,36 +30,36 @@
;; FIXME: I think the following could be generalized and moved to
;; realgud-... probably via a macro.
-(defvar realgud:node-inspect-minibuffer-history nil
- "minibuffer history list for the command `node-inspect'.")
+(defvar realgud:trepan-ni-minibuffer-history nil
+ "minibuffer history list for the command `trepan-ni'.")
-(easy-mmode-defmap realgud:node-inspect-minibuffer-local-map
+(easy-mmode-defmap realgud:trepan-ni-minibuffer-local-map
'(("\C-i" . comint-dynamic-complete-filename))
- "Keymap for minibuffer prompting of node-inspect startup command."
+ "Keymap for minibuffer prompting of trepan-ni startup command."
:inherit minibuffer-local-map)
;; FIXME: I think this code and the keymaps and history
;; variable chould be generalized, perhaps via a macro.
-(defun node-inspect-query-cmdline (&optional opt-debugger)
+(defun trepan-ni-query-cmdline (&optional opt-debugger)
(realgud-query-cmdline
- 'realgud:node-inspect-suggest-invocation
- realgud:node-inspect-minibuffer-local-map
- 'realgud:node-inspect-minibuffer-history
+ 'realgud:trepan-ni-suggest-invocation
+ realgud:trepan-ni-minibuffer-local-map
+ 'realgud:trepan-ni-minibuffer-history
opt-debugger))
;;; FIXME: DRY this with other *-parse-cmd-args routines
-(defun node-inspect-parse-cmd-args (orig-args)
+(defun trepan-ni-parse-cmd-args (orig-args)
"Parse command line ORIG-ARGS for the name of script to debug.
ORIG-ARGS should contain a tokenized list of the command line to run.
We return the a list containing
-* the name of the debugger given (e.g. node-inspect) and its arguments - a
list of strings
+* the name of the debugger given (e.g. trepan-ni) and its arguments - a list
of strings
* the script name and its arguments - list of strings
For example for the following input:
(map 'list 'symbol-name
- '(node --interactive --debugger-port 5858 /tmp node-inspect ./gcd.js a b))
+ '(node --interactive --debugger-port 5858 /tmp trepan-ni ./gcd.js a b))
we might return:
((\"node\" \"--interactive\" \"--debugger-port\" \"5858\") nil
(\"/tmp/gcd.js\" \"a\" \"b\"))
@@ -68,7 +68,7 @@ Note that path elements have been expanded via
`expand-file-name'.
"
;; Parse the following kind of pattern:
- ;; node node-inspect-options script-name script-options
+ ;; node trepan-ni-options script-name script-options
(let (
(args orig-args)
(pair) ;; temp return from
@@ -78,8 +78,8 @@ Note that path elements have been expanded via
`expand-file-name'.
;; One dash is added automatically to the below, so
;; h is really -h and -debugger_port is really --debugger_port.
- (node-inspect-two-args '("-debugger_port"))
- (node-inspect-opt-two-args '())
+ (trepan-ni-two-args '("-debugger_port"))
+ (trepan-ni-opt-two-args '())
;; Things returned
(script-name nil)
@@ -92,13 +92,13 @@ Note that path elements have been expanded via
`expand-file-name'.
(list interpreter-args nil script-args)
;; else
(progn
- ;; Remove "node-inspect" (or "nodemon" or "node") from invocation like:
- ;; node-inspect --node-inspect-options script --script-options
+ ;; Remove "trepan-ni" (or "nodemon" or "node") from invocation like:
+ ;; trepan-ni --trepan-ni-options script --script-options
(setq debugger-name (file-name-sans-extension
(file-name-nondirectory (car args))))
(unless (string-match "^node\\(?:js\\|mon\\)?$" debugger-name)
(message
- "Expecting debugger name `%s' to be `node', `nodemon', or
`node-inspect'"
+ "Expecting debugger name `%s' to be `node', `nodemon', or
`trepan-ni'"
debugger-name))
(setq interpreter-args (list (pop args)))
@@ -114,7 +114,7 @@ Note that path elements have been expanded via
`expand-file-name'.
;; Options with arguments.
((string-match "^-" arg)
(setq pair (realgud-parse-command-arg
- args node-inspect-two-args node-inspect-opt-two-args))
+ args trepan-ni-two-args trepan-ni-opt-two-args))
(nconc interpreter-args (car pair))
(setq args (cadr pair)))
;; Anything else must be the script to debug.
@@ -125,15 +125,15 @@ Note that path elements have been expanded via
`expand-file-name'.
))
;; To silence Warning: reference to free variable
-(defvar realgud:node-inspect-command-name)
+(defvar realgud:trepan-ni-command-name)
-(defun realgud:node-inspect-suggest-invocation (debugger-name)
- "Suggest a node-inspect command invocation via `realgud-suggest-invocaton'"
- (realgud-suggest-invocation realgud:node-inspect-command-name
- realgud:node-inspect-minibuffer-history
+(defun realgud:trepan-ni-suggest-invocation (debugger-name)
+ "Suggest a trepan-ni command invocation via `realgud-suggest-invocaton'"
+ (realgud-suggest-invocation realgud:trepan-ni-command-name
+ realgud:trepan-ni-minibuffer-history
"js" "\\.js$"))
-(defun realgud:node-inspect-remove-ansi-shmutz()
+(defun realgud:trepan-ni-remove-ansi-shmutz()
"Remove ASCII escape sequences that node.js 'decorates' in
prompts and interactive output with"
(add-to-list
@@ -142,28 +142,28 @@ prompts and interactive output with"
(replace-regexp-in-string "\033\\[[0-9]+[GKJ]" "" output)))
)
-(defun realgud:node-inspect-reset ()
- "Node-Inspect cleanup - remove debugger's internal buffers (frame,
+(defun realgud:trepan-ni-reset ()
+ "Trepan-Ni cleanup - remove debugger's internal buffers (frame,
breakpoints, etc.)."
(interactive)
- ;; (node-inspect-breakpoint-remove-all-icons)
+ ;; (trepan-ni-breakpoint-remove-all-icons)
(dolist (buffer (buffer-list))
- (when (string-match "\\*node-inspect-[a-z]+\\*" (buffer-name buffer))
+ (when (string-match "\\*trepan-ni-[a-z]+\\*" (buffer-name buffer))
(let ((w (get-buffer-window buffer)))
(when w
(delete-window w)))
(kill-buffer buffer))))
-;; (defun node-inspect-reset-keymaps()
+;; (defun trepan-ni-reset-keymaps()
;; "This unbinds the special debugger keys of the source buffers."
;; (interactive)
-;; (setcdr (assq 'node-inspect-debugger-support-minor-mode
minor-mode-map-alist)
-;; node-inspect-debugger-support-minor-mode-map-when-deactive))
+;; (setcdr (assq 'trepan-ni-debugger-support-minor-mode minor-mode-map-alist)
+;; trepan-ni-debugger-support-minor-mode-map-when-deactive))
-(defun realgud:node-inspect-customize ()
- "Use `customize' to edit the settings of the `node-inspect' debugger."
+(defun realgud:trepan-ni-customize ()
+ "Use `customize' to edit the settings of the `trepan-ni' debugger."
(interactive)
- (customize-group 'realgud:node-inspect))
+ (customize-group 'realgud:trepan-ni))
-(provide-me "realgud:node-inspect-")
+(provide-me "realgud:trepan-ni-")
diff --git a/node-inspect/init.el b/trepan-ni/init.el
similarity index 50%
rename from node-inspect/init.el
rename to trepan-ni/init.el
index 0120e52..fe25481 100644
--- a/node-inspect/init.el
+++ b/trepan-ni/init.el
@@ -21,10 +21,10 @@
(require 'realgud-lang-js)
(require 'ansi-color)
-(defvar realgud:node-inspect-pat-hash)
+(defvar realgud:trepan-ni-pat-hash)
(declare-function make-realgud-loc-pat (realgud-loc))
-(defvar realgud:node-inspect-pat-hash (make-hash-table :test 'equal)
+(defvar realgud:trepan-ni-pat-hash (make-hash-table :test 'equal)
"Hash key is the what kind of pattern we want to match:
backtrace, prompt, etc. The values of a hash entry is a
realgud-loc-pat struct")
@@ -32,7 +32,7 @@ realgud-loc-pat struct")
;; before a command prompt.
;; For example:
;; break in /home/indutny/Code/git/indutny/myscript.js:1
-(setf (gethash "loc" realgud:node-inspect-pat-hash)
+(setf (gethash "loc" realgud:trepan-ni-pat-hash)
(make-realgud-loc-pat
:regexp (format
"\\(?:%s\\)*\\(?:break\\|exception\\) in %s:%s"
@@ -41,51 +41,51 @@ realgud-loc-pat struct")
:file-group 1
:line-group 2))
-;; Regular expression that describes a node-inspect command prompt
+;; Regular expression that describes a trepan-ni command prompt
;; For example:
;; debug>
-(setf (gethash "prompt" realgud:node-inspect-pat-hash)
+(setf (gethash "prompt" realgud:trepan-ni-pat-hash)
(make-realgud-loc-pat
:regexp (format "^\\(?:%s\\)*debug> " realgud:js-term-escape)
))
-;; Need an improved setbreak for this.
-;; ;; Regular expression that describes a "breakpoint set" line
-;; ;; 3 const armlet = require('armlet');
-;; ;; * 4 const client = new armlet.Client(
-;; ;; ^^^^
-;; ;;
-;; (setf (gethash "brkpt-set" realgud:node-inspect-pat-hash)
-;; (make-realgud-loc-pat
-;; :regexp "^\*[ ]*\\([0-9]+\\) \\(.+\\)"
-;; :line-group 1
-;; :text-group 2))
+;; realgud-loc-pat that describes a "breakpoint set" line
+;; For example:
+;; Breakpoint set in file /tmp/gcd.js, line 2.
+;; Breakpoint set in file /usr/lib/nodejs/module.js [module.js], line 380.
+(setf (gethash "brkpt-set" realgud:trepanjs-pat-hash)
+ (make-realgud-loc-pat
+ :regexp (format "^Breakpoint set in file %s, line %s.\n"
+ realgud:trepanjs-file-regexp
+ realgud:regexp-captured-num)
+ :file-group 2
+ :line-group 3))
;; Regular expression that describes a V8 backtrace line.
;; For example:
;; at repl:1:7
;; at Interface.controlEval
(/src/external-vcs/github/trepanjs/lib/interface.js:352:18)
;; at REPLServer.b [as eval] (domain.js:183:18)
-(setf (gethash "lang-backtrace" realgud:node-inspect-pat-hash)
+(setf (gethash "lang-backtrace" realgud:trepan-ni-pat-hash)
realgud:js-backtrace-loc-pat)
;; Regular expression that describes a debugger "delete" (breakpoint)
;; response.
;; For example:
;; Removed 1 breakpoint(s).
-(setf (gethash "brkpt-del" realgud:node-inspect-pat-hash)
+(setf (gethash "brkpt-del" realgud:trepan-ni-pat-hash)
(make-realgud-loc-pat
:regexp (format "^Removed %s breakpoint(s).\n"
realgud:regexp-captured-num)
:num 1))
-(defconst realgud:node-inspect-frame-start-regexp "\\(?:^\\|\n\\)\\(?:#\\)")
-(defconst realgud:node-inspect-frame-num-regexp realgud:regexp-captured-num)
-(defconst realgud:node-inspect-frame-module-regexp "[^ \t\n]+")
-(defconst realgud:node-inspect-frame-file-regexp "[^ \t\n]+")
+(defconst realgud:trepan-ni-frame-start-regexp "\\(?:^\\|\n\\)\\(?:#\\)")
+(defconst realgud:trepan-ni-frame-num-regexp realgud:regexp-captured-num)
+(defconst realgud:trepan-ni-frame-module-regexp "[^ \t\n]+")
+(defconst realgud:trepan-ni-frame-file-regexp "[^ \t\n]+")
-;; Regular expression that describes a node-inspect location generally shown
+;; Regular expression that describes a trepan-ni location generally shown
;; Regular expression that describes a debugger "backtrace" command line.
;; For example:
;; #0 module.js:380:17
@@ -96,12 +96,12 @@ realgud-loc-pat struct")
;; #5 Module._load module.js:312:12
;; #6 Module.runMain module.js:497:10
; ;#7 timers.js:110:15
-(setf (gethash "debugger-backtrace" realgud:node-inspect-pat-hash)
+(setf (gethash "debugger-backtrace" realgud:trepan-ni-pat-hash)
(make-realgud-loc-pat
- :regexp (concat realgud:node-inspect-frame-start-regexp
- realgud:node-inspect-frame-num-regexp " "
- "\\(?:" realgud:node-inspect-frame-module-regexp " \\)?"
- "\\(" realgud:node-inspect-frame-file-regexp "\\)"
+ :regexp (concat realgud:trepan-ni-frame-start-regexp
+ realgud:trepan-ni-frame-num-regexp " "
+ "\\(?:" realgud:trepan-ni-frame-module-regexp " \\)?"
+ "\\(" realgud:trepan-ni-frame-file-regexp "\\)"
":"
realgud:regexp-captured-num
":"
@@ -112,13 +112,13 @@ realgud-loc-pat struct")
:line-group 3
:char-offset-group 4))
-(defconst realgud:node-inspect-debugger-name "node-inspect" "Name of debugger")
+(defconst realgud:trepan-ni-debugger-name "trepan-ni" "Name of debugger")
;; ;; Regular expression that for a termination message.
-;; (setf (gethash "termination" realgud:node-inspect-pat-hash)
-;; "^node-inspect: That's all, folks...\n")
+;; (setf (gethash "termination" realgud:trepan-ni-pat-hash)
+;; "^trepan-ni: That's all, folks...\n")
-(setf (gethash "font-lock-keywords" realgud:node-inspect-pat-hash)
+(setf (gethash "font-lock-keywords" realgud:trepan-ni-pat-hash)
'(
;; The frame number and first type name, if present.
;; E.g. ->0 in file `/etc/init.d/apparmor' at line 35
@@ -140,46 +140,46 @@ realgud-loc-pat struct")
(1 realgud-line-number-face))
))
-(setf (gethash "node-inspect" realgud-pat-hash)
- realgud:node-inspect-pat-hash)
+(setf (gethash "trepan-ni" realgud-pat-hash)
+ realgud:trepan-ni-pat-hash)
;; Prefix used in variable names (e.g. short-key-mode-map) for
;; this debugger
-(setf (gethash "node-inspect" realgud:variable-basename-hash)
- "realgud:node-inspect")
+(setf (gethash "trepan-ni" realgud:variable-basename-hash)
+ "realgud:trepan-ni")
-(defvar realgud:node-inspect-command-hash (make-hash-table :test 'equal)
+(defvar realgud:trepan-ni-command-hash (make-hash-table :test 'equal)
"Hash key is command name like 'finish' and the value is
- the node-inspect command to use, like 'out'")
+ the trepan-ni command to use, like 'out'")
-(setf (gethash realgud:node-inspect-debugger-name
+(setf (gethash realgud:trepan-ni-debugger-name
realgud-command-hash)
- realgud:node-inspect-command-hash)
-
-(setf (gethash "backtrace" realgud:node-inspect-command-hash) "backtrace")
-(setf (gethash "break" realgud:node-inspect-command-hash)
- "setBreakpoint('%X',%l)")
-(setf (gethash "continue" realgud:node-inspect-command-hash) "cont")
-(setf (gethash "kill" realgud:node-inspect-command-hash) "kill")
-(setf (gethash "quit" realgud:node-inspect-command-hash) "")
-(setf (gethash "finish" realgud:node-inspect-command-hash) "out")
-(setf (gethash "shell" realgud:node-inspect-command-hash) "repl")
-(setf (gethash "eval" realgud:node-inspect-command-hash) "exec('%s')")
+ realgud:trepan-ni-command-hash)
+
+(setf (gethash "backtrace" realgud:trepan-ni-command-hash) "backtrace")
+(setf (gethash "break" realgud:trepan-ni-command-hash)
+ "break('%X',%l)")
+(setf (gethash "continue" realgud:trepan-ni-command-hash) "cont")
+(setf (gethash "kill" realgud:trepan-ni-command-hash) "kill")
+(setf (gethash "quit" realgud:trepan-ni-command-hash) "")
+(setf (gethash "finish" realgud:trepan-ni-command-hash) "out")
+(setf (gethash "shell" realgud:trepan-ni-command-hash) "repl")
+(setf (gethash "eval" realgud:trepan-ni-command-hash) "eval('%s')")
;; We need aliases for step and next because the default would
-;; do step 1 and node-inspect doesn't handle this. And if it did,
+;; do step 1 and trepan-ni doesn't handle this. And if it did,
;; it would probably look like step(1).
-(setf (gethash "step" realgud:node-inspect-command-hash) "step")
-(setf (gethash "next" realgud:node-inspect-command-hash) "next")
+(setf (gethash "step" realgud:trepan-ni-command-hash) "step")
+(setf (gethash "next" realgud:trepan-ni-command-hash) "next")
;; Unsupported features:
-(setf (gethash "jump" realgud:node-inspect-command-hash)
"*not-implemented*")
-(setf (gethash "up" realgud:node-inspect-command-hash)
"*not-implemented*")
-(setf (gethash "down" realgud:node-inspect-command-hash)
"*not-implemented*")
-(setf (gethash "frame" realgud:node-inspect-command-hash)
"*not-implemented*")
+(setf (gethash "jump" realgud:trepan-ni-command-hash)
"*not-implemented*")
+(setf (gethash "up" realgud:trepan-ni-command-hash)
"*not-implemented*")
+(setf (gethash "down" realgud:trepan-ni-command-hash)
"*not-implemented*")
+(setf (gethash "frame" realgud:trepan-ni-command-hash)
"*not-implemented*")
-(setf (gethash "node-inspect" realgud-command-hash)
realgud:node-inspect-command-hash)
-(setf (gethash "node-inspect" realgud-pat-hash) realgud:node-inspect-pat-hash)
+(setf (gethash "trepan-ni" realgud-command-hash)
realgud:trepan-ni-command-hash)
+(setf (gethash "trepan-ni" realgud-pat-hash) realgud:trepan-ni-pat-hash)
-(provide-me "realgud:node-inspect-")
+(provide-me "realgud:trepan-ni-")
diff --git a/node-inspect/main.el b/trepan-ni/main.el
similarity index 68%
rename from node-inspect/main.el
rename to trepan-ni/main.el
index d62bd24..3c63f3f 100644
--- a/node-inspect/main.el
+++ b/trepan-ni/main.el
@@ -13,17 +13,17 @@
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
-;; `realgud:node-inspect' Main interface to "node inspect" debugger via Emacs
+;; `realgud:trepan-ni' Main interface to "node inspect" debugger via Emacs
(require 'cl-lib)
(require 'load-relative)
(require 'realgud)
-(require-relative-list '("core" "track-mode") "realgud:node-inspect-")
+(require-relative-list '("core" "track-mode") "realgud:trepan-ni-")
;; This is needed, or at least the docstring part of it is needed to
;; get the customization menu to work in Emacs 24.
-(defgroup realgud:node-inspect nil
- "The realgud interface to the node-inspect debugger"
+(defgroup realgud:trepan-ni nil
+ "The realgud interface to the trepan-ni debugger"
:group 'realgud
:version "24.3")
@@ -31,30 +31,30 @@
;; User-definable variables
;;
-(defcustom realgud:node-inspect-command-name
+(defcustom realgud:trepan-ni-command-name
"node inspect"
"File name for executing the Javascript debugger and command options.
This should be an executable on your path, or an absolute file name."
:type 'string
- :group 'realgud:node-inspect)
+ :group 'realgud:trepan-ni)
;; -------------------------------------------------------------------
;; The end.
;;
-(declare-function node-inspect-track-mode 'realgud-node-inspect-track-mode)
-(declare-function node-inspect-query-cmdline 'realgud:node-inspect-core)
-(declare-function node-inspect-parse-cmd-args 'realgud:node-inspect-core)
+(declare-function trepan-ni-track-mode 'realgud-trepan-ni-track-mode)
+(declare-function trepan-ni-query-cmdline 'realgud:trepan-ni-core)
+(declare-function trepan-ni-parse-cmd-args 'realgud:trepan-ni-core)
;;;###autoload
-(defun realgud:node-inspect (&optional opt-cmd-line no-reset)
- "Invoke the node-inspect shell debugger and start the Emacs user interface.
+(defun realgud:trepan-ni (&optional opt-cmd-line no-reset)
+ "Invoke the trepan-ni shell debugger and start the Emacs user interface.
-String OPT-CMD-LINE specifies how to run node-inspect.
+String OPT-CMD-LINE specifies how to run trepan-ni.
OPT-CMD-LINE is treated like a shell string; arguments are
tokenized by `split-string-and-unquote'. The tokenized string is
-parsed by `node-inspect-parse-cmd-args' and path elements found by that
+parsed by `trepan-ni-parse-cmd-args' and path elements found by that
are expanded using `realgud:expand-file-name-if-exists'.
Normally, command buffers are reused when the same debugger is
@@ -67,9 +67,9 @@ fringe and marginal icons.
"
(interactive)
(let ((cmd-buf
- (realgud:run-debugger "node-inspect"
- 'node-inspect-query-cmdline
'node-inspect-parse-cmd-args
- 'realgud:node-inspect-minibuffer-history
+ (realgud:run-debugger "trepan-ni"
+ 'trepan-ni-query-cmdline
'trepan-ni-parse-cmd-args
+ 'realgud:trepan-ni-minibuffer-history
opt-cmd-line no-reset)))
;; (if cmd-buf
;; (with-current-buffer cmd-buf
@@ -80,6 +80,6 @@ fringe and marginal icons.
;; )
))
-(defalias 'node-inspect 'realgud:node-inspect)
+(defalias 'trepan-ni 'realgud:trepan-ni)
(provide-me "realgud-")
diff --git a/node-inspect/track-mode.el b/trepan-ni/track-mode.el
similarity index 56%
rename from node-inspect/track-mode.el
rename to trepan-ni/track-mode.el
index 8bd54ee..c4f165d 100644
--- a/node-inspect/track-mode.el
+++ b/trepan-ni/track-mode.el
@@ -22,58 +22,62 @@
(require 'realgud)
-(require-relative-list '("core" "init") "realgud:node-inspect-")
+(require-relative-list '("core" "init") "realgud:trepan-ni-")
-(defun realgud:node-inspect-track-mode-hook()
- (if realgud:node-inspect-track-mode
+(realgud-track-mode-vars "realgud:trepan-ni")
+
+(defun realgud:trepan-ni-track-mode-hook()
+ (if realgud:trepan-ni-track-mode
(progn
- (use-local-map realgud:node-inspect-track-mode-map)
+ (use-local-map realgud:trepan-ni-track-mode-map)
(realgud:remove-ansi-schmutz)
- (message "using node-inspect mode map")
+ (message "using trepan-ni mode map")
)
- (message "node-inspect track-mode-hook disable called"))
+ (message "trepan-ni track-mode-hook disable called"))
)
;; FIXME: this shouldn't be needed
-(defvar realgud:node-inspect-track-mode-map (make-keymap))
+(defvar realgud:trepan-ni-track-mode-map (make-keymap))
+(define-key realgud:trepan-ni-track-mode-map
+ (kbd "C-c !f") 'realgud:js-goto-file-line)
-(define-minor-mode realgud:node-inspect-track-mode
- "Minor mode for tracking node-inspect source locations inside a node-inspect
shell via realgud.
+(define-minor-mode realgud:trepan-ni-track-mode
+ "Minor mode for tracking trepan-ni source locations inside a trepan-ni shell
via realgud.
If called interactively with no prefix argument, the mode is
toggled. A prefix argument, captured as ARG, enables the mode if
the argument is positive, and disables it otherwise.
-\\{realgud:node-inspect-track-mode-map}"
+\\{realgud:trepan-ni-track-mode-map}"
:init-value nil
- ;; :lighter " node-inspect" ;; mode-line indicator from realgud-track is
sufficient.
+ ;; :lighter " trepan-ni" ;; mode-line indicator from realgud-track is
sufficient.
;; The minor mode bindings.
:global nil
- :group 'realgud:node-inspect
- :keymap realgud:node-inspect-track-mode-map
+ :group 'realgud:trepan-ni
+ :keymap realgud:trepan-ni-track-mode-map
- (if realgud:node-inspect-track-mode
+ (if realgud:trepan-ni-track-mode
(progn
- (realgud:track-set-debugger "node-inspect")
- (realgud:node-inspect-track-mode-hook)
+ (realgud:track-set-debugger "trepan-ni")
+ (realgud:trepan-ni-track-mode-hook)
(realgud:track-mode-enable))
(progn
(setq realgud-track-mode nil)
))
)
-;; ;; Debugger commands that node-inspect doesn't have
-;; (define-key node-inspect-track-mode-map
+;; ;; Debugger commands that trepan-ni doesn't have
+;; (define-key trepan-ni-track-mode-map
;; [remap realgud:cmd-newer-frame] 'undefined)
-;; (define-key node-inspect-track-mode-map
+;; (define-key trepan-ni-track-mode-map
;; [remap realgud:cmd-older-frame] 'undefined)
-(defvar realgud:node-inspect-short-key-mode-map (make-keymap))
+(defvar realgud:trepan-ni-short-key-mode-map (make-keymap))
-(define-key realgud:node-inspect-short-key-mode-map
+(define-key realgud:trepan-ni-short-key-mode-map
[remap realgud:cmd-step] 'realgud:cmd-step-no-arg)
-(define-key realgud:node-inspect-short-key-mode-map
+(define-key realgud:trepan-ni-short-key-mode-map
[remap realgud:cmd-step] 'realgud:cmd-step-no-arg)
-(define-key realgud:node-inspect-short-key-mode-map
+(define-key realgud:trepan-ni-short-key-mode-map
[remap realgud:cmd-next] 'realgud:cmd-next-no-arg)
-(provide-me "realgud:node-inspect-")
+(provide-me "realgud:trepan-ni-")
- [elpa] externals/realgud-trepan-ni 7dd2387 07/25: Correct acceptable debugger names in suggest parse-cmd-args, (continued)
- [elpa] externals/realgud-trepan-ni 7dd2387 07/25: Correct acceptable debugger names in suggest parse-cmd-args, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-trepan-ni b9b4bf4 11/25: Track breakpoint-deleted status change, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-trepan-ni 9b58f4f 14/25: Bump version, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-trepan-ni 79ff234 18/25: Merge branch 'master' of github.com:realgud/realgud-trepan-ni, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-trepan-ni 06e59a4 22/25: Small package-lint tweak, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-trepan-ni 5cb8422 19/25: Change description to match the others, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-trepan-ni 56c25c7 24/25: node 12 marks frame changes, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-trepan-ni 0d613f1 21/25: Fix up backtrace regexps, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-trepan-ni fb3b6db 15/25: run package-lint for MELPA release, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-trepan-ni af8ad9d 17/25: Checkdoc linting, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-trepan-ni 68079f2 01/25: Start trepan-ni,
Rocky Bernstein <=
- [elpa] externals/realgud-trepan-ni 81b284c 23/25: Merge branch 'master' of github.com:realgud/realgud-trepan-ni, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-trepan-ni 5143caf 16/25: Checkdoc linting, Rocky Bernstein, 2019/05/23
- [elpa] externals/realgud-trepan-ni a57fced 25/25: Administrivia, Rocky Bernstein, 2019/05/23