-
Notifications
You must be signed in to change notification settings - Fork 280
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use the inherit-input-method
argument of read-char
#858
base: master
Are you sure you want to change the base?
Conversation
I don't quite understand what this fixes and get no different behavior from testing with the "c" interactive code changed. Can you provide a complete repro of an usecase, show how it goes wrong and how it should be? Also, provide details about your setup including the terminal emulator, just as with the bug report template. edit: From a cursory search, |
Issue type
EnvironmentEmacs version: 26.0.50 Reproduction steps
To more clearly see what is happening, paste in this code:
Expected behavior
Actual behavior
Further notesThis is most saliently an issue for |
Hm, I can mostly reproduce this, except mojibake being inserted into the buffer, it's only echoed here. For the record, if you try doing the same thing with Vim, it silently ignores I'm not terribly surprised that reading in a non-ascii character is tricky to do right, I've implemented reading in UTF-8 myself for fun. What surprised me though is that the flag for doing this hides behind the |
Yeah, the conflation doesn't make much sense to me either. But regardless whether or not |
@willghatch will this PR fix the following issue: with non English input method (Bulgarian in my case), Edit: as you've noted, this issue seems related #605 |
@edkolev I'm afraid not. Doing a little bit of testing, if I'm in |
Just as I did in #857, I'd like to warn that this let us be very careful about merging this in. |
I've dug in a bit more (because this issue has been bugging me), and found the root cause behind |
Why |
@@ -244,7 +244,7 @@ the last column is excluded." | |||
|
|||
(evil-define-interactive-code "c" | |||
"Read character." | |||
(list (read-char))) | |||
(list (read-char nil t))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that this cannot be changed as it emulates the standard interactive code 'c' which does not set the inherit-input-method
argument, but otherwise I do not see why not to merge this.
Supercedes #857.