[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 6a2d3c9c28 3/6: properly clean up temp file over
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 6a2d3c9c28 3/6: properly clean up temp file over tramp |
Date: |
Thu, 28 Sep 2023 13:01:33 -0400 (EDT) |
branch: elpa/inf-ruby
commit 6a2d3c9c28c8809ebd98833b198996c20271d846
Author: bo-tato <122528427+bo-tato@users.noreply.github.com>
Commit: bo-tato <122528427+bo-tato@users.noreply.github.com>
properly clean up temp file over tramp
---
inf-ruby.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index d72fe20144..5a93232916 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -705,13 +705,14 @@ This function also removes itself from
`pre-command-hook'."
(if (file-remote-p default-directory)
(concat (file-remote-p default-directory) "/tmp")
temporary-file-directory))
- (tempfile (make-temp-file "rb")))
+ (tempfile (make-temp-file "rb"))
+ (tempfile-local-name (inf-ruby-file-local-name tempfile)))
(with-temp-file tempfile
- (insert (format "File.delete(%S)\n" tempfile))
+ (insert (format "File.delete(%S)\n" tempfile-local-name))
(insert string))
(comint-send-string (inf-ruby-proc)
(format "eval(File.read(%S), %s%s)\n"
- (inf-ruby-file-local-name tempfile)
+ tempfile-local-name
inf-ruby-eval-binding
file-and-lineno
tempfile))))))
- [nongnu] elpa/inf-ruby updated (4714f02bd8 -> 74c8be8e27), ELPA Syncer, 2023/09/28
- [nongnu] elpa/inf-ruby a4b4e390af 2/6: fix for tramp mode, ELPA Syncer, 2023/09/28
- [nongnu] elpa/inf-ruby 6a2d3c9c28 3/6: properly clean up temp file over tramp,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 66809aba93 4/6: simplify getting tempdir, doc and fix format arg, ELPA Syncer, 2023/09/28
- [nongnu] elpa/inf-ruby 74c8be8e27 6/6: Merge pull request #175 from bo-tato/prompt-and-long-line-fix, ELPA Syncer, 2023/09/28
- [nongnu] elpa/inf-ruby 27fac14911 1/6: fix for duplicate prompt and long lines, ELPA Syncer, 2023/09/28
- [nongnu] elpa/inf-ruby f8d7404ea9 5/6: use double quoted strings to be able to use \n, ELPA Syncer, 2023/09/28