Function: majutsu-log--set-value
majutsu-log--set-value is a natively compiled function defined in
majutsu-log.el.
Signature
(majutsu-log--set-value MODE ARGS FILESETS &optional SAVE)
Documentation
Set current log values for MODE.
When SAVE is non-nil, also persist ARGS using transient-values.
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-log.el
(defun majutsu-log--set-value (mode args filesets &optional save)
"Set current log values for MODE.
When SAVE is non-nil, also persist ARGS using `transient-values'."
(setq args (seq-remove #'null (flatten-tree args)))
(setq filesets
(and filesets
(seq-remove (lambda (s)
(or (null s)
(and (stringp s) (string-empty-p s))))
(flatten-tree filesets))))
(if-let* ((config-id (majutsu-repository-config-id)))
(majutsu-transient-put-repository-current-value
'majutsu-log mode args config-id)
(put mode 'majutsu-log-current-arguments args))
(put mode 'majutsu-log-current-filesets filesets)
(when save
(setf (alist-get (majutsu-transient-global-default-key 'majutsu-log mode)
transient-values)
args)
(transient-save-values))
(when (eq major-mode mode)
(setq-local majutsu-buffer-log-args args)
(setq-local majutsu-buffer-log-filesets filesets))
nil)