Fix recursive loading caused by autoload in jupyter-tramp.el

fixes #172
fixes #215

* jupyter-tramp.el (jupyter-tramp-file-name-p): Change to `defsubst`.
This commit is contained in:
Nathaniel Nicandro 2020-03-14 14:28:47 -05:00
parent 2e0b74c588
commit 045f2b8b42

View file

@ -221,8 +221,9 @@ Operations not mentioned here will be handled by the default Emacs primitives.")
"Return METHOD if it corresponds to a Jupyter filename method or nil."
(and (string-match-p "\\`jpys?\\'" method) method))
;; NOTE: Needs to be a `defsubst' to avoid recursive loading.
;;;###autoload
(defun jupyter-tramp-file-name-p (filename)
(defsubst jupyter-tramp-file-name-p (filename)
"If FILENAME is a Jupyter filename, return its method otherwise nil."
(when (tramp-tramp-file-p filename)
(jupyter-tramp-file-name-method-p