masm11 / emacs

Mirror of GNU Emacs
http://www.gnu.org/software/emacs/
GNU General Public License v3.0
198 stars 14 forks source link

AltGr (dead keys) display an error in main buffers and is not usable in minibuffer #53

Closed CRCulver closed 4 years ago

CRCulver commented 4 years ago

After recent changes in the masm11/emacs branch, dead keys produced by the AltGr key are now properly supported in Emacs buffers. To use the same example from issue #43, when running emacs -Q, typing ´ a will correctly insert á into an Emacs buffer. However, there is still a problem here: ´ on my keyboard is produced with the help of the AltGr key. In the interval between typing ´ and typing a, the warning <65406> is undefined will appear in the minibuffer.

This warning does not affect operation in main buffers. However, input using the AltGr key is completely impossible in the minibuffer, for example, when I search with Ctrl + s. When the minibuffer prompts for input with I-search:, if I type the AltGr key, the warning <65406> is undefined is shown and the minibuffer immediately closes before I am able to type another key.

masm11 commented 4 years ago

@A6GibKm Does your pgtk emacs behave as the same?

A6GibKm commented 4 years ago

I think it would be helpful to know what keyboard layout is being used. I have two keyboards: a spanish one where it works as intended, i.e. ' a produces á, and a US one where I use US Intl with AltGr dead keys and it also works as intended (Altgr + a produces 'á'). I don't know of a layout where ´ is invoked using AltGr.

masm11 commented 4 years ago

I don't know of a layout where ´ is invoked using AltGr.

@CRCulver What layout do you use?

CRCulver commented 4 years ago

I am using a custom keymap, which I originally created in X11. It is defined in an XKB file which I have attached here. Now I use Wayland and the Sway window manager. Sway has support for loading XKB files through thexkb_file command in its configuration file xkb.dump.txt

I should mention that input works in all other GTK3 applications under Wayland. This branch of Emacs is the only application where I am experiencing a problem.

masm11 commented 4 years ago

Thanks for the dump file. I tested it on sway, and confirmed that the warning appears on the minibuffer, but the timing is different. I'll debug the warning of my case for now.

masm11 commented 4 years ago

@CRCulver Gtk's modifier keys seem to be different from Xlib's ones, and the AltGr key was incorrectly handled.

It should be fixed in #54. Could you try it?

CRCulver commented 4 years ago

Thank you very much, #54 fixes this issue for me. You may close this issue now if you want.

masm11 commented 4 years ago

thank you!