From ef210593a469a0e18e834bc8947eb8120fc2f7f1 Mon Sep 17 00:00:00 2001 From: Vijay Marupudi Date: Thu, 13 Jan 2022 10:26:04 -0500 Subject: Check whether Tramp is loaded. It appears that the master branch of emacs does not load tramp by default in some instances. That makes the `run-geiser` function fail, as `tramp-tramp-file-p` is not defined. This patch makes it check whether the tramp function was loaded before using it. --- geiser-guile.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/geiser-guile.el b/geiser-guile.el index a47898f..be7eac2 100644 --- a/geiser-guile.el +++ b/geiser-guile.el @@ -174,7 +174,8 @@ this location for further cleanup.") If using a remote Tramp buffer, this function will copy the modules to a temporary location in the remote server and the return it. Else, will just return `geiser-guile-scheme-dir'." - (cond ((not (tramp-tramp-file-p default-directory)) geiser-guile-scheme-dir) + (cond ((not (and (fboundp 'tramp-tramp-file-p) + (tramp-tramp-file-p default-directory))) geiser-guile-scheme-dir) (geiser-guile-scheme-local-dir) ;; remote files are already there (t (let* ((temporary-file-directory (temporary-file-directory)) -- cgit v1.2.3