[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/poke 5b01b70471 04/76: poke.el: few additions
From: |
ELPA Syncer |
Subject: |
[elpa] externals/poke 5b01b70471 04/76: poke.el: few additions |
Date: |
Tue, 5 Apr 2022 14:59:26 -0400 (EDT) |
branch: externals/poke
commit 5b01b70471649cd2e3cf0910dd6e84fe043f0755
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Commit: Jose E. Marchesi <jose.marchesi@oracle.com>
poke.el: few additions
2022-03-12 Jose E. Marchesi <jemarch@gnu.org>
* emacs/poke.el (poke-set-omode): New function.
(poke-set-pretty-print): Likewise.
(poke-vu-next-line): Improve.
(poke-vu-mode): Add a header line with a ruler.
---
poke.el | 26 +++++++++++++++++++++++++-
1 file changed, 25 insertions(+), 1 deletion(-)
diff --git a/poke.el b/poke.el
index eb6584c0cd..370979e615 100644
--- a/poke.el
+++ b/poke.el
@@ -393,7 +393,16 @@ Commands:
(defun poke-vu-next-line ()
(interactive)
- (next-line))
+ (if (save-excursion
+ (end-of-line)
+ (forward-char)
+ (eobp))
+ (progn
+ (setq-local start-byte-offset (+ start-byte-offset #x10))
+ (poke-vu-refresh)
+ (end-of-buffer)
+ (previous-line))
+ (next-line)))
(defun poke-vu-page-down ()
(interactive)
@@ -434,6 +443,8 @@ Commands:
(define-key poke-vu-mode-map "\C-cg" 'poke-vu-goto-byte)
(setq-local font-lock-defaults '(poke-vu-font-lock))
(setq-local start-byte-offset 0)
+ (setq-local header-line-format
+ "76543210 0011 2233 4455 6677 8899 aabb ccdd eeff
0123456789ABCDEF")
(setq mode-name "poke-vu")
(setq major-mode 'poke-vu-mode)
(read-only-mode t))
@@ -542,6 +553,19 @@ Commands:
(interactive "fPickle to load: ")
(poke-code-send (concat "load \"" filename "\";")))
+(defun poke-set-omode ()
+ (interactive)
+ (let* ((omode (completing-read "Output mode: " '("VM_OMODE_PLAIN"
"VM_OMODE_TREE") nil t)))
+ (poke-code-send (concat "vm_set_omode (" omode ");"))))
+
+(defun poke-set-pretty-print ()
+ (interactive)
+ (let* ((pprint (completing-read "Pretty-print: " '("yes" "no") nil t)))
+ (poke-code-send (concat "vm_set_opprint ("
+ (if (equal pprint "yes")
+ (number-to-string 1)
+ (number-to-string 0)) ");"))))
+
(defun poke ()
(interactive)
(when (not (process-live-p poke-poked-process))
- [elpa] externals/poke 5e9582effa 73/76: poke.el: make a keymap for poke-settings, (continued)
- [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, 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 <=
- [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
- [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