Function: majutsu--with-no-color
majutsu--with-no-color is a macro defined in majutsu-jj.el.
Signature
(majutsu--with-no-color &rest BODY)
Documentation
Execute BODY with --color=never in majutsu-jj-global-arguments.
Replaces any existing --color flag so that jj produces plain text
output. Use this around commands whose output is consumed
programmatically (paths, IDs, names, etc.).
Source Code
;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-jj.el
;;; JJ
(defmacro majutsu--with-no-color (&rest body)
"Execute BODY with `--color=never' in `majutsu-jj-global-arguments'.
Replaces any existing `--color' flag so that jj produces plain text
output. Use this around commands whose output is consumed
programmatically (paths, IDs, names, etc.)."
(declare (indent 0) (debug (body)))
`(let ((majutsu-jj-global-arguments
(cons "--color=never"
(seq-remove (lambda (arg)
(string-prefix-p "--color" arg))
majutsu-jj-global-arguments))))
,@body))