unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: Hu Elliott <ATNewHope@outlook.com>
Cc: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: emacs-pgtk-git 30.0.50 not recognize kbd "S-SPC"
Date: Fri, 23 Dec 2022 12:46:28 +0800	[thread overview]
Message-ID: <87pmcaafrv.fsf@yahoo.com> (raw)
In-Reply-To: <SYBP282MB2256FDA436E09727077CA6B4A7E99@SYBP282MB2256.AUSP282.PROD.OUTLOOK.COM> (Hu Elliott's message of "Fri, 23 Dec 2022 00:43:00 +0000")

Hu Elliott <ATNewHope@outlook.com> writes:

> Hi, I switched my emacs from x window-system (ver 28.x) to pgtk window-system (ver 30.0.50) for native wayland support (my WM/DE is SwayWM).
>
> But I can't bind "S-SPC" to a function (yasnippet's "yas-next-field") anymore because emacs won't recognize "S-SPC" (i.e. <shift> + <space>).
>
> Here's futher detail:
>
> 1. switched to x window-system emacs (ver 28.x, stable release)
>  a. run "emacs -Q"
>  b. press "C-h k"
>  c. press "S-SPC"
>  d. result (please notice the "translated from S-SPC"):
>
> SPC (translated from S-SPC) runs the command self-insert-command
> (found in global-map), which is an interactive built-in function in ‘C
> source code’.
> ...
>
> 2. switched to pgtk window-system emacs (ver 30.0.50)
>  a. run "emacs -Q"
>  b. press "C-h k"
>  c. press "S-SPC"
>  d. result:
>
> SPC runs the command self-insert-command (found in global-map), which
> is an interactive built-in function in ‘C source code’.
> ...
>
> As I rely on this key binding heavily to jump through tab stops in my snippets (thousand times per day), I really need "S-SPC" to be recognized again. Your help is highly appreciated.
>
> Thank you.

This is a problem with GTK input methods.  The bug lies with them, but
you can either run:

  (pgtk-use-im-context nil)

to disable GTK input methods altogether, or to put up with the problem,
since the input method developers have no interest in supporting such
unusual key press events.

Thanks.



  reply	other threads:[~2022-12-23  4:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-23  0:43 emacs-pgtk-git 30.0.50 not recognize kbd "S-SPC" Hu Elliott
2022-12-23  4:46 ` Po Lu [this message]
2022-12-23  8:25   ` Eli Zaretskii
2022-12-23 22:20   ` Björn Bidar
2022-12-24  0:53     ` Po Lu
2022-12-24  1:35       ` 回复: " Hu Elliott

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=87pmcaafrv.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=ATNewHope@outlook.com \
    --cc=help-gnu-emacs@gnu.org \
    /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.
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).