[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/wfnames baee8ebfc0 03/98: Use delayed instead of suspended
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/wfnames baee8ebfc0 03/98: Use delayed instead of suspended which is more meaningful |
Date: |
Tue, 8 Aug 2023 04:01:11 -0400 (EDT) |
branch: elpa/wfnames
commit baee8ebfc09d4eeffa86466af1e811db87768e07
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>
Use delayed instead of suspended which is more meaningful
---
helm-edit-marked.el | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/helm-edit-marked.el b/helm-edit-marked.el
index bccaba181c..358b14f246 100644
--- a/helm-edit-marked.el
+++ b/helm-edit-marked.el
@@ -62,13 +62,13 @@ Special commands:
(setq helm-find-files-actions
(helm-append-at-nth
helm-find-files-actions
- '(("Edit marked files" . helm-ff-edit-marked-files)) 2))
+ '(("Edit filenames" . helm-ff-edit-marked-files)) 2))
-(setq helm-source-find-files nil)
+;; (setq helm-source-find-files nil)
(defun helm-ff-edit-marked-commit-buffer ()
(interactive)
- (let ((renamed 0) suspended)
+ (let ((renamed 0) delayed)
(cl-labels ((commit ()
(with-current-buffer helm-ff-edit-buffer
(goto-char (point-min))
@@ -78,20 +78,20 @@ Special commands:
(point-at-bol) (point-at-eol))))
(unless (string= old new) ; not modified.
(if (and (file-exists-p new)
- (not (assoc new suspended)))
+ (not (assoc new delayed)))
(let ((tmpfile (make-temp-name new)))
- (push (cons new tmpfile) suspended)
+ (push (cons new tmpfile) delayed)
(rename-file new tmpfile)
(delete-region (point-at-bol) (point-at-eol))
(insert (propertize new 'old-name tmpfile)))
(rename-file old new)
(add-text-properties
(point-at-bol) (point-at-eol) `(old-name ,new))
- (setq suspended
- (delete (assoc new suspended) suspended))
+ (setq delayed
+ (delete (assoc new delayed) delayed))
(cl-incf renamed))))
(forward-line 1))
- (when suspended (commit)))))
+ (when delayed (commit)))))
(commit)
(message "* Renamed %s file(s) " renamed)
(kill-buffer helm-ff-edit-buffer))))
- [nongnu] elpa/wfnames 056e032d18 60/98: Save all overwrites in an alist, (continued)
- [nongnu] elpa/wfnames 056e032d18 60/98: Save all overwrites in an alist, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames d58dbf06c3 67/98: Add wfnames-make-backup, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames 53813526b1 62/98: Bind C-x C-s, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames fefd46c97e 74/98: Fix headers, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames 59a61c5725 80/98: Update README, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames 7202294447 85/98: Allow appending to existing wfnames-buffer, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames 7b50001525 89/98: Shutup warnings with point-at-bol/eol, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames 900da88db7 91/98: Use defconst for buffer name and prefer defvar-local, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames 9c99e94560 10/98: Fix paren error, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames a0d1f99760 02/98: Fix overwriting, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames baee8ebfc0 03/98: Use delayed instead of suspended which is more meaningful,
ELPA Syncer <=
- [nongnu] elpa/wfnames 6b79eb9b16 11/98: Fix unused lex var end, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames 756f1a2da0 06/98: Fix headers, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames d7a082a573 27/98: Add new file, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames 8e549f1e6a 16/98: Fix the logic in commit fn, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames f5216cf10b 35/98: Fix forgotten add-text-properties call in overwriting clause, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames b4b0d280ef 42/98: Simplify commit fn, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames e2528615c4 47/98: Modify end message, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames 2691695d28 53/98: Fix keymap typo, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames b6b416ef76 55/98: Comment only, ELPA Syncer, 2023/08/08
- [nongnu] elpa/wfnames 10b2c1b02b 54/98: Add a hook to run after commit, ELPA Syncer, 2023/08/08