[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/hyperdrive a15b96fe62 119/123: Remove: (hyperdrive-dir-del
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/hyperdrive a15b96fe62 119/123: Remove: (hyperdrive-dir-delete) |
Date: |
Fri, 6 Oct 2023 01:01:14 -0400 (EDT) |
branch: elpa/hyperdrive
commit a15b96fe620f37b6c5f61337b6ee994405480087
Author: Adam Porter <adam@alphapapa.net>
Commit: Adam Porter <adam@alphapapa.net>
Remove: (hyperdrive-dir-delete)
Replaced by hyperdrive-delete.
---
hyperdrive-dir.el | 25 ++-----------------------
1 file changed, 2 insertions(+), 23 deletions(-)
diff --git a/hyperdrive-dir.el b/hyperdrive-dir.el
index 702497164a..e36e24219e 100644
--- a/hyperdrive-dir.el
+++ b/hyperdrive-dir.el
@@ -247,7 +247,8 @@ With point on header, returns directory entry."
"w" #'hyperdrive-dir-copy-url
"d" #'hyperdrive-download
"^" #'hyperdrive-up
- "D" #'hyperdrive-dir-delete
+ ;; TODO(doc): hyperdrive-dir-delete replaced by hyperdrive-delete
+ "D" #'hyperdrive-delete
"H" #'hyperdrive-dir-history
"o" #'hyperdrive-dir-sort
"?" #'hyperdrive-menu
@@ -291,28 +292,6 @@ Interactively, opens file or directory at point in
(interactive (list (hyperdrive-dir--entry-at-point)))
(hyperdrive-copy-url entry))
-(defun hyperdrive-dir-delete (entry)
- "Delete ENTRY."
- (declare (modes hyperdrive-dir-mode))
- (interactive (list (hyperdrive-dir--entry-at-point)))
- (when (or (eq entry hyperdrive-current-entry)
- (string= ".." (alist-get 'display-name
- (hyperdrive-entry-etc entry))))
- (hyperdrive-user-error "Won't delete from within"))
- (pcase-let (((cl-struct hyperdrive-entry name) entry)
- (buffer (current-buffer)))
- (when (and (yes-or-no-p (format "Delete %S? " name))
- (or (not (hyperdrive--entry-directory-p entry))
- (yes-or-no-p (format "Recursively delete %S? " name))))
- (hyperdrive-delete entry
- :then (lambda (_)
- (when (buffer-live-p buffer)
- (with-current-buffer buffer
- (revert-buffer)))
- (hyperdrive-message "Deleted: %S (Deleted files can be
accessed from prior versions of the hyperdrive.)" name))
- :else (lambda (plz-error)
- (hyperdrive-message "Unable to delete: %S: %S" name
plz-error))))))
-
(declare-function hyperdrive-history "hyperdrive-history")
(defun hyperdrive-dir-history (entry)
- [nongnu] elpa/hyperdrive 9d6b43c7ca 058/123: Fix: (hyperdrive-menu) Allow previous version when unknown, (continued)
- [nongnu] elpa/hyperdrive 9d6b43c7ca 058/123: Fix: (hyperdrive-menu) Allow previous version when unknown, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 3ec854e120 076/123: Change: (hyperdrive-menu) Add binding for hyperdrive-dir-find-file, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 75b3d0a9c7 073/123: Change: (hyperdrive-menu) Use "h" prefix for hyperdrive commands, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive d87da03359 079/123: Change: (hyperdrive-menu) Splice Drives group into Drive group, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 51c4853787 072/123: Change: (hyperdrive-menu) Just use "d" for download, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive f59dd1836b 084/123: Change: (-menu) Shorter wording, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 1394d4aa1c 087/123: Change: (hyperdrive-menu) Spacing, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 67882a6055 111/123: Fix: (hyperdrive-menu) hyperdrive-copy-url, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 230aa979d3 107/123: Change: (hyperdrive-menu) Add label to format host description, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive fbadc91428 102/123: Change: (hyperdrive--format-host) Use default by default, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive a15b96fe62 119/123: Remove: (hyperdrive-dir-delete),
ELPA Syncer <=
- [nongnu] elpa/hyperdrive 419d57d16d 100/123: Fix: Autoload hyperdrive-menu, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive cac2408684 121/123: Tidy: Declaration, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive b7cda3fdd3 096/123: Fix: (-menu) Only display bookmark set binding when current entry, ELPA Syncer, 2023/10/06
- [nongnu] elpa/hyperdrive 45fae84294 070/123: Change: (hyperdrive-menu) Make ^ inapt if already at root, ELPA Syncer, 2023/10/06