Function: majutsu-jj-completion-items

majutsu-jj-completion-items is a natively compiled function defined in majutsu-jj.el.

Signature

(majutsu-jj-completion-items ARGS)

Documentation

Return jj native completion items for ARGS.

ARGS are command-line arguments after the leading jj executable name. Each returned item is a string or (CANDIDATE . HELP).

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-jj.el
(defun majutsu-jj-completion-items (args)
  "Return jj native completion items for ARGS.
ARGS are command-line arguments after the leading jj executable name.
Each returned item is a string or (CANDIDATE . HELP)."
  (condition-case nil
      (with-temp-buffer
        (let* ((process-environment (cons "COMPLETE=fish" process-environment))
               (exit (majutsu-process-jj t "--" "jj" args)))
          (when (zerop exit)
            (delq nil
                  (mapcar #'majutsu-jj--parse-completion-line
                          (split-string (buffer-string) "\n" t))))))
    (error nil)))