Skip to content

Commit

Permalink
Coerce result of tramp-tramp-file-p to boolean (#9)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dpercy authored and proofit404 committed Sep 20, 2018
1 parent 4eb5ad0 commit 6a5a2a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pythonic.el
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@

(defun pythonic-remote-p ()
"Determine remote virtual environment."
(tramp-tramp-file-p (pythonic-aliased-path default-directory)))
(and (tramp-tramp-file-p (pythonic-aliased-path default-directory))
t))

(defun pythonic-remote-docker-p ()
"Determine docker remote virtual environment."
Expand Down

0 comments on commit 6a5a2a3

Please sign in to comment.