[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/sweeprolog 51139ad178 08/12: ADDED: new command for signal
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/sweeprolog 51139ad178 08/12: ADDED: new command for signaling a top-level from the Top-level Menu |
Date: |
Thu, 6 Oct 2022 02:59:34 -0400 (EDT) |
branch: elpa/sweeprolog
commit 51139ad1784ec789d820e720023a2eb1ea991235
Author: Eshel Yaron <me@eshelyaron.com>
Commit: Eshel Yaron <me@eshelyaron.com>
ADDED: new command for signaling a top-level from the Top-level Menu
* sweeprolog.el:
- sweeprolog-top-level-menu-signal: new command
- sweeprolog-top-level-menu-mode-map: bind it to s
---
sweeprolog.el | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
diff --git a/sweeprolog.el b/sweeprolog.el
index ef34ae8866..8d4d373424 100644
--- a/sweeprolog.el
+++ b/sweeprolog.el
@@ -2572,6 +2572,14 @@ variable at point, if any."
sweeprolog-top-level-menu-mode)
(sweeprolog-top-level name))
+(defun sweeprolog-top-level-menu-signal (goal)
+ "Signal the thread of to Top-level Menu entry at point to run GOAL."
+ (interactive (list (read-string "Signal goal: ?- "))
+ sweeprolog-top-level-menu-mode)
+ (if-let ((tid (tabulated-list-get-id)))
+ (sweeprolog-signal-thread tid goal)
+ (user-error "No top-level menu entry here")))
+
(defun sweeprolog-top-level-menu-kill ()
"Kill the buffer of to the `sweep' Top-level Menu entry at point."
(interactive "" sweeprolog-top-level-menu-mode)
@@ -2595,7 +2603,8 @@ variable at point, if any."
:doc "Local keymap for `sweeprolog-top-level-menu-mode' buffers."
"RET" #'sweeprolog-top-level-menu-go-to
"k" #'sweeprolog-top-level-menu-kill
- "t" #'sweeprolog-top-level-menu-new)
+ "t" #'sweeprolog-top-level-menu-new
+ "s" #'sweeprolog-top-level-menu-signal)
(define-derived-mode sweeprolog-top-level-menu-mode
tabulated-list-mode "sweep Top-level Menu"
- [nongnu] elpa/sweeprolog updated (c1eac3d1ac -> 47cec7fd85), ELPA Syncer, 2022/10/06
- [nongnu] elpa/sweeprolog 5fda5e16bd 02/12: NEWS.org: announce sweeprolog-document-predicate-at-point, ELPA Syncer, 2022/10/06
- [nongnu] elpa/sweeprolog 6d8659a1ff 03/12: ADDED: sweep Top-level Menu for listing Prolog top-levels, ELPA Syncer, 2022/10/06
- [nongnu] elpa/sweeprolog 5913f010b6 07/12: ADDED: new command for signaling the current top-level, ELPA Syncer, 2022/10/06
- [nongnu] elpa/sweeprolog 77846f0441 05/12: ADDED: new command for signaling Prolog top-level threads, ELPA Syncer, 2022/10/06
- [nongnu] elpa/sweeprolog c0d8189056 06/12: FIXED: top-level buffer to thread synchronization, ELPA Syncer, 2022/10/06
- [nongnu] elpa/sweeprolog e82fd5ce12 01/12: README.org: fix typos, ELPA Syncer, 2022/10/06
- [nongnu] elpa/sweeprolog 9773817648 11/12: Announce recent changes in NEWS.org, bump version to 0.5.0, ELPA Syncer, 2022/10/06
- [nongnu] elpa/sweeprolog 47cec7fd85 12/12: DOC: add manual sections "Contributing" and "Things to do", ELPA Syncer, 2022/10/06
- [nongnu] elpa/sweeprolog f40dcff155 04/12: FIXED: reverse args modes in sweeprolog-document-predicate-at-point, ELPA Syncer, 2022/10/06
- [nongnu] elpa/sweeprolog 51139ad178 08/12: ADDED: new command for signaling a top-level from the Top-level Menu,
ELPA Syncer <=
- [nongnu] elpa/sweeprolog 39bab049b1 10/12: DOC: describe the Top-level Menu and signaling in the manual, ELPA Syncer, 2022/10/06
- [nongnu] elpa/sweeprolog 4754971669 09/12: ADDED: key and menu bindings for sweeprolog-list-top-levels, ELPA Syncer, 2022/10/06