Skip to content

Commit 6a5a2a3

Browse files
dpercyproofit404
authored andcommitted
Coerce result of tramp-tramp-file-p to boolean (#9)
anaconda-mode assumes that pythonic-remote-p returns either nil or t. But before Emacs 26.1, tramp-tramp-file-p would return a number instead of t as the truthy value: emacs-mirror/emacs@0b558b4
1 parent 4eb5ad0 commit 6a5a2a3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pythonic.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141

4242
(defun pythonic-remote-p ()
4343
"Determine remote virtual environment."
44-
(tramp-tramp-file-p (pythonic-aliased-path default-directory)))
44+
(and (tramp-tramp-file-p (pythonic-aliased-path default-directory))
45+
t))
4546

4647
(defun pythonic-remote-docker-p ()
4748
"Determine docker remote virtual environment."

0 commit comments

Comments
 (0)