As you probably know that you write text in many languages and use AMACS, then MX has its own Independent input method system which is Windows or other operating system). Input methods can be toggled with the toggle-input-method
command when the windows language changes, then MX is a & lt; Language-change & gt;
receives the keypress then & lt; Language-change & gt;
to toggle-input-method
must be binded. Unfortunately, if I just do
(global set-key (kbd "language-change" gt; "toggle-input-method") then
Both the Windows Language and Input Methods will be toggled. So I like something like
(secure-language-change-flag zero defvar) (defun protected-language-conversion (interactive) (setq secure-language-change-flag (not secure) Is needed (language-change & gt; ")))) (global-set-key (kbd)) (when language-change-flag (toggle-input-method) (send-key (kbd" & lt ; Language-change & gt; "))" envelope-change ")" secure-language-change ")
What I do not seem is the funk The call is the operating system (or changing the system language in another way).
Just make sure To do this, you want to do this: Change the language in the OS. Emacs receives this event, sends a keypress back on the OS, and then the language does not change.
You do this External utility can be able to call.
I'm not sure why you should do this
If you have changed the language of the OS, then allow the OS input method to handle. If you do not want to use the input method of your OS, the toggle-input inside the EAMX Do the procedure, and do not worry about the position of the OS.
Am I missing something?
Comments
Post a Comment