emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/cider 9577dbbdae: [Fix #3235] Fix TRAMP file handling (#32


From: ELPA Syncer
Subject: [nongnu] elpa/cider 9577dbbdae: [Fix #3235] Fix TRAMP file handling (#3237)
Date: Mon, 8 Aug 2022 09:58:22 -0400 (EDT)

branch: elpa/cider
commit 9577dbbdae8cffe023442427b97f963b4447983a
Author: Andrey Listopadov <andreyorst@gmail.com>
Commit: GitHub <noreply@github.com>

    [Fix #3235] Fix TRAMP file handling (#3237)
---
 CHANGELOG.md    | 4 ++++
 cider-common.el | 3 ++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 40aa829ffe..4da142d65a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -17,6 +17,10 @@
 * Changed default `cider-gradle-command` to `./gradlew` to use the Gradle 
wrapper
 * Changed default `cider-gradle-global-options` to `""` (empty, formerly 
`--no-daemon`)
 
+### Bugs fixed
+
+* [#3235](https://github.com/clojure-emacs/cider/issues/3235): Check `name` is 
a TRAMP file in `cider--client-tramp-filename` via `tramp-tramp-file-p`.
+
 ## 1.4.1 (2022-05-25)
 
 ## Changes
diff --git a/cider-common.el b/cider-common.el
index c0e813244d..184eef5cae 100644
--- a/cider-common.el
+++ b/cider-common.el
@@ -263,7 +263,8 @@ otherwise, nil."
   (let* ((buffer (or buffer (current-buffer)))
          (name (replace-regexp-in-string "^file:" "" name))
          (name (concat (cider-tramp-prefix buffer) name)))
-    (if (tramp-handle-file-exists-p name)
+    (if (and (tramp-tramp-file-p name)
+             (tramp-handle-file-exists-p name))
         name)))
 
 (defun cider--server-filename (name)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]