<feed xmlns='http://www.w3.org/2005/Atom'>
<title>ruby.git/test/reline/test_key_actor_emacs.rb, branch v3_2_11</title>
<subtitle>The Ruby Programming Language</subtitle>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/'/>
<entry>
<title>[ruby/reline] Use unix_line_discard when Ctrl-u is entered</title>
<updated>2021-12-30T11:23:58+00:00</updated>
<author>
<name>ima1zumi</name>
<email>mariimaizumi5@gmail.com</email>
</author>
<published>2021-12-30T02:16:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=f589242e750939eecf2a140fa3182dc5e387f157'/>
<id>f589242e750939eecf2a140fa3182dc5e387f157</id>
<content type='text'>
The kill-line was called when C-u was entered, so it is now called unix-line-discard.

In readline(3):

&gt; unix-line-discard (C-u)
&gt;               Kill backward from point to the beginning of the line.
&gt;               The killed text is saved on the kill-ring.

https://github.com/ruby/reline/commit/27570d195e
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The kill-line was called when C-u was entered, so it is now called unix-line-discard.

In readline(3):

&gt; unix-line-discard (C-u)
&gt;               Kill backward from point to the beginning of the line.
&gt;               The killed text is saved on the kill-ring.

https://github.com/ruby/reline/commit/27570d195e
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Implement em_kill_line</title>
<updated>2021-12-24T09:23:28+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-09-26T19:24:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=bad1e153d485cf7b68981a78e78e23c3f118c5a8'/>
<id>bad1e153d485cf7b68981a78e78e23c3f118c5a8</id>
<content type='text'>
https://github.com/ruby/reline/commit/9fca6ceb45
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/9fca6ceb45
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Bind ed-kill-line to C-u on emacs mode</title>
<updated>2021-12-24T09:23:28+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-09-26T17:49:30+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=9de42d3b347a2576eba81676cab6027b3c03dda7'/>
<id>9de42d3b347a2576eba81676cab6027b3c03dda7</id>
<content type='text'>
https://github.com/ruby/reline/commit/9ab99574f5
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/9ab99574f5
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Fix test input_keys to handle "hankaku" characters correctly on Windows</title>
<updated>2021-12-24T06:01:17+00:00</updated>
<author>
<name>Yusuke Endoh</name>
<email>mame@ruby-lang.org</email>
</author>
<published>2021-12-24T05:46:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=424800f70711433534d9669cb891dc828e7c7001'/>
<id>424800f70711433534d9669cb891dc828e7c7001</id>
<content type='text'>
The method "input_keys" in test/reline/helper.rb handles a single-byte
and 8-bit charater as an input with the meta key.
However, "test_halfwidth_kana_width_dakuten" in test/reline/test_key_actor_emacs.rb
uses a string that contains "hankaku" characters.
A "hankaku" character is not with the meta key, but it is a single-byte
and 8-bit character on Windows-31J encoding, which confused "input_keys"
method. This caused the following error.

https://ci.appveyor.com/project/ruby/ruby/builds/41997092/job/ejm77qxgvnlpdwvg
```
  1) Failure:
Reline::KeyActor::Emacs::Test#test_halfwidth_kana_width_dakuten [C:/projects/ruby/test/reline/test_key_actor_emacs.rb:2311]:
&lt;"\xB6\xDE\xB7\xDE\xB9\xDE\xBA\xDE" (#&lt;Encoding:Windows-31J&gt;)&gt; expected but was
&lt;"\e^\e^\e^\e:\e^" (#&lt;Encoding:Windows-31J&gt;)&gt; in &lt;Terminal #&lt;Encoding:Windows-31J&gt;&gt;
.
&lt;8&gt; expected but was
&lt;10&gt;.
Finished tests in 1045.472722s, 19.3922 tests/s, 2609.4320 assertions/s.
```

This change introduces "input_raw_keys" that does not convert a
single-byte and 8-bit character to "with the meta key", and use it in
the test in question.

https://github.com/ruby/reline/commit/f6ae0e5d19
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The method "input_keys" in test/reline/helper.rb handles a single-byte
and 8-bit charater as an input with the meta key.
However, "test_halfwidth_kana_width_dakuten" in test/reline/test_key_actor_emacs.rb
uses a string that contains "hankaku" characters.
A "hankaku" character is not with the meta key, but it is a single-byte
and 8-bit character on Windows-31J encoding, which confused "input_keys"
method. This caused the following error.

