emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/wfnames 5a8d14a584 46/98: Comments only


From: ELPA Syncer
Subject: [nongnu] elpa/wfnames 5a8d14a584 46/98: Comments only
Date: Tue, 8 Aug 2023 04:01:22 -0400 (EDT)

branch: elpa/wfnames
commit 5a8d14a584811eefefa1d6de1ec51404e71a2d94
Author: Thierry Volpiatto <thievol@posteo.net>
Commit: Thierry Volpiatto <thievol@posteo.net>

    Comments only
---
 wfnames.el | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/wfnames.el b/wfnames.el
index 1c8cde0a88..b3550c9d02 100644
--- a/wfnames.el
+++ b/wfnames.el
@@ -140,7 +140,10 @@ Special commands:
                         (unless (string= old new) ; not modified, skip.
                           (cond (;; New file exists, rename it to a
                                  ;; temp file to put it out of the way
-                                 ;; and delay real rename to next turn.
+                                 ;; and delay real rename to next
+                                 ;; turn. Make it accessible in
+                                 ;; delayed alist for next usage as
+                                 ;; old [1].
                                  (and (file-exists-p new)
                                       (member new wfnames-old-files)
                                       (not (assoc new delayed)))
@@ -169,6 +172,8 @@ Special commands:
                                                  new)))
                                    (if (and ow (wfnames-ask-for-overwrite new))
                                        (rename-file
+                                        ;; Use old temp file if it
+                                        ;; exists [1].
                                         (or (assoc-default old delayed) old)
                                         target ow)
                                      (and ow (cl-incf skipped))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]