Function: denote-dired-rename-marked-files--change-keywords
denote-dired-rename-marked-files--change-keywords is a byte-compiled
function defined in denote.el.
Signature
(denote-dired-rename-marked-files--change-keywords COMBINATION-TYPE KEYWORDS-PROMPT)
Documentation
COMBINATION-TYPE is either :add, :remove or :replace.
KEYWORDS-PROMPT is the prompt we show the end-user, when taking keywords as input.
This function is an internal implementation function.
Source Code
;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-dired-rename-marked-files--change-keywords (combination-type keywords-prompt)
"COMBINATION-TYPE is either `:add', `:remove' or `:replace'.
KEYWORDS-PROMPT is the prompt we show the end-user, when taking keywords
as input.
This function is an internal implementation function."
(if-let* ((marks (dired-get-marked-files)))
(let ((denote-prompts '())
(denote-rename-confirmations nil)
(user-input-keywords (denote-keywords-prompt keywords-prompt))
(denote-used-identifiers (denote--get-all-used-ids)))
(dolist (file marks)
(pcase-let* ((`(,title ,keywords ,signature ,date ,identifier)
(denote--rename-get-file-info-from-prompts-or-existing file))
(new-keywords (denote-keywords-sort (denote-keywords--combine combination-type user-input-keywords keywords))))
(denote--rename-file file title new-keywords signature date identifier)))
(denote-update-dired-buffers))
(user-error "No marked files; aborting")))