[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/poke 53d0275eac 60/76: poke.el: change vu refresh to us
From: |
ELPA Syncer |
Subject: |
[elpa] externals/poke 53d0275eac 60/76: poke.el: change vu refresh to use poked hooks |
Date: |
Tue, 5 Apr 2022 14:59:37 -0400 (EDT) |
branch: externals/poke
commit 53d0275eacc51648bb9c3ac62bc7bfa30fe0a860
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Commit: Jose E. Marchesi <jose.marchesi@oracle.com>
poke.el: change vu refresh to use poked hooks
---
poke.el | 28 +++++++++++++++++++---------
1 file changed, 19 insertions(+), 9 deletions(-)
diff --git a/poke.el b/poke.el
index 2490327843..592160cfd5 100644
--- a/poke.el
+++ b/poke.el
@@ -696,22 +696,19 @@ Commands:
(let ((buffer-read-only nil))
(delete-region (point-min) (point-max))))))
-(defun poke-vu-refresh-code ()
+(defun poke-vu-refresh ()
"Return the Poke code to send in order to refresh the poke-vu
buffer."
(let* ((buffer (get-buffer "*poke-vu*"))
(window (get-buffer-window buffer)))
(when (and (process-live-p poke-vu-process)
window)
- ;; Note we are assuming each VU line contains 0x10 bytes.
- (concat "{vu "
- ":from " (number-to-string
+ (poke-code-send (format
+ "poke_el_vu_from = %s#B; poke_el_vu_size = %s#B;
poke_el_vu_refresh;"
+ (number-to-string
(buffer-local-value 'start-byte-offset buffer))
- "#B "
- ":size " (number-to-string (* (- (window-height window) 2)
- #x10))
- "#B"
- ";} ?! E_no_ios;"))))
+ (number-to-string (* (- (window-height window) 2)
+ #x10)))))))
(defun poke-vu-refresh ()
(interactive)
@@ -1338,6 +1335,19 @@ License GPLv3+: GNU GPL version 3 or later.\n\n\");
There is NO WARRANTY, to the extent permitted by law.\n\");
}
+var poke_el_vu_from = 0#B;
+var poke_el_vu_size = 0#B;
+
+fun poke_el_vu_refresh = void:
+{
+ try
+ vu :from poke_el_vu_from
+ :size poke_el_vu_size;
+ catch if E_no_ios {};
+}
+
+poked_after_eval_hook += [(poke_el_vu_refresh)];
+
fun poke_el_ios_open = (int<32> ios) void:
{
var flags = ioflags (ios);
- [elpa] externals/poke 8128b1c4b4 54/76: poke.el: simplify prompt handling, (continued)
- [elpa] externals/poke 8128b1c4b4 54/76: poke.el: simplify prompt handling, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 2b9ce057b3 61/76: poke.el: remove spurious function, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 9f45208c23 63/76: poke.el: mention pdap, ELPA Syncer, 2022/04/05
- [elpa] externals/poke cdf89905d2 02/76: emacs: new poke.el Emacs interface based on poked, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 48ec70a5fa 06/76: poke.el: simplify, ELPA Syncer, 2022/04/05
- [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 <=
- [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, 2022/04/05
- [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