[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive 828f47e6e4 03/21: Tidy: (h//context-entry) Use
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive 828f47e6e4 03/21: Tidy: (h//context-entry) Use cond instead of pcase |
Date: |
Wed, 21 Aug 2024 01:10:07 -0400 (EDT) |
branch: elpa/hyperdrive
commit 828f47e6e4818c0d7ce5637ea265ea65b3dabb6d
Author: Joseph Turner <joseph@ushin.org>
Commit: Joseph Turner <joseph@ushin.org>
Tidy: (h//context-entry) Use cond instead of pcase
---
hyperdrive-lib.el | 9 ++++-----
1 file changed, 4 insertions(+), 5 deletions(-)
diff --git a/hyperdrive-lib.el b/hyperdrive-lib.el
index e58ccba3e7..53cf11466b 100644
--- a/hyperdrive-lib.el
+++ b/hyperdrive-lib.el
@@ -1156,11 +1156,10 @@ default to `hyperdrive-formats', which see."
"Return the current entry in the current context.
LATEST-VERSION is passed to `hyperdrive-read-entry'.
With universal prefix argument \\[universal-argument], prompt for entry."
- (pcase major-mode
- ((guard current-prefix-arg)
- (h/read-entry :read-version t :latest-version latest-version))
- ('h/dir-mode (h/dir--entry-at-point))
- (_ (or h/current-entry (h/read-entry :latest-version latest-version)))))
+ (cond (current-prefix-arg
+ (h/read-entry :read-version t :latest-version latest-version))
+ ((derived-mode-p 'h/dir-mode) (h/dir--entry-at-point))
+ (t (or h/current-entry (h/read-entry :latest-version
latest-version)))))
(cl-defun h//context-hyperdrive (&key predicate force-prompt)
"Return hyperdrive for current entry when it matches PREDICATE.
- [nongnu] elpa/hyperdrive updated (5e32667239 -> 3b7167539a), ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 086ea0ec79 04/21: Change: (h//context-entry) Add force-prompt argument, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive dfeed42902 08/21: Tidy: (h/dir--yank-media-image-handler) Pass explicit hyperdrive arg, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 9602eb33d5 02/21: Tidy: (h//context-hyperdrive) Split into two functions, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 1759da77fd 10/21: Tidy: (h//context-entry) Use thunk-let, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive a827488194 12/21: Tidy: (hyperdrive-find-file) Pass explicit hyperdrive arg, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 4cd76ceafe 05/21: Fix: (h/forget-file) Docstring, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 98e0b93a1b 07/21: Tidy: (h/dir--yank-media-image-handler) Use h/read-entry defaults, ELPA Syncer, 2024/08/21
- [nongnu] elpa/hyperdrive 828f47e6e4 03/21: Tidy: (h//context-entry) Use cond instead of pcase,
ELPA Syncer <=
- [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, 2024/08/21