Function: denote-keywords--combine

denote-keywords--combine is a byte-compiled function defined in denote.el.

Signature

(denote-keywords--combine COMBINATION-TYPE USER-INPUT-KEYWORDS KEYWORDS)

Documentation

COMBINATION-TYPE is either :add, :remove or :replace.

USER-INPUT-KEYWORDS are new keywords collected from the end-user. KEYWORDS are the existing keywords for the underlying file.

This function is an internal implementation function.

Source Code

;; Defined in ~/.emacs.d/elpa/denote-4.2.3/denote.el
(defun denote-keywords--combine (combination-type user-input-keywords keywords)
  "COMBINATION-TYPE is either `:add', `:remove' or `:replace'.

USER-INPUT-KEYWORDS are new keywords collected from the end-user.
KEYWORDS are the existing keywords for the underlying file.

This function is an internal implementation function."
  (cond
   ((eq combination-type :add)
    (seq-union keywords user-input-keywords))
   ((eq combination-type :replace)
    user-input-keywords)
   ((eq combination-type :remove)
    (seq-difference keywords user-input-keywords))
   (t
    (error "Unknown operation in denote-keywords--combine: %s"
           combination-type))))