[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 66809aba93 4/6: simplify getting tempdir, doc and
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 66809aba93 4/6: simplify getting tempdir, doc and fix format arg |
Date: |
Thu, 28 Sep 2023 13:01:33 -0400 (EDT) |
branch: elpa/inf-ruby
commit 66809aba93a5ba5cca16adb505289ca882512e6d
Author: bo-tato <122528427+bo-tato@users.noreply.github.com>
Commit: bo-tato <122528427+bo-tato@users.noreply.github.com>
simplify getting tempdir, doc and fix format arg
---
inf-ruby.el | 13 +++++--------
1 file changed, 5 insertions(+), 8 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 5a93232916..4754c1e493 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -12,7 +12,7 @@
;; Created: 8 April 1998
;; Keywords: languages ruby
;; Version: 2.7.0
-;; Package-Requires: ((emacs "24.3"))
+;; Package-Requires: ((emacs "26.1"))
;; This program is free software: you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
@@ -685,7 +685,8 @@ This function also removes itself from `pre-command-hook'."
:initial-value string))
(defun ruby-send-string (string &optional file line)
- "Send STRING to the inferior Ruby process."
+ "Send STRING to the inferior Ruby process.
+Optionally provide FILE and LINE metadata to Ruby."
(interactive
(list (read-string "Ruby command: ") nil t))
(let* ((file-and-lineno (concat (when file
@@ -701,10 +702,7 @@ This function also removes itself from `pre-command-hook'."
(or (bound-and-true-p comint-max-line-length)
1024))) ;; For Emacs < 28
(comint-send-string (inf-ruby-proc) code)
- (let* ((temporary-file-directory
- (if (file-remote-p default-directory)
- (concat (file-remote-p default-directory) "/tmp")
- temporary-file-directory))
+ (let* ((temporary-file-directory (temporary-file-directory))
(tempfile (make-temp-file "rb"))
(tempfile-local-name (inf-ruby-file-local-name tempfile)))
(with-temp-file tempfile
@@ -714,8 +712,7 @@ This function also removes itself from `pre-command-hook'."
(format "eval(File.read(%S), %s%s)\n"
tempfile-local-name
inf-ruby-eval-binding
- file-and-lineno
- tempfile))))))
+ file-and-lineno))))))
(defun ruby-send-definition ()
"Send the current definition to the inferior Ruby process."
- [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, 2023/09/28
- [nongnu] elpa/inf-ruby 66809aba93 4/6: simplify getting tempdir, doc and fix format arg,
ELPA Syncer <=
- [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