Function: tagref--call-process

tagref--call-process is a natively compiled function defined in tagref.el.

Signature

(tagref--call-process &rest ARGS)

Documentation

Call tagref with ARGS and return output as string.

Returns nil if tagref fails or if not in a project.

Source Code

;; Defined in /nix/store/mnch55hf9yszlb4dvfqhbqf0840v41qh-emacs-packages-deps/share/emacs/site-lisp/tagref.el
;;;; Utilities

(defun tagref--call-process (&rest args)
  "Call tagref with ARGS and return output as string.
Returns nil if tagref fails or if not in a project."
  (when-let ((root (tagref--project-root)))
    (let ((default-directory root))
      (with-temp-buffer
        (let ((exit-code (apply #'call-process
                                tagref-executable
                                nil t nil
                                (append tagref-arguments args))))
          (when (zerop exit-code)
            (buffer-string)))))))