Function: majutsu-transient-put-repository-current-value

majutsu-transient-put-repository-current-value is a natively compiled function defined in majutsu-core.el.

Signature

(majutsu-transient-put-repository-current-value NAMESPACE MODE VALUE &optional CONFIG-ID)

Documentation

Set NAMESPACE/MODE's repo-local session VALUE for CONFIG-ID.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-core.el
(defun majutsu-transient-put-repository-current-value
    (namespace mode value &optional config-id)
  "Set NAMESPACE/MODE's repo-local session VALUE for CONFIG-ID."
  (let* ((config-id (or config-id
                        (majutsu-repository-config-id t)
                        (user-error "No jj repository config id available")))
         (prop (majutsu-transient--repository-current-property namespace))
         (values (get mode prop))
         (entry (assoc config-id values)))
    (if entry
        (setcdr entry value)
      (put mode prop (cons (cons config-id value) values)))))