[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 25f540a7df 20/21: Tidy: (h//context-entry) Use
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 25f540a7df 20/21: Tidy: (h//context-entry) Use a labeled function instead of thunk |
Date: |
Wed, 21 Aug 2024 01:10:12 -0400 (EDT) |
branch: elpa/hyperdrive
commit 25f540a7dff1f3400fe002900b92fd11d1aa5d6f
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Tidy: (h//context-entry) Use a labeled function instead of thunk
---
hyperdrive-lib.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index a3cadf9289..d0a38cb19a 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -32,7 +32,6 @@
(require 'seq)
(require 'url-util)
(require 'gv)
-(require 'thunk)
(require 'compat)
(require 'persist)
@@ -1157,12 +1156,13 @@ default to `hyperdrive-formats', which see."
"Return the current entry in the current context.
LATEST-VERSION is passed to `hyperdrive-read-entry'. With
FORCE-PROMPT, prompt for entry."
- (thunk-let ((read-entry (h/read-entry
- (h//context-hyperdrive :force-prompt force-prompt)
- :read-version t :latest-version latest-version)))
- (cond (force-prompt read-entry)
+ (cl-labels ((read-entry ()
+ (h/read-entry
+ (h//context-hyperdrive :force-prompt force-prompt)
+ :read-version t :latest-version latest-version)))
+ (cond (force-prompt (read-entry))
((derived-mode-p 'h/dir-mode) (h/dir--entry-at-point))
- (t (or h/current-entry read-entry)))))
+ (t (or h/current-entry (read-entry))))))
(cl-defun h//context-hyperdrive (&key predicate force-prompt)
"Return hyperdrive for current entry when it matches PREDICATE.
- [nongnu] elpa/hyperdrive 828f47e6e4 03/21: Tidy: (h//context-entry) Use cond instead of pcase, (continued)
- [nongnu] elpa/hyperdrive 828f47e6e4 03/21: Tidy: (h//context-entry) Use cond instead of pcase, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 3b4ab158bf 06/21: Comment: Remove TODO, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 36f2842bf3 01/21: Tidy: (h//context-hyperdrive) Rename from h/complete-hyperdrive, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 7985ec745a 11/21: Fix: (h/org-link-complete) Always prompt to pick hyperdrive, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 18fa759807 13/21: Tidy: (hyperdrive-view-file) Pass explicit hyperdrive arg, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive a076397acc 09/21: Tidy: (h//context-entry) Pass explicit hyperdrive arg, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive a124eb3b20 14/21: Tidy: (hyperdrive-write-buffer) Pass explicit hyperdrive arg, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 80813274bb 15/21: Change: (hyperdrive-write-buffer) Better default path prompt, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive c4b2ceb5d0 17/21: Tidy: (h/menu-bar-menu) Use h//context-hyperdrive, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 3e02096dee 19/21: Change: (h/read-entry) Make HYPERDRIVE a positional argument, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 25f540a7df 20/21: Tidy: (h//context-entry) Use a labeled function instead of thunk,
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 5bdeecd0d4 16/21: Tidy: (hyperdrive-upload-file) Pass explicit hyperdrive arg, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive e575db6a50 18/21: Change: (h/read-entry) Remove args PREDICATE, FORCE-PROMPT-DRIVE, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 3b7167539a 21/21: Merge: Refactor internal functions for reading hyperdrives, ELPA Syncer, 2024/08/21