* bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome @ 2022-04-12 15:10 bg.jheng 2022-04-13 0:04 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors 0 siblings, 1 reply; 10+ messages in thread From: bg.jheng @ 2022-04-12 15:10 UTC (permalink / raw) To: 54889 [-- Attachment #1: Type: text/plain, Size: 4928 bytes --] Hi, first, thanks for solved ibus input problem last time . now, I am struggling to config hot key in normal pc104 layout keyboard for too few key can be set. and tried to use xkb to set extra key level, and work fine in privious emacs v27, 28. because i can't made Caps_Lock to remap to control key working with 'setxkbmap' , so first, using cmd to change RWIN and MENU key in gnome: gsettings set org.gnome.desktop.input-sources sources "[('xkb', 'us'), ('ibus', 'rime')]" gsettings set org.gnome.desktop.input-sources xkb-options "['caps:ctrl_modifier', 'lv3:rwin_switch', 'compose:menu-altgr']" second, using setxkbmap to chang symbols: setxkbmap -model pc104 -layout us -keycodes mykeycode -types mytype -compat mycompat -symbols mysymbol (all files in each dirs under /usr/share/X11/xkb) all keys work normally, my extra key level and group are working fine, but Shift_L, Shift_R are no function when i using emacs -q in v29 . i saw `H-_ is indefined` in minibuffer but no any letter inserted when i tried to input any capital letter . finally, i found it can input capital letter, if i removed modifier_map of shift keys: in xkb_symbols file: // modifier_map Shift { <LFSH> }; // modifier_map Shift { <RTSH> }; // modifier_map Shift { Shift_L, Shift_R }; my xkb files in here: https://drive.google.com/file/d/19_tcP8VSeUYgG9f4zkGEbavbaBOwOLso/view?usp=sharing and using cmd: setxkbmap -model pc104 -layout us -symbols mysymbol or xkbcomp .config/xkb/myxkb_keymap.xkb $DISPLAY now, emacs v29 shift key plus any letter can be inputed capital letter. because the same xkb keymap is woring normally in emacs 27, 28, so i am wonder if there is any difference in mechanisms of keymap in emacs v29? In GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.33, cairo version 1.17.6) of 2022-04-07 built on lpc Repository revision: c1a6aa0c3eb1029e3f7f5c3b227d7952bee775b8 Repository branch: master Windowing system distributor 'The X.Org Foundation', version 11.0.12201000 System Description: Arch Linux Configured using: 'configure --with-mailutils' Configured features: ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS WEBP X11 XDBE XIM XPM GTK3 ZLIB Important settings: value of $LC_MONETARY: zh_TW.UTF-8 value of $LC_NUMERIC: zh_TW.UTF-8 value of $LC_TIME: zh_TW.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t show-paren-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t line-number-mode: t indent-tabs-mode: t transient-mark-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message mailcap yank-media rmc puny dired dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068 epg-config gnus-util text-property-search time-date seq gv subr-x byte-opt bytecomp byte-compile cconv mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader cl-loaddefs cl-lib sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils iso-transl tooltip eldoc paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors frame minibuffer nadvice simple cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite emoji-zwj charscript charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button loaddefs faces cus-face macroexp files window text-properties overlay sha1 md5 base64 format env code-pages mule custom widget keymap hashtable-print-readable backquote threads dbusbind inotify lcms2 dynamic-setting system-font-setting font-render-setting cairo move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 45904 8943) (symbols 48 5711 1) (strings 32 15920 1719) (string-bytes 1 512729) (vectors 16 11313) (vector-slots 8 163309 13969) (floats 8 21 33) (intervals 56 373 4) (buffers 992 12)) [-- Attachment #2: Type: text/html, Size: 5838 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome 2022-04-12 15:10 bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome bg.jheng @ 2022-04-13 0:04 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [not found] ` <CAEFYKcNtvjtsF2EF6qNJfsM+1kPbkyBTNox_Kc10v0uy42Mf3g@mail.gmail.com> 0 siblings, 1 reply; 10+ messages in thread From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-04-13 0:04 UTC (permalink / raw) To: bg.jheng; +Cc: 54889 bg.jheng@gmail.com writes: > all keys work normally, > my extra key level and group are working fine, > but Shift_L, Shift_R are no function when i using emacs -q in v29 . > i saw `H-_ is indefined` in minibuffer but no any letter inserted when i tried to input any capital letter . > > finally, i found it can input capital letter, if i removed modifier_map of shift keys: > in xkb_symbols file: > // modifier_map Shift { <LFSH> }; > // modifier_map Shift { <RTSH> }; > // modifier_map Shift { Shift_L, Shift_R }; > > my xkb files in here: > https://drive.google.com/file/d/19_tcP8VSeUYgG9f4zkGEbavbaBOwOLso/view?usp=sharing > > and using cmd: > setxkbmap -model pc104 -layout us -symbols mysymbol > or > xkbcomp .config/xkb/myxkb_keymap.xkb $DISPLAY > > now, emacs v29 shift key plus any letter can be inputed capital letter. > > because the same xkb keymap is woring normally in emacs 27, 28, > so i am wonder if there is any difference in mechanisms of keymap in emacs v29? A great deal has changed under the hood. Would you please show the output of `xmodmap' with the shift key mapping rules that you removed installed? Thanks in advance. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <CAEFYKcNtvjtsF2EF6qNJfsM+1kPbkyBTNox_Kc10v0uy42Mf3g@mail.gmail.com>]
* bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome [not found] ` <CAEFYKcNtvjtsF2EF6qNJfsM+1kPbkyBTNox_Kc10v0uy42Mf3g@mail.gmail.com> @ 2022-04-13 3:24 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [not found] ` <CAEFYKcO8TxmUOopUMnmbm0ZQM5GtfG9P0hEytpYAge==r0p9pA@mail.gmail.com> 0 siblings, 1 reply; 10+ messages in thread From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-04-13 3:24 UTC (permalink / raw) To: bg.jheng; +Cc: 54889 [Please use "Reply All" to reply, otherwise your messages will not be recorded in the bug tracker.] bg.jheng@gmail.com writes: > Hi, > thans reply. > > 1. i tried to use this cmd as attached: > xmodmap -pk > modifier_map_Shift__on > xmodmap -pk > modifier_map_Shift__off > > do you mean this cmd? I asked for the the output of `xmodmap' (without any arguments, including "-pk") when your system is configured so that typing Shift+N, for example, results in "H-_". > 2. when i am testing, > i noticed that SHIFT+anykey can output capital letter, > even though to set 'modifier_map_Shift' off in the file: mysymbol, > so in fact, if there are no > // modifier_map Shift { <LFSH> }; > // modifier_map Shift { <RTSH> }; > i can input any latter with Shift keys in emacs 29 if i do not set 'modifier_map Shift' on. > > because originally i install archlinux with gnome (default xwayland) > i referenced arch wiki to use this cmd to output the whole layout: > xkbcomp $DISPLAY ~/.config/xkb/xkb_output.xkb > there are modifier_map in the output file, > so i thought it shall has to set ' modifier_map Shift' there. > after test, it seems no modifier_map Shift still works. > > but i tried three application that accepted level three key: > firefox, urxvt, emacs, > only emacs can't use shift key to input capital letter with the set ' modifier_map Shift' on. Did you try building `--with-xinput2'? And do you have any funny options such as `x-gtk-use-native-input' enabled? What happens if you run Emacs like this? emacs -q -xrm 'Emacs.useXIM: false' Thanks in advance. ^ permalink raw reply [flat|nested] 10+ messages in thread
[parent not found: <CAEFYKcO8TxmUOopUMnmbm0ZQM5GtfG9P0hEytpYAge==r0p9pA@mail.gmail.com>]
[parent not found: <877d7tvatx.fsf@yahoo.com>]
[parent not found: <CAEFYKcMUtWiCg=oSgNdhrNok-z_V2rBnR1pyeiNsbCtjHsk4uA@mail.gmail.com>]
* bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome [not found] ` <CAEFYKcMUtWiCg=oSgNdhrNok-z_V2rBnR1pyeiNsbCtjHsk4uA@mail.gmail.com> @ 2022-04-14 0:50 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors 2022-04-14 11:48 ` bg.jheng 0 siblings, 1 reply; 10+ messages in thread From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-04-14 0:50 UTC (permalink / raw) To: bg.jheng; +Cc: 54889 [Seriously, please use "Reply All", otherwise the bug tracker cannot record this conversation. Thanks] bg.jheng@gmail.com writes: > 2. because i am not familier gdb, > i need aide : > a) this is message wnen i enter gdb /dev/shm/e29/src/emacs -q , > > But that probably won't help, since > GTK native input is usually the first thing to go awry when you start > messing with modifier mapping. > > Can you attach a debugger to Emacs, add a breakpoint to this part of > xterm.c: > > xkey.type = KeyPress; > xkey.serial = xev->serial; > xkey.send_event = xev->send_event; > xkey.display = dpyinfo->display; > xkey.window = xev->event; > xkey.root = xev->root; > xkey.subwindow = xev->child; > xkey.time = xev->time; > xkey.state = ((xev->mods.effective & ~(1 << 13 | 1 << 14)) > | (xev->group.effective << 13)); > > ===> xkey.x = lrint (xev->event_x); > xkey.y = lrint (xev->event_y); > xkey.x_root = lrint (xev->root_x); > xkey.y_root = lrint (xev->root_y); > > press "Shift-A", and then show the value of `xkey.state'? > > This should work for you, assuming you're using a fresh copy of Emacs > from the master branch: > > $ gdb path/to/emacs/binary -Q > ... > (gdb) break xterm.c:17399 > ... the breakpoint is hit after pressing the key > (gdb) p xkey.state > > Also, please show the value of dpyinfo->hyper_mod_mask at that time, > like this: > > (gdb) p dpyinfo->hyper_mod_mask > > If the debugger complains about certain values being optimized out, > rebuild Emacs without optimizations according to the instructions in > etc/DEBUG. > > Po Lu <luangruo@yahoo.com> 於 2022年4月13日 週三 上午4:58寫道: > > bg.jheng@gmail.com writes: > > > 1. xmodmap is outputed: > > > > xmodmap: up to 3 keys per modifier, (keycodes in parentheses): > > > > shift Shift_L (0x32), Shift_R (0x3e) > > lock > > control Control_L (0x25), Control_L (0x42), Control_R (0x69) > > mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd) > > mod2 Num_Lock (0x4d) > > mod3 ISO_Last_Group (0x87), Mode_switch (0xcb) > > mod4 Super_L (0x85), Super_L (0xce), Hyper_L (0xcf) > > mod5 BadKey (0x5c), ISO_Level3_Shift (0x86) > > > > 2-1. i tried these cmd: > > ./configure --with-xinput2 > > then > > make -j 4 > > > > after done: > > emacs -q -xrm 'Emacs.useXIM: false' > > > > still the same, if i press Shift+A , minibuffer showed "H-a is undefined" and no capital letter inputed. > > > > 2-2. could you teach me how to tuen on 'x-gtk-use-native-input' ? > > i have no comprehensive knowlage about linux in now. > > Hi, > > >> (setq x-gtk-use-native-input t). > > as you expect, after excute it still can't input capital letter with shift key. > > >> Can you attach a debugger to Emacs, add a breakpoint to this part of > xterm.c: > > unfortunally, in this step, my base knowlage not enough, > here is the result: > 1.git clone https://github.com/emacs-mirror/emacs to /dev/shm/e29/ > 2. after ./configure then build, cd ./src > gdb ./emacs -q > > first, a lot message occured, > i put these text in ~/.config/gdb/gdbinit , after google: > add-auto-load-safe-path /dev/shm/e29/src/ > set auto-load safe-path /dev/shm/e29/src/ > hope it is a right way. > > 3. then execute: > $ gdb ./emacs -q > Reading symbols from ./emacs... > SIGINT is used by the debugger. > Are you sure you want to change it? (y or n) [answered Y; input not from terminal] > DISPLAY = :0 > TERM = rxvt-unicode-256color > Breakpoint 1 at 0x4ac18: file emacs.c, line 412. > Breakpoint 2 at 0x129bc0: file xterm.c, line 19625. > > (gdb) break xterm.c:17399 > Breakpoint 3 at 0x13cb23: file xterm.c, line 18393. You forgot to enter "run" and then press Shift-A here once the input focus shifts to the Emacs window. I'm sorry for not mentioning that earlier. Thanks. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome 2022-04-14 0:50 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-04-14 11:48 ` bg.jheng 2022-04-14 13:18 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors 0 siblings, 1 reply; 10+ messages in thread From: bg.jheng @ 2022-04-14 11:48 UTC (permalink / raw) To: Po Lu; +Cc: 54889 [-- Attachment #1: Type: text/plain, Size: 9295 bytes --] I am sorry, i will notice to use 'reply all' since this time. here is this time i tried: 1. after 'run' , i do not see gui window, i have no way to input, here is the result: $ gdb ./emacs -q Reading symbols from ./emacs... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0 TERM = rxvt-unicode-256color Breakpoint 1 at 0x4ac18: file emacs.c, line 412. Breakpoint 2 at 0x129bc0: file xterm.c, line 19625. (gdb) break xterm.c:17399 Breakpoint 3 at 0x13cb23: file xterm.c, line 18393. (gdb) run Starting program: /dev/shm/e29/src/emacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7ffff1356640 (LWP 198258)] [New Thread 0x7ffff0ae1640 (LWP 198259)] [New Thread 0x7fffebfff640 (LWP 198260)] [New Thread 0x7fffeb758640 (LWP 198261)] [New Thread 0x7fffeaf57640 (LWP 198262)] [New Thread 0x7fffea756640 (LWP 198263)] Thread 1 "emacs" hit Breakpoint 3, handle_one_xevent (dpyinfo=0x555555e69600, event=0x7fffffffd120, finish=<optimized out>, hold_quit=0x7fffffffd3f0) at xterm.c:18393 18393 if (dpyinfo->supports_xkb (gdb) p xkey.state No symbol "xkey" in current context. (gdb) p dpyinfo->hyper_mod_mask $1 = 1 2. i saw a word "optimized" and found this .configure cmd in folder e29/etc/ : ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type \ CFLAGS='-O0 -g3' then rebuild again $ make clean $ ./auto $ ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type \ CFLAGS='-O0 -g3' $ make - j 4 run gdb, because there is no gui emacs occur, i have no way to input: $ gdb ./emacs -q Reading symbols from ./emacs... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0 TERM = rxvt-unicode-256color Breakpoint 1 at 0x212569: file emacs.c, line 412. Breakpoint 2 at 0x1c7e96: file xterm.c, line 19625. (gdb) break xterm.c:17399 Breakpoint 3 at 0x1c52f0: file xterm.c, line 18393. (gdb) run Starting program: /dev/shm/e29/src/emacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7ffff1355640 (LWP 207348)] [New Thread 0x7ffff0ae0640 (LWP 207349)] [New Thread 0x7fffebfff640 (LWP 207350)] [New Thread 0x7fffeb758640 (LWP 207351)] [New Thread 0x7fffeaf57640 (LWP 207352)] [New Thread 0x7fffea756640 (LWP 207353)] Thread 1 "emacs" hit Breakpoint 3, handle_one_xevent (dpyinfo=0x555556145600, event=0x7fffffffc500, finish=0x555555e908fc <current_finish>, hold_quit=0x7fffffffc830) at xterm.c:18393 18393 if (dpyinfo->supports_xkb (gdb) p xkey.state No symbol "xkey" in current context. (gdb) p dpyinfo->hyper_mod_mask $1 = 1 3. i also try run in 'sudo su', emacs gui appeared, but after this prompt '(gdb)' showed again, the gui window freezed and can not input anymore, then appeared guit window : "EmacsClientOpen" is not responding" . later, the execute cmd result is in below: [root@pc src]# gdb ./emacs -q Reading symbols from ./emacs... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0 TERM = rxvt-unicode-256color Breakpoint 1 at 0x212569: file emacs.c, line 412. Breakpoint 2 at 0x1c7e96: file xterm.c, line 19625. (gdb) break xterm.c:17399 Breakpoint 3 at 0x1c52f0: file xterm.c, line 18393. (gdb) run Starting program: /dev/shm/e29/src/emacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7ffff1355640 (LWP 210606)] [New Thread 0x7ffff0a5f640 (LWP 210607)] [Detaching after fork from child process 210608] [Detaching after fork from child process 210609] [New Thread 0x7fffebfff640 (LWP 210610)] [New Thread 0x7fffeb7fe640 (LWP 210611)] [Thread 0x7fffeb7fe640 (LWP 210611) exited] [New Thread 0x7fffeb7fe640 (LWP 210612)] [New Thread 0x7fffeaffd640 (LWP 210613)] [Thread 0x7fffeb7fe640 (LWP 210612) exited] [Thread 0x7fffeaffd640 (LWP 210613) exited] Thread 1 "emacs" hit Breakpoint 3, handle_one_xevent (dpyinfo=0x55555610c980, event=0x7fffffffd710, finish=0x555555e908fc <current_finish>, hold_quit=0x7fffffffda40) at xterm.c:18393 warning: Source file is more recent than executable. 18393 if (dpyinfo->supports_xkb (gdb) p xkey.state No symbol "xkey" in current context. (gdb) p dpyinfo->hyper_mod_mask $1 = 1 Po Lu <luangruo@yahoo.com> 於 2022年4月14日 週四 上午12:50寫道: > [Seriously, please use "Reply All", otherwise the bug tracker cannot > record this conversation. Thanks] > > bg.jheng@gmail.com writes: > > 2. because i am not familier gdb, > > i need aide : > > a) this is message wnen i enter gdb /dev/shm/e29/src/emacs -q , > > > > But that probably won't help, since > > GTK native input is usually the first thing to go awry when you start > > messing with modifier mapping. > > > > Can you attach a debugger to Emacs, add a breakpoint to this part of > > xterm.c: > > > > xkey.type = KeyPress; > > xkey.serial = xev->serial; > > xkey.send_event = xev->send_event; > > xkey.display = dpyinfo->display; > > xkey.window = xev->event; > > xkey.root = xev->root; > > xkey.subwindow = xev->child; > > xkey.time = xev->time; > > xkey.state = ((xev->mods.effective & ~(1 << 13 | 1 << 14)) > > | (xev->group.effective << 13)); > > > > ===> xkey.x = lrint (xev->event_x); > > xkey.y = lrint (xev->event_y); > > xkey.x_root = lrint (xev->root_x); > > xkey.y_root = lrint (xev->root_y); > > > > press "Shift-A", and then show the value of `xkey.state'? > > > > This should work for you, assuming you're using a fresh copy of Emacs > > from the master branch: > > > > $ gdb path/to/emacs/binary -Q > > ... > > (gdb) break xterm.c:17399 > > ... the breakpoint is hit after pressing the key > > (gdb) p xkey.state > > > > Also, please show the value of dpyinfo->hyper_mod_mask at that time, > > like this: > > > > (gdb) p dpyinfo->hyper_mod_mask > > > > If the debugger complains about certain values being optimized out, > > rebuild Emacs without optimizations according to the instructions in > > etc/DEBUG. > > > > Po Lu <luangruo@yahoo.com> 於 2022年4月13日 週三 上午4:58寫道: > > > > bg.jheng@gmail.com writes: > > > > > 1. xmodmap is outputed: > > > > > > xmodmap: up to 3 keys per modifier, (keycodes in parentheses): > > > > > > shift Shift_L (0x32), Shift_R (0x3e) > > > lock > > > control Control_L (0x25), Control_L (0x42), Control_R (0x69) > > > mod1 Alt_L (0x40), Alt_R (0x6c), Meta_L (0xcd) > > > mod2 Num_Lock (0x4d) > > > mod3 ISO_Last_Group (0x87), Mode_switch (0xcb) > > > mod4 Super_L (0x85), Super_L (0xce), Hyper_L (0xcf) > > > mod5 BadKey (0x5c), ISO_Level3_Shift (0x86) > > > > > > 2-1. i tried these cmd: > > > ./configure --with-xinput2 > > > then > > > make -j 4 > > > > > > after done: > > > emacs -q -xrm 'Emacs.useXIM: false' > > > > > > still the same, if i press Shift+A , minibuffer showed "H-a is > undefined" and no capital letter inputed. > > > > > > 2-2. could you teach me how to tuen on 'x-gtk-use-native-input' ? > > > i have no comprehensive knowlage about linux in now. > > > > Hi, > > > > >> (setq x-gtk-use-native-input t). > > > > as you expect, after excute it still can't input capital letter > with shift key. > > > > >> Can you attach a debugger to Emacs, add a breakpoint to this part of > > xterm.c: > > > > unfortunally, in this step, my base knowlage not enough, > > here is the result: > > 1.git clone https://github.com/emacs-mirror/emacs to > /dev/shm/e29/ > > 2. after ./configure then build, cd ./src > > gdb ./emacs -q > > > > first, a lot message occured, > > i put these text in ~/.config/gdb/gdbinit , after google: > > add-auto-load-safe-path /dev/shm/e29/src/ > > set auto-load safe-path /dev/shm/e29/src/ > > hope it is a right way. > > > > 3. then execute: > > $ gdb ./emacs -q > > Reading symbols from ./emacs... > > SIGINT is used by the debugger. > > Are you sure you want to change it? (y or n) [answered Y; input not from > terminal] > > DISPLAY = :0 > > TERM = rxvt-unicode-256color > > Breakpoint 1 at 0x4ac18: file emacs.c, line 412. > > Breakpoint 2 at 0x129bc0: file xterm.c, line 19625. > > > > (gdb) break xterm.c:17399 > > Breakpoint 3 at 0x13cb23: file xterm.c, line 18393. > > You forgot to enter "run" and then press Shift-A here once the input > focus shifts to the Emacs window. I'm sorry for not mentioning that > earlier. Thanks. > [-- Attachment #2: Type: text/html, Size: 11557 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome 2022-04-14 11:48 ` bg.jheng @ 2022-04-14 13:18 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors 2022-04-14 22:56 ` bg.jheng 0 siblings, 1 reply; 10+ messages in thread From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-04-14 13:18 UTC (permalink / raw) To: bg.jheng; +Cc: 54889 bg.jheng@gmail.com writes: > I am sorry, i will notice to use 'reply all' since this time. > > here is this time i tried: > > 1. after 'run' , i do not see gui window, > i have no way to input, > here is the result: > > $ gdb ./emacs -q > Reading symbols from ./emacs... > SIGINT is used by the debugger. > Are you sure you want to change it? (y or n) [answered Y; input not from terminal] > DISPLAY = :0 > TERM = rxvt-unicode-256color > Breakpoint 1 at 0x4ac18: file emacs.c, line 412. > Breakpoint 2 at 0x129bc0: file xterm.c, line 19625. > (gdb) break xterm.c:17399 > Breakpoint 3 at 0x13cb23: file xterm.c, line 18393. > (gdb) run > Starting program: /dev/shm/e29/src/emacs > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/usr/lib/libthread_db.so.1". > [New Thread 0x7ffff1356640 (LWP 198258)] > [New Thread 0x7ffff0ae1640 (LWP 198259)] > [New Thread 0x7fffebfff640 (LWP 198260)] > [New Thread 0x7fffeb758640 (LWP 198261)] > [New Thread 0x7fffeaf57640 (LWP 198262)] > [New Thread 0x7fffea756640 (LWP 198263)] > > Thread 1 "emacs" hit Breakpoint 3, handle_one_xevent (dpyinfo=0x555555e69600, event=0x7fffffffd120, finish=<optimized out>, hold_quit=0x7fffffffd3f0) at > xterm.c:18393 > 18393 if (dpyinfo->supports_xkb > (gdb) p xkey.state > No symbol "xkey" in current context. > (gdb) p dpyinfo->hyper_mod_mask > $1 = 1 It seems that your copy of Emacs is slightly out of date, please update and try again. Thanks in advance! But this does say that hyper_mask is set to what is normally ShiftMask on X. What happens if you comment out this bit of code in the function `x_find_modifier_meanings'? else if (dpyinfo->xkb_desc->names->vmods[i] == dpyinfo->Xatom_Hyper) dpyinfo->hyper_mod_mask |= vmodmask; Thanks. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome 2022-04-14 13:18 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-04-14 22:56 ` bg.jheng 2022-04-15 0:49 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors 0 siblings, 1 reply; 10+ messages in thread From: bg.jheng @ 2022-04-14 22:56 UTC (permalink / raw) To: Po Lu; +Cc: 54889 [-- Attachment #1: Type: text/plain, Size: 4028 bytes --] i tried the version of emacs today, it still do not give me chance to input , gui emacs freeze when gdb showed the prompt again, i tried to press key before it freeze, the result is showed below: [root@lpc src]# gdb ./emacs -q Reading symbols from ./emacs... SIGINT is used by the debugger. Are you sure you want to change it? (y or n) [answered Y; input not from terminal] DISPLAY = :0 TERM = rxvt-unicode-256color Breakpoint 1 at 0x21284d: file emacs.c, line 412. Breakpoint 2 at 0x1c817a: file xterm.c, line 19763. (gdb) break xterm.c:17399 Breakpoint 3 at 0x1c559f: file xterm.c, line 18527. (gdb) break xterm.c:17399 Note: breakpoint 3 also set at pc 0x1c559f. Breakpoint 4 at 0x1c559f: file xterm.c, line 18527. (gdb) run Starting program: /dev/shm/e29/src/emacs [Thread debugging using libthread_db enabled] Using host libthread_db library "/usr/lib/libthread_db.so.1". [New Thread 0x7ffff1355640 (LWP 298831)] [New Thread 0x7ffff0a5f640 (LWP 298832)] [Detaching after fork from child process 298833] [Detaching after fork from child process 298834] [New Thread 0x7fffebfff640 (LWP 298835)] [New Thread 0x7fffeb7fe640 (LWP 298836)] [Thread 0x7fffeb7fe640 (LWP 298836) exited] [New Thread 0x7fffeb7fe640 (LWP 298837)] [New Thread 0x7fffeaffd640 (LWP 298838)] [Thread 0x7fffeb7fe640 (LWP 298837) exited] [Thread 0x7fffeaffd640 (LWP 298838) exited] Thread 1 "emacs" hit Breakpoint 3, handle_one_xevent (dpyinfo=0x555556112d50, event=0x7fffffffd710, finish=0x555555e9191c <current_finish>, hold_quit=0x7fffffffda40) at xterm.c:18527 18527 if (dpyinfo->supports_xkb (gdb) p xkey.state No symbol "xkey" in current context. (gdb) p dpyinfo->hyper_mod_mask $1 = 0 i also tried to comment out that you say this : else if (dpyinfo->xkb_desc->names->vmods[i] == dpyinfo->Xatom_Hyper) dpyinfo->hyper_mod_mask |= vmodmask; after rebuild, the capital letter can normally insert with shift now. hope it useful. Thanks Po Lu <luangruo@yahoo.com> 於 2022年4月14日 週四 下午1:18寫道: > bg.jheng@gmail.com writes: > > > I am sorry, i will notice to use 'reply all' since this time. > > > > here is this time i tried: > > > > 1. after 'run' , i do not see gui window, > > i have no way to input, > > here is the result: > > > > $ gdb ./emacs -q > > Reading symbols from ./emacs... > > SIGINT is used by the debugger. > > Are you sure you want to change it? (y or n) [answered Y; input not from > terminal] > > DISPLAY = :0 > > TERM = rxvt-unicode-256color > > Breakpoint 1 at 0x4ac18: file emacs.c, line 412. > > Breakpoint 2 at 0x129bc0: file xterm.c, line 19625. > > (gdb) break xterm.c:17399 > > Breakpoint 3 at 0x13cb23: file xterm.c, line 18393. > > (gdb) run > > Starting program: /dev/shm/e29/src/emacs > > [Thread debugging using libthread_db enabled] > > Using host libthread_db library "/usr/lib/libthread_db.so.1". > > [New Thread 0x7ffff1356640 (LWP 198258)] > > [New Thread 0x7ffff0ae1640 (LWP 198259)] > > [New Thread 0x7fffebfff640 (LWP 198260)] > > [New Thread 0x7fffeb758640 (LWP 198261)] > > [New Thread 0x7fffeaf57640 (LWP 198262)] > > [New Thread 0x7fffea756640 (LWP 198263)] > > > > Thread 1 "emacs" hit Breakpoint 3, handle_one_xevent > (dpyinfo=0x555555e69600, event=0x7fffffffd120, finish=<optimized out>, > hold_quit=0x7fffffffd3f0) at > > xterm.c:18393 > > 18393 if (dpyinfo->supports_xkb > > (gdb) p xkey.state > > No symbol "xkey" in current context. > > (gdb) p dpyinfo->hyper_mod_mask > > $1 = 1 > > It seems that your copy of Emacs is slightly out of date, please update > and try again. Thanks in advance! > > But this does say that hyper_mask is set to what is normally ShiftMask > on X. What happens if you comment out this bit of code in the function > `x_find_modifier_meanings'? > > else if (dpyinfo->xkb_desc->names->vmods[i] == > dpyinfo->Xatom_Hyper) > dpyinfo->hyper_mod_mask |= vmodmask; > > Thanks. > [-- Attachment #2: Type: text/html, Size: 4872 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome 2022-04-14 22:56 ` bg.jheng @ 2022-04-15 0:49 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors 2022-04-15 3:37 ` bg.jheng 0 siblings, 1 reply; 10+ messages in thread From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-04-15 0:49 UTC (permalink / raw) To: bg.jheng; +Cc: 54889 bg.jheng@gmail.com writes: > i also tried to comment out that you say this : > else if (dpyinfo->xkb_desc->names->vmods[i] == dpyinfo->Xatom_Hyper) > dpyinfo->hyper_mod_mask |= vmodmask; > > after rebuild, > the capital letter can normally insert with shift now. > hope it useful. So something in your virtual modifier map is binding Shift to Hyper. That's a bug in your setup, not in Emacs. Thanks. ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome 2022-04-15 0:49 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-04-15 3:37 ` bg.jheng 2022-04-15 4:28 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors 0 siblings, 1 reply; 10+ messages in thread From: bg.jheng @ 2022-04-15 3:37 UTC (permalink / raw) To: Po Lu; +Cc: 54889 [-- Attachment #1: Type: text/plain, Size: 1075 bytes --] I serched my map and found no config part had Hyper for virtualModifier , but i found Hyper_R config in symbols <RTSH> in group 2, after changed to Shift_R, i can inser capital letter in emacs 29. old: key <RTSH> { [ Shift_R, Shift_R, U2E9D] ,[ Hyper_R ] }; new: key <RTSH> { [ Shift_R, Shift_R, U2E9D] ,[ Shift_R ] }; I don't know why cause that, since that is not belong parts of emacs, I feel so sorry any where for this report let you be troubled. Anyway, thanks you for your help. Po Lu <luangruo@yahoo.com> 於 2022年4月15日 週五 上午12:49寫道: > bg.jheng@gmail.com writes: > > > i also tried to comment out that you say this : > > else if (dpyinfo->xkb_desc->names->vmods[i] == > dpyinfo->Xatom_Hyper) > > dpyinfo->hyper_mod_mask |= vmodmask; > > > > after rebuild, > > the capital letter can normally insert with shift now. > > hope it useful. > > So something in your virtual modifier map is binding Shift to Hyper. > That's a bug in your setup, not in Emacs. > > Thanks. > [-- Attachment #2: Type: text/html, Size: 1627 bytes --] ^ permalink raw reply [flat|nested] 10+ messages in thread
* bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome 2022-04-15 3:37 ` bg.jheng @ 2022-04-15 4:28 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors 0 siblings, 0 replies; 10+ messages in thread From: Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors @ 2022-04-15 4:28 UTC (permalink / raw) To: bg.jheng; +Cc: 54889-done bg.jheng@gmail.com writes: > I serched my map and found no config part had Hyper for virtualModifier , > but i found Hyper_R config in symbols <RTSH> in group 2, > after changed to Shift_R, > i can inser capital letter in emacs 29. > old: key <RTSH> { [ Shift_R, Shift_R, U2E9D] ,[ Hyper_R ] }; > new: key <RTSH> { [ Shift_R, Shift_R, U2E9D] ,[ Shift_R ] }; > > I don't know why cause that, > since that is not belong parts of emacs, > I feel so sorry any where for this report let you be troubled. No problems here, glad I could be of assistance. I'm closing this bug. ^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2022-04-15 4:28 UTC | newest] Thread overview: 10+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2022-04-12 15:10 bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome bg.jheng 2022-04-13 0:04 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [not found] ` <CAEFYKcNtvjtsF2EF6qNJfsM+1kPbkyBTNox_Kc10v0uy42Mf3g@mail.gmail.com> 2022-04-13 3:24 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors [not found] ` <CAEFYKcO8TxmUOopUMnmbm0ZQM5GtfG9P0hEytpYAge==r0p9pA@mail.gmail.com> [not found] ` <877d7tvatx.fsf@yahoo.com> [not found] ` <CAEFYKcMUtWiCg=oSgNdhrNok-z_V2rBnR1pyeiNsbCtjHsk4uA@mail.gmail.com> 2022-04-14 0:50 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors 2022-04-14 11:48 ` bg.jheng 2022-04-14 13:18 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors 2022-04-14 22:56 ` bg.jheng 2022-04-15 0:49 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors 2022-04-15 3:37 ` bg.jheng 2022-04-15 4:28 ` Po Lu via Bug reports for GNU Emacs, the Swiss army knife of text editors
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.