mirror of
https://github.com/vale981/emacs-jupyter
synced 2025-03-05 07:41:37 -05:00
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:
parent
2e0b74c588
commit
045f2b8b42
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue