[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/inf-ruby 6aba85ea70 042/265: inf-ruby-fix-completions-on-w
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/inf-ruby 6aba85ea70 042/265: inf-ruby-fix-completions-on-windows: Fix free variable compilation warning |
Date: |
Sat, 9 Jul 2022 21:59:12 -0400 (EDT) |
branch: elpa/inf-ruby
commit 6aba85ea708c547afe96934afa939a45a5e0c3a7
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
inf-ruby-fix-completions-on-windows: Fix free variable compilation warning
---
inf-ruby.el | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/inf-ruby.el b/inf-ruby.el
index 018fcdeb22..fca91613b3 100755
--- a/inf-ruby.el
+++ b/inf-ruby.el
@@ -329,12 +329,13 @@ Then switch to the process buffer."
(replace-regexp-in-string "\n" "\\\\n"
(replace-regexp-in-string "\\\\" "\\\\\\\\" str))))
-(defsubst inf-ruby-fix-completions-on-windows ()
+(defsubst inf-ruby-fix-completions-on-windows (completions)
"On Windows, the string received by `accept-process-output'
starts with the last line that was sent to the Ruby process.
The reason for this is unknown. Remove this line from `completions'."
(if (eq system-type 'windows-nt)
- (setq completions (cdr completions))))
+ (cdr completions)
+ completions))
(defun inf-ruby-completions (seed)
"Return a list of completions for the line of ruby code starting with SEED."
@@ -347,7 +348,7 @@ The reason for this is unknown. Remove this line from
`completions'."
(while (and (not (string-match inf-ruby-prompt-pattern kept))
(accept-process-output proc 2)))
(setq completions (butlast (split-string kept "\r?\n") 2))
- (inf-ruby-fix-completions-on-windows)
+ (setq completions (inf-ruby-fix-completions-on-windows completions))
(set-process-filter proc comint-filt)
completions))
- [nongnu] elpa/inf-ruby 409fd736d4 104/265: Complete on an empty line, too, (continued)
- [nongnu] elpa/inf-ruby 409fd736d4 104/265: Complete on an empty line, too, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5759a9187c 132/265: Recommend setting Pry.config.correct_indent to false, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 1d6fef6eba 171/265: Wrap SMIE tokenizer functions to bind inhibit-field-text-motion, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 12f7f0750c 159/265: Automatically returning to the previous compilation mode after typing, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby df014b0717 177/265: Merge pull request #90 from codeasone/support-single-quoted-gemspec-name, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 74ca3a7f97 191/265: in a{, new} buffer, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5aaa7e879c 193/265: Only launch one console per project, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 62c1c72d8e 205/265: Add autoload, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 86db14c315 022/265: Rename: inf-ruby-keys -> inf-ruby-setup-keybindings, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby dfc1d4f19f 033/265: Delete obsolete TODO comment, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 6aba85ea70 042/265: inf-ruby-fix-completions-on-windows: Fix free variable compilation warning,
ELPA Syncer <=
- [nongnu] elpa/inf-ruby 5cf94a2dd1 010/265: Fix completion string insertion so that it doesn't swallow newlines when used outside of inf-ruby buffers., ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 0f0eb184f0 088/265: Bump the version, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby f062b7eb0b 075/265: Merge remote-tracking branch 'bbatsov/readme', ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 8fa68039c8 160/265: Improving inf-ruby-breakpoint-pattern and in-ruby-compilation-modes, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 5bb2919691 155/265: Keep the buffer's restrictions, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby e18c8c3624 162/265: Considering ^D as a valid exit command, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 4d410007a2 169/265: Fix ruby-send-definition, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 9c4d799faf 183/265: inf-ruby-console-zeus: Add docstring, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 700c453610 181/265: Merge pull request #91 from asok/multi, ELPA Syncer, 2022/07/09
- [nongnu] elpa/inf-ruby 54eb6bf6d6 185/265: Bump the version, ELPA Syncer, 2022/07/09