Skip to content

Commit 8960be0

Browse files
committed
Autoload `dap-debug'
`dap-debug' is dap-mode's main entry point, and as such should be auto-loaded.
1 parent 1126a50 commit 8960be0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

dap-mode.el

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1631,6 +1631,7 @@ list are called and their results (which must be lists) are
16311631
concatenated. The user can then choose one of them from the
16321632
resulting list.")
16331633

1634+
;;;###autoload
16341635
(defun dap-debug (debug-args)
16351636
"Run debug configuration DEBUG-ARGS.
16361637
@@ -1649,11 +1650,11 @@ after selecting configuration template."
16491650
;; will fail.
16501651
(let* ((debug-args (dap-variables-expand-in-launch-configuration debug-args))
16511652
(launch-args (or (-some-> (plist-get debug-args :type)
1652-
(gethash dap--debug-providers)
1653-
(funcall debug-args))
1654-
(user-error "Have you loaded the `%s' specific dap package?"
1655-
(or (plist-get debug-args :type)
1656-
(user-error "%s does not specify :type" debug-args))))))
1653+
(gethash dap--debug-providers)
1654+
(funcall debug-args))
1655+
(user-error "Have you loaded the `%s' specific dap package?"
1656+
(or (plist-get debug-args :type)
1657+
(user-error "%s does not specify :type" debug-args))))))
16571658
(if (functionp launch-args)
16581659
(funcall launch-args #'dap-start-debugging-noexpand)
16591660
(dap-start-debugging-noexpand launch-args))))

0 commit comments

Comments
 (0)