Function: majutsu-split--remove-interactive-tool-args

majutsu-split--remove-interactive-tool-args is a natively compiled function defined in majutsu-split.el.

Signature

(majutsu-split--remove-interactive-tool-args ARGS)

Documentation

Return ARGS without native interactive-editor or tool arguments.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-split.el
(defun majutsu-split--remove-interactive-tool-args (args)
  "Return ARGS without native interactive-editor or tool arguments."
  (let (result)
    (while args
      (let ((arg (pop args)))
        (cond
         ((member arg '("-i" "--interactive")) nil)
         ((member arg '("-t" "--tool")) (pop args))
         ((or (string-prefix-p "--tool=" arg)
              (string-prefix-p "-t=" arg)) nil)
         (t (push arg result)))))
    (nreverse result)))