unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: bg.jheng@gmail.com
To: Po Lu <luangruo@yahoo.com>
Cc: 54889@debbugs.gnu.org
Subject: bug#54889: 29.0.50; shift keys can't function when using setxkbmap with custom_symbol in gnome
Date: Thu, 14 Apr 2022 22:56:29 +0000	[thread overview]
Message-ID: <CAEFYKcN7yrTqfHbTGodeSDp2SP4F4jYjGuYGnZ+syG4KGLTX6g@mail.gmail.com> (raw)
In-Reply-To: <874k2vu7l7.fsf@yahoo.com>

[-- 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 --]

  reply	other threads:[~2022-04-14 22:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAEFYKcN7yrTqfHbTGodeSDp2SP4F4jYjGuYGnZ+syG4KGLTX6g@mail.gmail.com \
    --to=bg.jheng@gmail.com \
    --cc=54889@debbugs.gnu.org \
    --cc=luangruo@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).