Function: majutsu-jjdescription--server-client-root

majutsu-jjdescription--server-client-root is a natively compiled function defined in majutsu-jjdescription.el.

Signature

(majutsu-jjdescription--server-client-root)

Documentation

Return the associated emacsclient working directory, if any.

Source Code

;; Defined in /nix/store/jagqw3nms546pad0gxi5f3wsckk6pji7-emacs-packages-deps/share/emacs/site-lisp/majutsu-jjdescription.el
(defun majutsu-jjdescription--server-client-root ()
  "Return the associated emacsclient working directory, if any."
  (when-let* ((client (car-safe server-buffer-clients))
              (dir (process-get client 'server-client-directory)))
    (file-name-as-directory dir)))