Rename feature/debug => feature/debugger

This commit is contained in:
Henrik Lissner 2017-09-23 14:29:39 +02:00
parent 97ea2bd596
commit 637824e543
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
4 changed files with 12 additions and 12 deletions

View file

@ -1,7 +1,7 @@
;;; feature/debug/autoload/debug.el -*- lexical-binding: t; -*- ;;; feature/debugger/autoload/debug.el -*- lexical-binding: t; -*-
;;;###autoload ;;;###autoload
(defun +debug/quit () (defun +debugger/quit ()
(interactive) (interactive)
(ignore-errors (call-interactively 'realgud:cmd-quit)) (ignore-errors (call-interactively 'realgud:cmd-quit))
(doom/popup-close) (doom/popup-close)

View file

@ -1,7 +1,7 @@
;;; feature/debug/autoload/evil.el -*- lexical-binding: t; -*- ;;; feature/debugger/autoload/evil.el -*- lexical-binding: t; -*-
;;;###autoload (autoload '+debug:run "feature/debug/autoload/evil" nil t) ;;;###autoload (autoload '+debugger:run "feature/debugger/autoload/evil" nil t)
(evil-define-command +debug:run (&optional path) (evil-define-command +debugger:run (&optional path)
"Initiate debugger for current major mode" "Initiate debugger for current major mode"
(interactive "<f>") (interactive "<f>")
(let ((default-directory (doom-project-root))) (let ((default-directory (doom-project-root)))
@ -25,7 +25,7 @@
(haskell-debug)) (haskell-debug))
(t (user-error "No debugger for %s" major-mode))))) (t (user-error "No debugger for %s" major-mode)))))
;;;###autoload (autoload '+debug:toggle-breakpoint "feature/debug/autoload/evil" nil t) ;;;###autoload (autoload '+debugger:toggle-breakpoint "feature/debugger/autoload/evil" nil t)
(evil-define-command +debug:toggle-breakpoint (&optional bang) (evil-define-command +debugger:toggle-breakpoint (&optional bang)
(interactive "<!>") (interactive "<!>")
(call-interactively (if bang 'realgud:cmd-clear 'realgud:cmd-break))) (call-interactively (if bang #'realgud:cmd-clear #'realgud:cmd-break)))

View file

@ -1,4 +1,4 @@
;;; feature/debug/config.el -*- lexical-binding: t; -*- ;;; feature/debugger/config.el -*- lexical-binding: t; -*-
(def-package! realgud (def-package! realgud
:commands (realgud:gdb realgud:trepanjs realgud:bashdb realgud:zshdb) :commands (realgud:gdb realgud:trepanjs realgud:bashdb realgud:zshdb)
@ -19,7 +19,7 @@
;; Monkey-patch `realgud:run-process' to run in a popup. ;; Monkey-patch `realgud:run-process' to run in a popup.
;; TODO Find a more elegant solution ;; TODO Find a more elegant solution
;; FIXME Causes realgud:cmd-* to focus popup on every invocation ;; FIXME Causes realgud:cmd-* to focus popup on every invocation
(defun +debug*realgud-run-process (defun +debugger*realgud-run-process
(debugger-name script-filename cmd-args minibuffer-history-var &optional no-reset) (debugger-name script-filename cmd-args minibuffer-history-var &optional no-reset)
(let* ((cmd-buf (apply #'realgud-exec-shell debugger-name script-filename (let* ((cmd-buf (apply #'realgud-exec-shell debugger-name script-filename
(car cmd-args) no-reset (cdr cmd-args))) (car cmd-args) no-reset (cdr cmd-args)))
@ -42,5 +42,5 @@
(if cmd-buf (switch-to-buffer cmd-buf)) (if cmd-buf (switch-to-buffer cmd-buf))
(message "Error running command: %s" (mapconcat #'identity cmd-args " ")))) (message "Error running command: %s" (mapconcat #'identity cmd-args " "))))
cmd-buf)) cmd-buf))
(advice-add #'realgud:run-process :override #'+debug*realgud-run-process)) (advice-add #'realgud:run-process :override #'+debugger*realgud-run-process))

View file

@ -1,4 +1,4 @@
;; -*- no-byte-compile: t; -*- ;; -*- no-byte-compile: t; -*-
;;; feature/debug/packages.el ;;; feature/debugger/packages.el
(package! realgud) (package! realgud)