[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 8aac421682 055/163: Add/Change: (h/menu-refresh
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 8aac421682 055/163: Add/Change: (h/menu-refresh) Refresh menu after starting gateway |
Date: |
Fri, 31 May 2024 04:00:13 -0400 (EDT) |
branch: elpa/hyperdrive
commit 8aac4216821d7dceef342890e9d25c61b965a573
Author: Adam Porter <adam@alphapapa.net>
Commit: Joseph Turner <joseph@ushin.org>
Add/Change: (h/menu-refresh) Refresh menu after starting gateway
---
hyperdrive-lib.el | 14 ++++++++++++--
hyperdrive-vars.el | 4 +++-
2 files changed, 15 insertions(+), 3 deletions(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index 63cd976dab..c43f061751 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -1445,11 +1445,21 @@ Default function; see variable
`h/gateway-start-function'."
;; twice in close succession.
(h/message "Starting gateway...")))
-(defun h/gateway-after-start-announce ()
+(defun h/announce-gateway-ready ()
"Announce that the gateway is ready."
- ;; TODO: Update hyperdrive-menu to indicate "gateway ready".
(h/message "Gateway ready."))
+(defun h/menu-refresh ()
+ "Refresh `hyperdrive-menu' if it's open."
+ (defvar transient-current-command)
+ (when (and (equal transient-current-command 'h/menu)
+ (not (active-minibuffer-window)))
+ ;; Assume that `hyperdrive-menu' is visible and refresh it.
+ (declare-function transient-quit-all "transient")
+ (transient-quit-all)
+ (declare-function h/menu "hyperdrive")
+ (call-interactively #'h/menu)))
+
(defun h//gateway-stop-default ()
"Stop the gateway subprocess."
(unless (h/gateway-live-p)
diff --git a/hyperdrive-vars.el b/hyperdrive-vars.el
index 01f39009de..c458e8f719 100644
--- a/hyperdrive-vars.el
+++ b/hyperdrive-vars.el
@@ -424,7 +424,9 @@ gateway process."
:type 'function)
(defcustom h/gateway-ready-hook
- '(h/check-gateway-version h/gateway-after-start-announce)
+ '( h/check-gateway-version
+ h/announce-gateway-ready
+ h/menu-refresh)
"Hook called when gateway is ready after starting it.
This hook is called by `hyperdrive--gateway-wait-for-ready' after
`hyperdrive-start'."
- [nongnu] elpa/hyperdrive e04a82fde4 034/163: Comment: Add TODO, (continued)
- [nongnu] elpa/hyperdrive e04a82fde4 034/163: Comment: Add TODO, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive 866f85e632 031/163: Change: (h/api) Improve error displayed when installing the gateway, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive ad3edad7d3 030/163: Change: (h/ensure-gateway) Signal error if gateway is not responsive, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive 1e282c7a63 035/163: Fix: (h/restart) Don't say "Gateway restarted." prematurely, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive 6c08000da9 036/163: Tidy: (h/restart) Use shorthands, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive f902e0865b 040/163: Comment: Remove old comment, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive 2fdd96d4c0 041/163: Fix: (h//check-gateway-version) Docstring, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive dbcaebd55b 042/163: Tidy: Docstring, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive 9b446772a2 048/163: Comment: Add TODO, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive f6a6e0390a 052/163: Change: Get gateway name from gateway as well as version, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive 8aac421682 055/163: Add/Change: (h/menu-refresh) Refresh menu after starting gateway,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 26d2348db8 061/163: Change: (h/install) Suggest h/restart; don't prompt to restart, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive 2d2b401883 065/163: Change: (h/menu-refresh) Replace implementation, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive a816879090 057/163: Refactor: (h/start, h/gateway-wait-for-ready) Consolidate checking, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive 6c5b7aa4ae 058/163: Fix: (h//gateway-start-default), ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive b52601fdb5 073/163: Change: (hyperdrive-menu) "not found" gateway status indicator, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive 7902066d95 080/163: Comment: Add TODOs, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive 179ae7436a 082/163: Tidy, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive 2540c1cab9 076/163: Fix: (h//gateway-start-default) Suggest h/install; don't run it, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive dcd0ae9d22 087/163: Fix: (h/install) Disable download timeout, ELPA Syncer, 2024/05/31
- [nongnu] elpa/hyperdrive cf46ae1dbf 088/163: Change: (hyperdrive-menu) "Install" binding doesn't close menu, ELPA Syncer, 2024/05/31