[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dape b42b7def86 046/123: Fix timers when repl buffer is
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dape b42b7def86 046/123: Fix timers when repl buffer is not available |
Date: |
Tue, 5 Dec 2023 03:57:59 -0500 (EST) |
branch: externals/dape
commit b42b7def8682b07185a26d487167044b1e5d1465
Author: Daniel Pettersson <daniel@dpettersson.net>
Commit: Daniel Pettersson <daniel@dpettersson.net>
Fix timers when repl buffer is not available
---
dape.el | 52 ++++++++++++++++++++++++++--------------------------
1 file changed, 26 insertions(+), 26 deletions(-)
diff --git a/dape.el b/dape.el
index cf5e6ee520..7e93a385b3 100644
--- a/dape.el
+++ b/dape.el
@@ -2144,35 +2144,35 @@ interactively or if SELECT-BUFFER is non nil."
(defun dape--repl-insert-text (msg &optional face)
"Insert MSG with FACE in *dape-repl* buffer."
- (cond
- (dape--repl-insert-text-guard
- (run-with-timer 0.1 nil 'dape--repl-insert-text msg))
- (t
- (setq dape--repl-insert-text-guard t)
- (when-let ((buffer (get-buffer "*dape-repl*")))
- (with-current-buffer buffer
- (save-excursion
- (condition-case err
- (progn
- (goto-char (point-max))
- (comint-previous-prompt 0)
- (forward-line -1)
- (end-of-line)
- (when-let (line (thing-at-point 'line))
- (when (eq (aref line 0) ?>)
- (let ((inhibit-read-only t))
- (insert "\n"))))
- (let ((inhibit-read-only t))
- (insert (propertize msg 'font-lock-face face))))
- (error
- (setq dape--repl-insert-text-guard nil)
- (signal (car err) (cdr err))))
- (setq dape--repl-insert-text-guard nil))))
- (unless (get-buffer-window "*dape-repl*")
+ (if (not (get-buffer-window "*dape-repl*"))
(when (stringp msg)
(message (format "%s"
(string-trim msg "\\\n" "\\\n"))
- 'face face))))))
+ 'face face))
+ (cond
+ (dape--repl-insert-text-guard
+ (run-with-timer 0.1 nil 'dape--repl-insert-text msg))
+ (t
+ (setq dape--repl-insert-text-guard t)
+ (when-let ((buffer (get-buffer "*dape-repl*")))
+ (with-current-buffer buffer
+ (save-excursion
+ (condition-case err
+ (progn
+ (goto-char (point-max))
+ (comint-previous-prompt 0)
+ (forward-line -1)
+ (end-of-line)
+ (when-let (line (thing-at-point 'line))
+ (when (eq (aref line 0) ?>)
+ (let ((inhibit-read-only t))
+ (insert "\n"))))
+ (let ((inhibit-read-only t))
+ (insert (propertize msg 'font-lock-face face))))
+ (error
+ (setq dape--repl-insert-text-guard nil)
+ (signal (car err) (cdr err)))))))
+ (setq dape--repl-insert-text-guard nil)))))
(defun dape--repl-input-sender (dummy-process input)
"Dape repl `comint-input-sender'."
- [elpa] externals/dape b7f68f1b96 021/123: Update readme with a bit more helpful path example, (continued)
- [elpa] externals/dape b7f68f1b96 021/123: Update readme with a bit more helpful path example, ELPA Syncer, 2023/12/05
- [elpa] externals/dape c7c085a94a 012/123: Added roadmap, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 2376cf5400 010/123: Resolve symbols in config evaluation, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ed37a0cd5b 025/123: Add exception breakpoints, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 8418a68442 026/123: Fix repl faces, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 815a880f48 027/123: Rename dape input vars, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 4eb75e39b2 031/123: Small readme fixup, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 04aabf1862 041/123: Update screenshots, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 95d52ea585 044/123: Fix parsing of codelldb adapter output on windows #1, ELPA Syncer, 2023/12/05
- [elpa] externals/dape 3d800b349e 045/123: Add godot example config, ELPA Syncer, 2023/12/05
- [elpa] externals/dape b42b7def86 046/123: Fix timers when repl buffer is not available,
ELPA Syncer <=
- [elpa] externals/dape efcfc93003 047/123: Fix duplicate variable overlays, ELPA Syncer, 2023/12/05
- [elpa] externals/dape cacddbb8e7 057/123: Improve error printout and do a better job of validating config, ELPA Syncer, 2023/12/05
- [elpa] externals/dape ccb6060b55 067/123: Add disconnect functionality and PID helper for attach requests, ELPA Syncer, 2023/12/05
- [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