[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/poke 3ac0d4c611 51/76: poke.el: avoid race condition in
From: |
ELPA Syncer |
Subject: |
[elpa] externals/poke 3ac0d4c611 51/76: poke.el: avoid race condition in REPL handling |
Date: |
Tue, 5 Apr 2022 14:59:36 -0400 (EDT) |
branch: externals/poke
commit 3ac0d4c6119ca6d6ba47794da7487b7cdec267c9
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Commit: Jose E. Marchesi <jose.marchesi@oracle.com>
poke.el: avoid race condition in REPL handling
2022-03-21 Jose E. Marchesi <jemarch@gnu.org>
* emacs/poke.el (poke-repl-input-sender): Avoid race condition in
repl handling.
---
poke.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/poke.el b/poke.el
index 9abcc1328c..7ae513ae0e 100644
--- a/poke.el
+++ b/poke.el
@@ -795,11 +795,12 @@ fun plet_elval = (string s) void:
(comint-output-filter poke-repl-process poke-repl-prompt))))
(defun poke-repl-input-sender (proc input)
- (unless (string-blank-p input)
+ (if (not (string-blank-p input))
(let ((id (number-to-string poke-repl-seq))
(buffer-read-only nil)
(lb (- (line-beginning-position) 5)))
(comint-output-filter poke-repl-process (format "#%s\n" id))
+ (comint-output-filter poke-repl-process poke-repl-prompt)
(cond
((string-match "^[ \t]*\\(var\\|type\\|unit\\|fun\\) " input)
(poke-code-send (concat input ";")))
@@ -812,9 +813,9 @@ fun plet_elval = (string s) void:
"\"" (match-string 1 input) "\""
");")))
(t
- (poke-cmd-send (concat input ";"))))))
- (poke-vu-refresh)
- (comint-output-filter poke-repl-process poke-repl-prompt))
+ (poke-cmd-send (concat input ";")))))
+ (comint-output-filter poke-repl-process poke-repl-prompt))
+ (poke-vu-refresh))
(defun poke-repl ()
(interactive)
- [elpa] externals/poke 9c00747388 64/76: poke.el: face for highlighting, (continued)
- [elpa] externals/poke 9c00747388 64/76: poke.el: face for highlighting, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 59b5f4c4a6 66/76: foo, ELPA Syncer, 2022/04/05
- [elpa] externals/poke e3295770b0 69/76: poke.el: rename repl-complete-{begin, end} to poke-repl-complete-{begin, end}, ELPA Syncer, 2022/04/05
- [elpa] externals/poke f495a6eee1 62/76: poke.el: rename some stuff, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 5e9582effa 73/76: poke.el: make a keymap for poke-settings, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 454a62bdd8 76/76: Recover the file's history from Poke's main Git repository, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 2e213b8798 14/76: poke.el: get rid of global status in poke-vu, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 7a251a28d3 36/76: poke.el: fix problem in append buffer, ELPA Syncer, 2022/04/05
- [elpa] externals/poke a863356052 33/76: poke.el: current byte selection overlay in poke-vu, ELPA Syncer, 2022/04/05
- [elpa] externals/poke d346b8a559 44/76: poke.el: fix editor window dynamics, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 3ac0d4c611 51/76: poke.el: avoid race condition in REPL handling,
ELPA Syncer <=
- [elpa] externals/poke d27b1d7dad 55/76: poke.el: really fix race condition, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 2e967d5f53 67/76: poke.el: first go at completion at the repl, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 2344be65bf 71/76: poke.el: introductory chapter in the manual, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 5b01b70471 04/76: poke.el: few additions, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 2f41f6e2fc 25/76: poke.el: several improvements, ELPA Syncer, 2022/04/05
- [elpa] externals/poke e363a2b11b 38/76: poke.el: fix settings, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 35ad6da142 50/76: poke.el: quote strings and allow poke_el_mapping strings with spaces, ELPA Syncer, 2022/04/05
- [elpa] externals/poke e1c4417dfd 53/76: poke.el: add poke-vu-refresh-code, ELPA Syncer, 2022/04/05
- [elpa] externals/poke f6f4307e8e 57/76: poke.el: use shorter repl marker, ELPA Syncer, 2022/04/05
- [elpa] externals/poke f0e70059f2 65/76: poke.el: emit poke output in the minibuffer if no repl mark is found, ELPA Syncer, 2022/04/05