Simplify processing of prefix arg in denote-dired-rename-marked-files

This commit is contained in:
Bruno Boal 2023-07-14 12:11:54 +03:00 committed by Protesilaos Stavrou
parent bbdf36036b
commit 69a70674a6
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -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