[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/poke 3e5e2cbc4a 07/76: poke.el: improve layout of windo
From: |
ELPA Syncer |
Subject: |
[elpa] externals/poke 3e5e2cbc4a 07/76: poke.el: improve layout of windows |
Date: |
Tue, 5 Apr 2022 14:59:28 -0400 (EDT) |
branch: externals/poke
commit 3e5e2cbc4a8a54b8620fbd4823e4c36e44748fa0
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Commit: Jose E. Marchesi <jose.marchesi@oracle.com>
poke.el: improve layout of windows
2022-03-12 Jose E. Marchesi <jemarch@gnu.org>
* emacs/poke.el (poke): Better window layout.
(poke-out-iter-string): Quote face symbol.
---
poke.el | 27 +++++++++++++++++----------
1 file changed, 17 insertions(+), 10 deletions(-)
diff --git a/poke.el b/poke.el
index f2db000573..63112a3d9f 100644
--- a/poke.el
+++ b/poke.el
@@ -126,7 +126,7 @@
(defvar poke-out-styles nil)
(defvar poke-out-emitted-iter-string nil)
(defvar poke-out-iter-string
- (propertize (char-to-string 8594) 'font-lock-face poke-iter-string-face))
+ (propertize (char-to-string 8594) 'font-lock-face 'poke-iter-string-face))
(defconst poke-out-state-waiting-for-length 0)
(defconst poke-out-state-waiting-for-msg 1)
@@ -533,11 +533,14 @@ Commands:
(poke-out)
(poke-cmd)
(poke-code)
- (setq poke-repl-seq 0)
- (let ((buf (get-buffer-create "*poke-repl*")))
- (with-current-buffer buf
- (insert "Welcome to GNU poke.\n")
- (poke-repl-mode))))
+ (when (not (process-live-p poke-repl-process))
+ (setq poke-repl-seq 0)
+ (let ((buf (get-buffer-create "*poke-repl*")))
+ (with-current-buffer buf
+ (insert "Welcome to GNU poke.\n")
+ (poke-repl-mode))))
+ (when (called-interactively-p)
+ (switch-to-buffer-other-window "*poke-repl*")))
;;;; Main interface
@@ -569,10 +572,14 @@ Commands:
(when (not (process-live-p poke-poked-process))
(poke-poked)
(sit-for 0.2))
- (when (not (process-live-p poke-repl-process))
- (poke-repl))
- (switch-to-buffer "*poke-out*")
- (switch-to-buffer-other-window "*poke-repl*"))
+ (poke-repl)
+ (poke-vu)
+ (delete-other-windows)
+ (switch-to-buffer "*poke-repl*")
+ (let ((repl-window (get-buffer-window (current-buffer))))
+ (switch-to-buffer-other-window "*poke-vu*")
+ (switch-to-buffer-other-window "*poke-out*")
+ (select-window repl-window)))
(defun poke-exit ()
(interactive)
- [elpa] externals/poke 182c7e124a 16/76: poke.el: fix typo, (continued)
- [elpa] externals/poke 182c7e124a 16/76: poke.el: fix typo, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 084424df42 17/76: poke.el: add a few commentary, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 560a396b6b 21/76: poke.el: poke-ios buffer with a list of open IO spaces, ELPA Syncer, 2022/04/05
- [elpa] externals/poke a656ac1691 32/76: emacs.el: poke-vu movement commands, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 23f72d3b9a 41/76: poke.el: many changes, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 53d0275eac 60/76: poke.el: change vu refresh to use poked hooks, ELPA Syncer, 2022/04/05
- [elpa] externals/poke f9f332c37d 70/76: poke.el: new command `w' in poke-maps-mode, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 2f0f847284 72/76: poke.el: keep the current position upon *poke-vu* updates, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 55295aaf7b 74/76: syntax-check fixes, ELPA Syncer, 2022/04/05
- [elpa] externals/poke f7edc87b48 01/76: Initial commit, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 3e5e2cbc4a 07/76: poke.el: improve layout of windows,
ELPA Syncer <=
- [elpa] externals/poke 72c5ec9ba3 10/76: poke.el: new function `quit', ELPA Syncer, 2022/04/05
- [elpa] externals/poke d9e55b8d64 03/76: poke.el: several fixes, ELPA Syncer, 2022/04/05
- [elpa] externals/poke e85c5fdcea 08/76: poke.el: accummulate output in poke-vu, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 4e7d779635 13/76: poke.el: convert poke-vu to new infrastructure, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 157431f80e 15/76: emacs.el: remove global state from poke-out, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 7851b82ef7 19/76: poke.el: require subr-ex, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 7bca885bb1 20/76: poke.el: use hooks ios_open_hook and ios_close_hook, ELPA Syncer, 2022/04/05
- [elpa] externals/poke f457341424 22/76: poke.el: command for setting the current IOS in the poke-ios, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 923ec644ba 24/76: poke.el: add size to poke-ios, ELPA Syncer, 2022/04/05
- [elpa] externals/poke e71f9cea1a 26/76: pkl: immutable declarations in compiler bootstrapping, ELPA Syncer, 2022/04/05