[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/poke 2f41f6e2fc 25/76: poke.el: several improvements
From: |
ELPA Syncer |
Subject: |
[elpa] externals/poke 2f41f6e2fc 25/76: poke.el: several improvements |
Date: |
Tue, 5 Apr 2022 14:59:34 -0400 (EDT) |
branch: externals/poke
commit 2f41f6e2fc884051bf682f6f83bde29147bfd40c
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Commit: Jose E. Marchesi <jose.marchesi@oracle.com>
poke.el: several improvements
2022-03-14 Jose E. Marchesi <jemarch@gnu.org>
* emacs/poke.el (poke-exit): Handle *poke-ios*.
(poke): Create *poke-ios*.
(poke-repl-set-prompt): Fixed to not leave a spurious prompt.
(poke-elval-init-pk): Remove trace.
---
poke.el | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/poke.el b/poke.el
index 6d557d4264..5d2ccd74ef 100644
--- a/poke.el
+++ b/poke.el
@@ -548,7 +548,6 @@ fun plet_elval = (string s) void:
stoca (s, c);
chan_send (100, [PLET_ELVAL_CMD_EVAL] + c);
- //print \"elval: sent '\" + s + \"'\n\";
}
")
@@ -608,10 +607,14 @@ fun plet_elval = (string s) void:
(setq poke-repl-seq (1+ poke-repl-seq)))))
(defun poke-repl-set-prompt (string)
- (setq poke-repl-prompt string)
- (when (process-live-p poke-repl-process)
- (comint-output-filter poke-repl-process "\n")
- (comint-output-filter poke-repl-process poke-repl-prompt)))
+ (let ((previous-prompt poke-repl-prompt))
+ (setq poke-repl-prompt string)
+ (when (process-live-p poke-repl-process)
+ (with-current-buffer "*poke-repl*"
+ (save-excursion
+ (re-search-backward (regexp-quote previous-prompt) nil t)
+ (delete-region (point) (line-end-position))))
+ (comint-output-filter poke-repl-process poke-repl-prompt))))
(defun poke-repl-input-sender (proc input)
(unless (string-blank-p input)
@@ -794,9 +797,11 @@ fun quit = void:
(poke-code-send poke-pk)
(poke-repl)
(poke-vu)
+ (poke-ios)
(delete-other-windows)
(switch-to-buffer "*poke-vu*")
(switch-to-buffer-other-window "*poke-out*")
+ (switch-to-buffer-other-window "*poke-ios*")
(switch-to-buffer-other-window "*poke-repl*"))
(defun poke-exit ()
@@ -809,7 +814,7 @@ fun quit = void:
(lambda (bufname)
(let ((buf (get-buffer bufname)))
(when buf (kill-buffer buf))))
- '("*poke-out*" "*poke-cmd*" "*poke-code*"
+ '("*poke-out*" "*poke-cmd*" "*poke-code*" "*poke-ios*"
"*poke-vu*" "*poke-repl*" "*poke-elval*" "*poked*"))
(setq poke-repl-prompt poke-repl-default-prompt)
(setq poke-ios-alist nil)))
- [elpa] externals/poke 454a62bdd8 76/76: Recover the file's history from Poke's main Git repository, (continued)
- [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, 2022/04/05
- [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 <=
- [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
- [elpa] externals/poke dcc2faebb8 68/76: poke.el: add `q' command in poke-edit buffers, ELPA Syncer, 2022/04/05
- [elpa] externals/poke e4ad616ace 75/76: Initial commit, ELPA Syncer, 2022/04/05