[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dape c780c6f1e2 013/123: Fix crash when % is present in
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dape c780c6f1e2 013/123: Fix crash when % is present in log and expression breakpoints |
Date: |
Tue, 5 Dec 2023 03:57:56 -0500 (EST) |
branch: externals/dape
commit c780c6f1e2572df350f0229b76cd065d9cf0942c
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>
Fix crash when % is present in log and expression breakpoints
---
dape.el | 29 ++++++++++++++++++++---------
1 file changed, 20 insertions(+), 9 deletions(-)
diff --git a/dape.el b/dape.el
index edcb6d5bf5..cb4c00e8ce 100644
--- a/dape.el
+++ b/dape.el
@@ -414,10 +414,11 @@ The hook is run with one argument, the compilation
buffer."
(zerop seq))
(setq dape--seq-event seq)
(dape-handle-event process
- (intern (plist-get object :event))
- (plist-get object :body)))
+ (intern (plist-get object :event))
+ (plist-get object :body)))
(t (dape--debug 'error
- "Event ignored due to request seq %d < last handled seq %d" seq
dape--seq-event)))))
+ "Event ignored due to request seq %d < last handled
seq %d"
+ seq dape--seq-event)))))
(_ (dape--debug 'info "No handler for type %s" type)))))
(defun dape--process-filter (process string)
@@ -1629,14 +1630,24 @@ Watched symbols are displayed in *dape-info* buffer.
(list
(widget-convert
'file-link
- :format (concat "%t%[%v%]"
- (overlay-get overlay 'after-string)
- "\n")
+ :format (concat
+ "%t%[%v%]"
+ ;; % needs to be escaped for widget-format but
+ ;; this is not without issue as widget-format
+ ;; inserts the escaped % without 'face.
+ (when-let ((after-string
+ (overlay-get overlay
+ 'after-string)))
+ (save-match-data
+ (replace-regexp-in-string "%"
+ "%%"
+ after-string)))
+ "\n")
:action (lambda (&rest _)
(dape--goto-source `(:source (:path ,file)
- :line ,line)
- nil
- t))
+ :line ,line)
+ nil
+ t))
:tag (if (member (cons file line)
current-stopped-files-lines)
(propertize "→ " 'face 'bold)
- [elpa] externals/dape 6da668abc4 009/123: Fix themes link in readme, (continued)
- [elpa] externals/dape 6da668abc4 009/123: Fix themes link in readme, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 6c501bfbc9 004/123: Fix watch dwim use symbol at point, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 96b1815ed3 001/123: Initial commit, ELPA Syncer, 2023/12/05
- [elpa] externals/dape a21992c208 002/123: Add screenshot, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 6907fade6a 003/123: Fixup readme, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 572f2b2976 005/123: Fix bugs section, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 32cbd92a76 007/123: Add straight installation to readme, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 1bd018e477 015/123: Update formatting in roadmap section, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 2d4c0e6748 022/123: Add file and line to stack in info buffer, ELPA Syncer, 2023/12/05
- [elpa] externals/dape d896720cc1 011/123: Add projectile configuration in readme, ELPA Syncer, 2023/12/05
- [elpa] externals/dape c780c6f1e2 013/123: Fix crash when % is present in log and expression breakpoints,
ELPA Syncer <=
- [elpa] externals/dape e314b97bc1 016/123: Refactor update and update ui, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 480bcd14f8 017/123: Improve REPL welcome message, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 57d3f6e1ff 024/123: Fix typo, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 20a8e99c24 018/123: Fix indentation, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 1ed319ba5f 020/123: Reword repl welcome message, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 3e51a71f52 034/123: Fixup readme, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 60283647ff 035/123: Fixup suggestions from emacs-devel, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ffaa4278cd 036/123: Fix checkdoc issues, ELPA Syncer, 2023/12/05
- [elpa] externals/dape de1508f4b3 037/123: Change to old style of keymap define with defvar, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ee2aaad60f 038/123: Invoke customize-variable if dape-configs is null, ELPA Syncer, 2023/12/05