https://ci.appveyor.com/project/ruby/ruby/builds/41997092/job/ejm77qxgvnlpdwvg
```
  1) Failure:
Reline::KeyActor::Emacs::Test#test_halfwidth_kana_width_dakuten [C:/projects/ruby/test/reline/test_key_actor_emacs.rb:2311]:
&lt;"\xB6\xDE\xB7\xDE\xB9\xDE\xBA\xDE" (#&lt;Encoding:Windows-31J&gt;)&gt; expected but was
&lt;"\e^\e^\e^\e:\e^" (#&lt;Encoding:Windows-31J&gt;)&gt; in &lt;Terminal #&lt;Encoding:Windows-31J&gt;&gt;
.
&lt;8&gt; expected but was
&lt;10&gt;.
Finished tests in 1045.472722s, 19.3922 tests/s, 2609.4320 assertions/s.
```

This change introduces "input_raw_keys" that does not convert a
single-byte and 8-bit character to "with the meta key", and use it in
the test in question.

https://github.com/ruby/reline/commit/f6ae0e5d19
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Add a test for halfwidth kana width dakuten</title>
<updated>2021-12-23T15:51:48+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-12-23T15:41:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=547c27e9e7a37496f1c9cec5de463a3e5d288f4f'/>
<id>547c27e9e7a37496f1c9cec5de463a3e5d288f4f</id>
<content type='text'>
https://github.com/ruby/reline/commit/0895a0d4a1
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/0895a0d4a1
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Support ed_argument_digit by M+num</title>
<updated>2021-09-29T13:07:49+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-09-28T10:21:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5eb8b6d1bd1b711a47541de41a2747af82cb0aea'/>
<id>5eb8b6d1bd1b711a47541de41a2747af82cb0aea</id>
<content type='text'>
The vi mode can handle "argument number" before an operator or a motion,
such as, "3x" (equals "xxx"), and "3l" (equals "lll"). In the emacs
mode, GNU Readline can handle argument number with meta key, like
"Meta+3 x" (equals "xxx").

https://github.com/ruby/reline/commit/9183cc2e8b
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The vi mode can handle "argument number" before an operator or a motion,
such as, "3x" (equals "xxx"), and "3l" (equals "lll"). In the emacs
mode, GNU Readline can handle argument number with meta key, like
"Meta+3 x" (equals "xxx").

https://github.com/ruby/reline/commit/9183cc2e8b
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Ignore NUL by ed_quoted_insert</title>
<updated>2021-09-28T05:15:49+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-09-26T19:39:44+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=c4acde8959c898f4ed50bd8b76f4a026397cbc8b'/>
<id>c4acde8959c898f4ed50bd8b76f4a026397cbc8b</id>
<content type='text'>
https://github.com/ruby/reline/commit/43b7c01a98
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/43b7c01a98
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Disable autocompletion in tests</title>
<updated>2021-08-29T17:37:23+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-08-29T16:40:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=24a26db795e39bde48904088982cfc5e793b3b10'/>
<id>24a26db795e39bde48904088982cfc5e793b3b10</id>
<content type='text'>
https://github.com/ruby/reline/commit/9b1913567a
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/9b1913567a
</pre>
</div>
</content>
</entry>
<entry>
<title>[ruby/reline] Use "omit" instead of "return"</title>
<updated>2021-07-29T17:27:02+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-07-07T11:23:39+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5313d234e01b5f34f969be265ec2cea7e921f9ae'/>
<id>5313d234e01b5f34f969be265ec2cea7e921f9ae</id>
<content type='text'>
https://github.com/ruby/reline/commit/940cdaa301
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://github.com/ruby/reline/commit/940cdaa301
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Revert "[ruby/reline] Fix failed test""</title>
<updated>2021-06-25T09:56:46+00:00</updated>
<author>
<name>aycabta</name>
<email>aycabta@gmail.com</email>
</author>
<published>2021-06-25T09:56:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.ruby-lang.org/ruby.git/commit/?id=5ffb313ccc5d5a25eb8114332093fbdd20850411'/>
<id>5ffb313ccc5d5a25eb8114332093fbdd20850411</id>
<content type='text'>
I'm so sorry, the previous revert was just a mistake.

This reverts commit 9103c3ba8bc09f287f69ca322f58faa34e003f2e.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
I'm so sorry, the previous revert was just a mistake.

This reverts commit 9103c3ba8bc09f287f69ca322f58faa34e003f2e.
</pre>
</div>
</content>
</entry>
</feed>
