[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/poke f457341424 22/76: poke.el: command for setting the
From: |
ELPA Syncer |
Subject: |
[elpa] externals/poke f457341424 22/76: poke.el: command for setting the current IOS in the poke-ios |
Date: |
Tue, 5 Apr 2022 14:59:34 -0400 (EDT) |
branch: externals/poke
commit f45734142434c338803fb469a80b3e11e4d07101
Author: Jose E. Marchesi <jose.marchesi@oracle.com>
Commit: Jose E. Marchesi <jose.marchesi@oracle.com>
poke.el: command for setting the current IOS in the poke-ios
2022-03-14 Jose E. Marchesi <jemarch@gnu.org>
* emacs/poke.el (poke-ios-set-ios): Define.
(poke-ios-mode-map): Likewise.
---
poke.el | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/poke.el b/poke.el
index 759c468752..841f7cfdfb 100644
--- a/poke.el
+++ b/poke.el
@@ -629,6 +629,13 @@ fun plet_elval = (string s) void:
(defvar poke-ios-alist nil
"List of IO spaces currently open.")
+(defun poke-ios-set-ios ()
+ "Set the current IOS in poke to the entry selected in the
+*poke-ios* buffer."
+ (interactive)
+ (let ((ios-id (tabulated-list-get-id)))
+ (poke-code-send "set_ios (" + (number-to-string ios-id) ")")))
+
(defun poke-ios-open (ios iohandler ioflags)
(add-to-list 'poke-ios-alist (list ios iohandler ioflags))
(poke-ios-populate))
@@ -637,6 +644,12 @@ fun plet_elval = (string s) void:
(setq poke-ios-alist (assq-delete-all ios poke-ios-alist))
(poke-ios-populate))
+(defvar poke-ios-mode-map
+ (let ((map (make-sparse-keymap)))
+ (define-key map [return] 'poke-ios-set-ios)
+ map)
+ "Local keymap for `poke-ios-mode' buffers.")
+
(define-derived-mode poke-ios-mode tabulated-list-mode "Poke IOS List"
"Major mode for summarizing the open IO spaces in poke.
\\<poke-ios-mode-map>
@@ -644,9 +657,7 @@ fun plet_elval = (string s) void:
(setq tabulated-list-format nil)
(setq tabulated-list-padding 2)
(setq tabulated-list-sort-key nil)
- (tabulated-list-init-header)
- ; (add-hook 'post-command-hook
#'poke-set-ios nil t))
- )
+ (tabulated-list-init-header))
(defun poke-ios-populate ()
"Populate a `poke-ios-mode' buffer with the data in `poke-ios-alist."
- [elpa] externals/poke 55295aaf7b 74/76: syntax-check fixes, (continued)
- [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
- [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 <=
- [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
- [elpa] externals/poke 224e283c86 27/76: poke.el: transmit flags in a string to poke-ios-open, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 2e6411d56a 29/76: poke.el: improvs, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 84ae4121b9 30/76: poke.el: get unibyte strings in pokelet processes, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 4743725592 34/76: poke.el: poke-code send command, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 14a8f278b1 37/76: poke.el: poke-settings buffer, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 0c410f656e 39/76: poke.el: factor settings code a bit, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 468f631988 43/76: poke.el: editor with values, ELPA Syncer, 2022/04/05
- [elpa] externals/poke 47a7d4f84d 46/76: poke.el: window placement improvements, ELPA Syncer, 2022/04/05