[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dape bb54d57fc6 088/123: Change dape--debug to macro to
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dape bb54d57fc6 088/123: Change dape--debug to macro to remove arg evaluation |
Date: |
Tue, 5 Dec 2023 03:58:03 -0500 (EST) |
branch: externals/dape
commit bb54d57fc694ed67f06c95c4e68655b5c9bb1b25
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>
Change dape--debug to macro to remove arg evaluation
---
dape.el | 23 +++++++++++------------
1 file changed, 11 insertions(+), 12 deletions(-)
diff --git a/dape.el b/dape.el
index 63a81bca3b..39e573800f 100644
--- a/dape.el
+++ b/dape.el
@@ -527,21 +527,20 @@ Content-Length: \\([[:digit:]]+\\)\r?\n\
\r?\n"
"Matches debug adapter protocol header.")
-(defun dape--debug (type string &rest objects)
+(defmacro dape--debug (type string &rest objects)
"Prints STRING of TYPE to *dape-debug*.
See `format' for STRING and OBJECTS usage.
See `dape-debug-on' for TYPE information."
- (when (memq type dape--debug-on)
- (with-current-buffer (get-buffer-create "*dape-debug*")
- (setq buffer-read-only t)
- (goto-char (point-max))
- (let ((inhibit-read-only t))
- (insert (concat (propertize (format "[%s]"
- (symbol-name type))
- 'face 'match)
- " "
- (apply 'format string objects))
- "\n")))))
+ `(when (memq ,type dape--debug-on)
+ (let ((objects (list ,@objects)))
+ (with-current-buffer (get-buffer-create "*dape-debug*")
+ (setq buffer-read-only t)
+ (goto-char (point-max))
+ (let ((inhibit-read-only t))
+ (insert (concat (propertize (format "[%s]" (symbol-name ,type))
'face 'match)
+ " "
+ (apply 'format ,string objects))
+ "\n"))))))
(defun dape--live-process (&optional nowarn)
"Get current live process.
- [elpa] externals/dape a55f8d7196 076/123: Rework `dape--read-config', (continued)
- [elpa] externals/dape a55f8d7196 076/123: Rework `dape--read-config', ELPA Syncer, 2023/12/05
- [elpa] externals/dape 3149577a9e 083/123: Use dape--repl-prompt var, ELPA Syncer, 2023/12/05
- [elpa] externals/dape e34a87dd67 097/123: Handle capabilities event, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ca555bcba3 112/123: UI rewrite, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 20105f5b47 121/123: Harden dape-kill action as per specification, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 94b99c3a5b 066/123: Fix wrong error for step-like functions when no stopped threads, ELPA Syncer, 2023/12/05
- [elpa] externals/dape b501759e89 072/123: Change default for `dape-repl-use-shorthand', ELPA Syncer, 2023/12/05
- [elpa] externals/dape 6ec0bfbcf2 079/123: Remove busy wait from dape-kill, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ff3037cb58 081/123: Use same buffer strategy on dape-quit-disconnect, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 9be8f20685 084/123: Fix zombied REPL dummy processes, ELPA Syncer, 2023/12/05
- [elpa] externals/dape bb54d57fc6 088/123: Change dape--debug to macro to remove arg evaluation,
ELPA Syncer <=
- [elpa] externals/dape 35d55de0c5 090/123: Improve robustness of DAP parsing, ELPA Syncer, 2023/12/05
- [elpa] externals/dape f40d7932cc 093/123: Print both description and text from stopped event, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 6b4cebae5f 098/123: Use own keymap for dape--config-read, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ff3a27dbbd 099/123: Fix a typo, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ee2ecae446 122/123: Bump version and add FSF copyright line, ELPA Syncer, 2023/12/05
- [elpa] externals/dape b52882f627 123/123: Fix dape-key-prefix type #28, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 5499b7d3d1 114/123: Add fringe breakpoint icon, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 2e8202ad9a 006/123: Small doc fixups, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 73150fca55 063/123: Add paging to dape info variables to reduce UI locking, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 1bef80cf37 068/123: Remove confusing default for dape-main-functions, ELPA Syncer, 2023/12/05