[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dape f423809b2f 8/9: Remove useless interactive prefix
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dape f423809b2f 8/9: Remove useless interactive prefix arg |
Date: |
Wed, 20 Dec 2023 12:57:45 -0500 (EST) |
branch: externals/dape
commit f423809b2f18527df4f7cfa20b121d333b0cf227
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>
Remove useless interactive prefix arg
---
dape.el | 51 +++++++++++++++++++++++++--------------------------
1 file changed, 25 insertions(+), 26 deletions(-)
diff --git a/dape.el b/dape.el
index 0951fb9e58..8300dbe30c 100644
--- a/dape.el
+++ b/dape.el
@@ -511,26 +511,25 @@ The hook is run with one argument, the compilation
buffer."
(declare (indent 2))
`(,request-fn ,@args (dape--callback ,@body)))
-(defun dape--next-like-command (command &optional arg)
+(defun dape--next-like-command (command)
"Helper for interactive step like commands.
Run step like COMMAND. If ARG is set run COMMAND ARG times."
(if (dape--stopped-threads)
- (dotimes (_ (or arg 1))
- (dape-request (dape--live-process)
- command
- `(,@(dape--thread-id-object)
- ,@(when (plist-get dape--capabilities
- :supportsSteppingGranularity)
- (list :granularity
- (symbol-name dape-stepping-granularity))))
- (dape--callback
- (when success
- (dape--update-state "running")
- (dape--remove-stack-pointers)
- (dolist (thread dape--threads)
- (plist-put thread :status "running"))
- (run-hooks 'dape-update-ui-hooks)))))
- (user-error "No stopped threads")))
+ (dape-request (dape--live-process)
+ command
+ `(,@(dape--thread-id-object)
+ ,@(when (plist-get dape--capabilities
+ :supportsSteppingGranularity)
+ (list :granularity
+ (symbol-name dape-stepping-granularity))))
+ (dape--callback
+ (when success
+ (dape--update-state "running")
+ (dape--remove-stack-pointers)
+ (dolist (thread dape--threads)
+ (plist-put thread :status "running"))
+ (run-hooks 'dape-update-ui-hooks)))))
+ (user-error "No stopped threads"))
(defun dape--thread-id-object ()
"Helper to construct a thread id object."
@@ -1607,20 +1606,20 @@ Starts a new process as per request of the debug
adapter."
;;; Commands
-(defun dape-next (&optional arg)
+(defun dape-next ()
"Step one line (skip functions)."
- (interactive (list current-prefix-arg))
- (dape--next-like-command "next" arg))
+ (interactive)
+ (dape--next-like-command "next"))
-(defun dape-step-in (&optional arg)
+(defun dape-step-in ()
"Steps into function/method. If not possible behaves like `dape-next'."
- (interactive (list current-prefix-arg))
- (dape--next-like-command "stepIn" arg))
+ (interactive)
+ (dape--next-like-command "stepIn"))
-(defun dape-step-out (&optional arg)
+(defun dape-step-out ()
"Steps out of function/method. If not possible behaves like `dape-next'."
- (interactive (list current-prefix-arg))
- (dape--next-like-command "stepOut" arg))
+ (interactive)
+ (dape--next-like-command "stepOut"))
(defun dape-continue ()
"Resumes execution."
- [elpa] externals/dape updated (432776f347 -> 9a75efe29c), ELPA Syncer, 2023/12/20
- [elpa] externals/dape 8d7a979a56 2/9: Use python instead of default python3 in debugpy #29, ELPA Syncer, 2023/12/20
- [elpa] externals/dape 1fb479d757 6/9: Fix warnings, ELPA Syncer, 2023/12/20
- [elpa] externals/dape f423809b2f 8/9: Remove useless interactive prefix arg,
ELPA Syncer <=
- [elpa] externals/dape 0f9b849b77 7/9: Fix goto breakpoint, ELPA Syncer, 2023/12/20
- [elpa] externals/dape e4b0cdbe46 1/9: Fix faulty minibuffer binding, ELPA Syncer, 2023/12/20
- [elpa] externals/dape a0f5664c44 4/9: Improve runInTerminal request, use correct cwd, ELPA Syncer, 2023/12/20
- [elpa] externals/dape ae39e2e647 3/9: Refactor startDebugRequest, ELPA Syncer, 2023/12/20
- [elpa] externals/dape 8a5c388ba9 5/9: Use integrated terminal as the python default, ELPA Syncer, 2023/12/20
- [elpa] externals/dape 9a75efe29c 9/9: Improve usefulness of dape-evaluate-expression, ELPA Syncer, 2023/12/20