branch: externals/denote
commit 69a70674a6cffa112bce0fb11aa98af242fd5766
Author: Bruno Boal <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>

    Simplify processing of prefix arg in denote-dired-rename-marked-files
---
 denote.el | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/denote.el b/denote.el
index c952491435..908840f834 100644
--- a/denote.el
+++ b/denote.el
@@ -2412,11 +2412,8 @@ multiple files share the same modification time, which 
can be
 casually done with the `touch' command, `git', and others."
   (interactive "P" dired-mode)
   (when current-prefix-arg
-    (if (>= (car current-prefix-arg) 16)
-        (setq skip-front-matter-prompt t
-              ensure-unique-ids t)
-      (setq skip-front-matter-prompt t
-            ensure-unique-ids nil)))
+    (setq skip-front-matter-prompt t
+          ensure-unique-ids (when (>= (car current-prefix-arg) 16) t)))
   (if-let ((marks (dired-get-marked-files)))
       (let ((keywords (denote-keywords-prompt)))
         (when (or skip-front-matter-prompt

Reply via email to