unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: joakim@verona.se
Cc: luangruo@yahoo.com, 74134@debbugs.gnu.org
Subject: bug#74134: 29.4; emacs-pgtk and emacs-gtk-x11 does not react the same way to c-s-u
Date: Fri, 01 Nov 2024 08:59:08 +0200	[thread overview]
Message-ID: <86wmhn1ltv.fsf@gnu.org> (raw)
In-Reply-To: <87r07wawpa.fsf@tanaka.verona.se> (joakim@verona.se)

> X-Spam-Status: No, score=-0.8 tagged_above=-999 required=6.2
>  tests=[ALL_TRUSTED=-1, DKIM_INVALID=0.1, DKIM_SIGNED=0.1] autolearn=disabled
> From: joakim@verona.se
> Cc: Po Lu <luangruo@yahoo.com>,  74134@debbugs.gnu.org
> Date: Thu, 31 Oct 2024 20:39:29 +0100
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Isn't this the following known issue from PROBLEMS?
> >
> >   ** Certain keys such as 'C-S-u' are not reported correctly.
> >
> >   Some keys with modifiers such as Shift and Control might not be
> >   reported correctly due to incorrectly written GTK input method
> >   modules.  This is known to happen to 'C-S-u' and 'C->', which are
> >   misreported as 'C-u' and '>'.
> >
> >   To disable the use of GTK input methods, evaluate:
> >
> >     (pgtk-use-im-context nil)
> >
> >   This will also cause system input methods and features such as the
> >   Compose key to stop working.
> >
> >   On X Windows, users should not use Emacs configured with PGTK, since
> >   this and many other problems do not exist on the regular X builds.
> 
> Thanks!
> 
>     (pgtk-use-im-context nil)
> 
> inhibited the broken gtk input method c-s-u behaviour, and now the code below can be
> made to emulate the behaviour in other applications.
> 
> 
> ;; enable standard linux unicode input
> (define-key global-map (kbd "C-S-u") 'read-unicode-char)
> 
> (defun read-unicode-char (c1 c2 c3 c4 _trailing_space_ignored)
>   "Convert unicode input C1 C2 C3 C4 to the corresponding insert char call."
>   (interactive "c\nc\nc\nc\nc")
>   (insert-char (string-to-number (format "%c%c%c%c" c1 c2 c3 c4) 16)))
> 
> PS
> I'm using Sway/Wayland and emacs-pgtk looks better than emacs-gtk-x11
> there. Maybe I'll go back to X11 when the novelty of Sway faded.

So can we close this bug now?





  reply	other threads:[~2024-11-01  6:59 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-31 12:19 bug#74134: 29.4; emacs-pgtk and emacs-gtk-x11 does not react the same way to c-s-u joakim
2024-10-31 14:34 ` Eli Zaretskii
2024-10-31 19:39   ` joakim
2024-11-01  6:59     ` Eli Zaretskii [this message]
2024-11-01  7:54       ` joakim
2024-11-01  8:15         ` Eli Zaretskii

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=86wmhn1ltv.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=74134@debbugs.gnu.org \
    --cc=joakim@verona.se \
    --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).