all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* with-pgtk: C-; turns into plain ';'
@ 2022-02-15  3:43 T.V Raman
  2022-02-15  4:49 ` Po Lu
  2022-02-15  6:36 ` tomas
  0 siblings, 2 replies; 49+ messages in thread
From: T.V Raman @ 2022-02-15  3:43 UTC (permalink / raw)
  To: emacs-devel


After building from head today with --with-pgtk,

I've now lost keys such as C-;, C-, etc under X -- they just produce
the key minus the modifier bit, So c-; just generates ";". Bug or intentional?

Removing --with-pgtk from the config options and rebuilding got back
C-; and friends.

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15  3:43 with-pgtk: C-; turns into plain ';' T.V Raman
@ 2022-02-15  4:49 ` Po Lu
  2022-02-15 13:41   ` Eli Zaretskii
  2022-02-15 13:46   ` Dmitry Gutov
  2022-02-15  6:36 ` tomas
  1 sibling, 2 replies; 49+ messages in thread
From: Po Lu @ 2022-02-15  4:49 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel

"T.V Raman" <raman@google.com> writes:

> After building from head today with --with-pgtk,
>
> I've now lost keys such as C-;, C-, etc under X -- they just produce
> the key minus the modifier bit, So c-; just generates ";". Bug or
> intentional?

People running X should not use the PGTK port.  The only use it has is
to support Wayland and Broadway.

And it's not intentional.  Rather, it's a bug in the various GTK input
modules out there that isn't likely to ever be fixed.  Just treat it as
a limitation of the PGTK port and don't use it unless you have to.

Thanks.

> Removing --with-pgtk from the config options and rebuilding got back
> C-; and friends.

Indeed, which is one of the reasons why people who don't have a specific
reason to use the PGTK port (such as Wayland) should not use it.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15  3:43 with-pgtk: C-; turns into plain ';' T.V Raman
  2022-02-15  4:49 ` Po Lu
@ 2022-02-15  6:36 ` tomas
  2022-02-15 11:56   ` Alan Mackenzie
  1 sibling, 1 reply; 49+ messages in thread
From: tomas @ 2022-02-15  6:36 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 472 bytes --]

On Mon, Feb 14, 2022 at 07:43:34PM -0800, T.V Raman wrote:
> 
> After building from head today with --with-pgtk,
> 
> I've now lost keys such as C-;, C-, etc under X -- they just produce
> the key minus the modifier bit, So c-; just generates ";". Bug or intentional?

Is that the case for C-c, C-x and friends?

I.e. for "normal" letters?

Note that TTYs have no way to represent C-; and friends.

You ended up, perhaps, with a TTY build?

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15  6:36 ` tomas
@ 2022-02-15 11:56   ` Alan Mackenzie
  2022-02-15 12:33     ` tomas
  2022-02-15 13:08     ` Modifier keys on ttys (was: with-pgtk: C-; turns into plain ';') Stefan Monnier
  0 siblings, 2 replies; 49+ messages in thread
From: Alan Mackenzie @ 2022-02-15 11:56 UTC (permalink / raw)
  To: tomas; +Cc: emacs-devel

Hello, Tomas.

On Tue, Feb 15, 2022 at 07:36:21 +0100, tomas@tuxteam.de wrote:
> On Mon, Feb 14, 2022 at 07:43:34PM -0800, T.V Raman wrote:

> > After building from head today with --with-pgtk,

> > I've now lost keys such as C-;, C-, etc under X -- they just produce
> > the key minus the modifier bit, So c-; just generates ";". Bug or intentional?

> Is that the case for C-c, C-x and friends?

> I.e. for "normal" letters?

> Note that TTYs have no way to represent C-; and friends.

But they do.  It just takes a bit of work.  loadkeys is your friend.
I've had C-; on my Linux console for over 20 years, now.  As well as
loadkeys, you need to set up Emacs with stuff in the function-key-map to
handle the modified keys.  It works well.

> You ended up, perhaps, with a TTY build?

> Cheers
> -- 
> t

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15 11:56   ` Alan Mackenzie
@ 2022-02-15 12:33     ` tomas
  2022-02-16  0:13       ` Tim Cross
  2022-02-15 13:08     ` Modifier keys on ttys (was: with-pgtk: C-; turns into plain ';') Stefan Monnier
  1 sibling, 1 reply; 49+ messages in thread
From: tomas @ 2022-02-15 12:33 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 821 bytes --]

On Tue, Feb 15, 2022 at 11:56:40AM +0000, Alan Mackenzie wrote:
> Hello, Tomas.
> 
> On Tue, Feb 15, 2022 at 07:36:21 +0100, tomas@tuxteam.de wrote:

[...]

> > Note that TTYs have no way to represent C-; and friends.
> 
> But they do.  It just takes a bit of work.  loadkeys is your friend.
> I've had C-; on my Linux console for over 20 years, now.  As well as
> loadkeys, you need to set up Emacs with stuff in the function-key-map to
> handle the modified keys.  It works well.

OK, OK. I should have added "often" :-)

Usually it's me the one who says "all generalizations suck". Thanks for
setting me straight.

Still, and returning to the OP, the described behaviour is at least a
kind of hint: I'd check whether C-c and C-x works or not, to bisect the
issue at that point.

Cheers
-- 
t

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]

^ permalink raw reply	[flat|nested] 49+ messages in thread

* Modifier keys on ttys (was: with-pgtk: C-; turns into plain ';')
  2022-02-15 11:56   ` Alan Mackenzie
  2022-02-15 12:33     ` tomas
@ 2022-02-15 13:08     ` Stefan Monnier
  2022-02-15 13:35       ` Alan Mackenzie
  1 sibling, 1 reply; 49+ messages in thread
From: Stefan Monnier @ 2022-02-15 13:08 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: tomas, emacs-devel

>> Note that TTYs have no way to represent C-; and friends.
> But they do.  It just takes a bit of work.  loadkeys is your friend.
> I've had C-; on my Linux console for over 20 years, now.

Indeed.  And similar solutions exist for xterm and friends.

> As well as loadkeys, you need to set up Emacs with stuff in the
> function-key-map to handle the modified keys.  It works well.

Side note: the "right" way to do it is via `input-decode-map` rather
than `function-key-map`, BTW.


        Stefan




^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: Modifier keys on ttys (was: with-pgtk: C-; turns into plain ';')
  2022-02-15 13:08     ` Modifier keys on ttys (was: with-pgtk: C-; turns into plain ';') Stefan Monnier
@ 2022-02-15 13:35       ` Alan Mackenzie
  2022-02-15 14:19         ` Modifier keys on ttys Stefan Monnier
  0 siblings, 1 reply; 49+ messages in thread
From: Alan Mackenzie @ 2022-02-15 13:35 UTC (permalink / raw)
  To: Stefan Monnier; +Cc: tomas, emacs-devel

Hello, Stefan.

On Tue, Feb 15, 2022 at 08:08:56 -0500, Stefan Monnier wrote:
> >> Note that TTYs have no way to represent C-; and friends.
> > But they do.  It just takes a bit of work.  loadkeys is your friend.
> > I've had C-; on my Linux console for over 20 years, now.

> Indeed.  And similar solutions exist for xterm and friends.

> > As well as loadkeys, you need to set up Emacs with stuff in the
> > function-key-map to handle the modified keys.  It works well.

> Side note: the "right" way to do it is via `input-decode-map` rather
> than `function-key-map`, BTW.

Ah, how these things change!  I think function-key-map was the only way
~20 years ago.

>         Stefan

-- 
Alan Mackenzie (Nuremberg, Germany).



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15  4:49 ` Po Lu
@ 2022-02-15 13:41   ` Eli Zaretskii
  2022-02-15 13:45     ` Po Lu
  2022-02-15 13:46   ` Dmitry Gutov
  1 sibling, 1 reply; 49+ messages in thread
From: Eli Zaretskii @ 2022-02-15 13:41 UTC (permalink / raw)
  To: Po Lu; +Cc: emacs-devel, raman

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Tue, 15 Feb 2022 12:49:56 +0800
> 
> > I've now lost keys such as C-;, C-, etc under X -- they just produce
> > the key minus the modifier bit, So c-; just generates ";". Bug or
> > intentional?
> 
> People running X should not use the PGTK port.  The only use it has is
> to support Wayland and Broadway.
> 
> And it's not intentional.  Rather, it's a bug in the various GTK input
> modules out there that isn't likely to ever be fixed.  Just treat it as
> a limitation of the PGTK port and don't use it unless you have to.
> 
> Thanks.
> 
> > Removing --with-pgtk from the config options and rebuilding got back
> > C-; and friends.
> 
> Indeed, which is one of the reasons why people who don't have a specific
> reason to use the PGTK port (such as Wayland) should not use it.

Should this be in NEWS (and perhaps also in PROBLEMS)?



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15 13:41   ` Eli Zaretskii
@ 2022-02-15 13:45     ` Po Lu
  2022-02-15 14:02       ` Eli Zaretskii
  0 siblings, 1 reply; 49+ messages in thread
From: Po Lu @ 2022-02-15 13:45 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel, raman

Eli Zaretskii <eliz@gnu.org> writes:

> Should this be in NEWS (and perhaps also in PROBLEMS)?

The NEWS entry seems fine (it already mentions that it's for Wayland and
Broadway), but yes, it probably deserves an entry in PROBLEMS.

Thanks.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15  4:49 ` Po Lu
  2022-02-15 13:41   ` Eli Zaretskii
@ 2022-02-15 13:46   ` Dmitry Gutov
  2022-02-15 13:48     ` Po Lu
  1 sibling, 1 reply; 49+ messages in thread
From: Dmitry Gutov @ 2022-02-15 13:46 UTC (permalink / raw)
  To: Po Lu, T.V Raman; +Cc: emacs-devel

On 15.02.2022 06:49, Po Lu wrote:
> "T.V Raman"<raman@google.com>  writes:
> 
>> After building from head today with --with-pgtk,
>>
>> I've now lost keys such as C-;, C-, etc under X -- they just produce
>> the key minus the modifier bit, So c-; just generates ";". Bug or
>> intentional?
> People running X should not use the PGTK port.  The only use it has is
> to support Wayland and Broadway.
> 
> And it's not intentional.  Rather, it's a bug in the various GTK input
> modules out there that isn't likely to ever be fixed.  Just treat it as
> a limitation of the PGTK port and don't use it unless you have to.

Is that specific to certain desktop environments?

I have a PGTK build compiled here (rev 70c3437a), and 'C-;' seems to be 
working fine. Ubuntu 20.04, GNOME Shell under Xorg.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15 13:46   ` Dmitry Gutov
@ 2022-02-15 13:48     ` Po Lu
  0 siblings, 0 replies; 49+ messages in thread
From: Po Lu @ 2022-02-15 13:48 UTC (permalink / raw)
  To: Dmitry Gutov; +Cc: T.V Raman, emacs-devel

Dmitry Gutov <dgutov@yandex.ru> writes:

> Is that specific to certain desktop environments?

It's specific to certain popular input method modules.  If you have
disabled input method support, then C-; will work, but as expected the
input methods will not.

With XIM support on X, all of that will work fine.

Thanks.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15 13:45     ` Po Lu
@ 2022-02-15 14:02       ` Eli Zaretskii
  2022-02-15 14:03         ` Po Lu
  2022-02-15 23:50         ` Tim Cross
  0 siblings, 2 replies; 49+ messages in thread
From: Eli Zaretskii @ 2022-02-15 14:02 UTC (permalink / raw)
  To: Po Lu; +Cc: raman, emacs-devel

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org,  raman@google.com
> Date: Tue, 15 Feb 2022 21:45:45 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > Should this be in NEWS (and perhaps also in PROBLEMS)?
> 
> The NEWS entry seems fine (it already mentions that it's for Wayland and
> Broadway)

IMNSHO, not explicitly enough:

  ** Emacs now supports being built with pure GTK.
  To use this option, make sure the GTK 3 and Cairo development files
  are installed, and configure Emacs with the option '--with-pgtk'.
  Unlike the default X and GTK build, the resulting Emacs binary will
  work on any underlying window system supported by GDK, such as
  Wayland and Broadway.

No matter how many times I re-read this, I fail to understand that it
tells me not to use it on X, and it definitely doesn't warn me of any
downsides if I do.  A word of warning is definitely in order there.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15 14:02       ` Eli Zaretskii
@ 2022-02-15 14:03         ` Po Lu
  2022-02-15 14:11           ` Eli Zaretskii
  2022-02-15 23:50         ` Tim Cross
  1 sibling, 1 reply; 49+ messages in thread
From: Po Lu @ 2022-02-15 14:03 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: emacs-devel, raman

Eli Zaretskii <eliz@gnu.org> writes:

> IMNSHO, not explicitly enough:
>
>   ** Emacs now supports being built with pure GTK.
>   To use this option, make sure the GTK 3 and Cairo development files
>   are installed, and configure Emacs with the option '--with-pgtk'.
>   Unlike the default X and GTK build, the resulting Emacs binary will
>   work on any underlying window system supported by GDK, such as
>   Wayland and Broadway.
>
> No matter how many times I re-read this, I fail to understand that it
> tells me not to use it on X, and it definitely doesn't warn me of any
> downsides if I do.  A word of warning is definitely in order there.

How about "the resulting Emacs binary is supposed to work with window
systems other than X that are supported by GDK, such as Wayland and
Broadway"?

Thanks.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15 14:03         ` Po Lu
@ 2022-02-15 14:11           ` Eli Zaretskii
  2022-02-16  0:03             ` Tim Cross
  0 siblings, 1 reply; 49+ messages in thread
From: Eli Zaretskii @ 2022-02-15 14:11 UTC (permalink / raw)
  To: Po Lu; +Cc: raman, emacs-devel

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org,  raman@google.com
> Date: Tue, 15 Feb 2022 22:03:36 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > IMNSHO, not explicitly enough:
> >
> >   ** Emacs now supports being built with pure GTK.
> >   To use this option, make sure the GTK 3 and Cairo development files
> >   are installed, and configure Emacs with the option '--with-pgtk'.
> >   Unlike the default X and GTK build, the resulting Emacs binary will
> >   work on any underlying window system supported by GDK, such as
> >   Wayland and Broadway.
> >
> > No matter how many times I re-read this, I fail to understand that it
> > tells me not to use it on X, and it definitely doesn't warn me of any
> > downsides if I do.  A word of warning is definitely in order there.
> 
> How about "the resulting Emacs binary is supposed to work with window
> systems other than X that are supported by GDK, such as Wayland and
> Broadway"?

I'd suggest something more explicit, like

  We do not recommend that you use this configuration, unless you are
  running a window system that's supported by GDK, such as Wayland or
  Broadway.  Running this configuration on X is known to have
  problems, like ...

(describe a couple of problems instead of the ellipsis).



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: Modifier keys on ttys
  2022-02-15 13:35       ` Alan Mackenzie
@ 2022-02-15 14:19         ` Stefan Monnier
  0 siblings, 0 replies; 49+ messages in thread
From: Stefan Monnier @ 2022-02-15 14:19 UTC (permalink / raw)
  To: Alan Mackenzie; +Cc: tomas, emacs-devel

>> Side note: the "right" way to do it is via `input-decode-map` rather
>> than `function-key-map`, BTW.
> Ah, how these things change!  I think function-key-map was the only way
> ~20 years ago.

Indeed, `function-key-map` used to be the only way.
I added `input-decode-map` in Emacs-23.


        Stefan




^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15 14:02       ` Eli Zaretskii
  2022-02-15 14:03         ` Po Lu
@ 2022-02-15 23:50         ` Tim Cross
  2022-02-16  3:16           ` T.V Raman
  1 sibling, 1 reply; 49+ messages in thread
From: Tim Cross @ 2022-02-15 23:50 UTC (permalink / raw)
  To: emacs-devel


Eli Zaretskii <eliz@gnu.org> writes:

>> From: Po Lu <luangruo@yahoo.com>
>> Cc: emacs-devel@gnu.org,  raman@google.com
>> Date: Tue, 15 Feb 2022 21:45:45 +0800
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> > Should this be in NEWS (and perhaps also in PROBLEMS)?
>> 
>> The NEWS entry seems fine (it already mentions that it's for Wayland and
>> Broadway)
>
> IMNSHO, not explicitly enough:
>
>   ** Emacs now supports being built with pure GTK.
>   To use this option, make sure the GTK 3 and Cairo development files
>   are installed, and configure Emacs with the option '--with-pgtk'.
>   Unlike the default X and GTK build, the resulting Emacs binary will
>   work on any underlying window system supported by GDK, such as
>   Wayland and Broadway.
>
> No matter how many times I re-read this, I fail to understand that it
> tells me not to use it on X, and it definitely doesn't warn me of any
> downsides if I do.  A word of warning is definitely in order there.

Yes, I would agree. 

This is likely going to be problematic. A number of GNU Linux distros
are now defaulting to Wayland (e.g. fedora) and others have flagged
tgheir intention to follow suit (Ubuntu, Debian). 

Where this could become problematic is if distro maintainers don't
realise there are downsides with a pgtk build under X. In this
situation, they are likely to only bundle a pgtk and non-GUI versions
rather than a pgtk, X and non-GUI versions. 

If we make the issues associated with pgtk, X and input methods
explicit, distributions which want to support wayland and X will be more
likely to include both wayland (pgtk) and X binary packages. 

As distributions which do support wayland typically also make it easy to
select/switch desktop environments, it is probably also important users
are aware of the input method issues with pgtk under X as it means that
when they switch from wayland to X, they also need to know to switch
which build of Emacs they run. Failure to adequately communicate this
will likely result in numerous unresolvable bug reports. 



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15 14:11           ` Eli Zaretskii
@ 2022-02-16  0:03             ` Tim Cross
  2022-02-16  0:48               ` Po Lu
  0 siblings, 1 reply; 49+ messages in thread
From: Tim Cross @ 2022-02-16  0:03 UTC (permalink / raw)
  To: emacs-devel


Eli Zaretskii <eliz@gnu.org> writes:

>> From: Po Lu <luangruo@yahoo.com>
>> Cc: emacs-devel@gnu.org,  raman@google.com
>> Date: Tue, 15 Feb 2022 22:03:36 +0800
>> 
>> Eli Zaretskii <eliz@gnu.org> writes:
>> 
>> > IMNSHO, not explicitly enough:
>> >
>> >   ** Emacs now supports being built with pure GTK.
>> >   To use this option, make sure the GTK 3 and Cairo development files
>> >   are installed, and configure Emacs with the option '--with-pgtk'.
>> >   Unlike the default X and GTK build, the resulting Emacs binary will
>> >   work on any underlying window system supported by GDK, such as
>> >   Wayland and Broadway.
>> >
>> > No matter how many times I re-read this, I fail to understand that it
>> > tells me not to use it on X, and it definitely doesn't warn me of any
>> > downsides if I do.  A word of warning is definitely in order there.
>> 
>> How about "the resulting Emacs binary is supposed to work with window
>> systems other than X that are supported by GDK, such as Wayland and
>> Broadway"?
>
> I'd suggest something more explicit, like
>
>   We do not recommend that you use this configuration, unless you are
>   running a window system that's supported by GDK, such as Wayland or
>   Broadway.  Running this configuration on X is known to have
>   problems, like ...
>
> (describe a couple of problems instead of the ellipsis).

Yes, I think it needs to be this explicit. The suggested entgry from Po
Lu is still too oblique and fails to be explicit about known issues.
Something also seems "wrong" with a statement which includes "is
supposed to work". 



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15 12:33     ` tomas
@ 2022-02-16  0:13       ` Tim Cross
  0 siblings, 0 replies; 49+ messages in thread
From: Tim Cross @ 2022-02-16  0:13 UTC (permalink / raw)
  To: emacs-devel


tomas@tuxteam.de writes:

> [[PGP Signed Part:Undecided]]
> On Tue, Feb 15, 2022 at 11:56:40AM +0000, Alan Mackenzie wrote:
>> Hello, Tomas.
>> 
>> On Tue, Feb 15, 2022 at 07:36:21 +0100, tomas@tuxteam.de wrote:
>
> [...]
>
>> > Note that TTYs have no way to represent C-; and friends.
>> 
>> But they do.  It just takes a bit of work.  loadkeys is your friend.
>> I've had C-; on my Linux console for over 20 years, now.  As well as
>> loadkeys, you need to set up Emacs with stuff in the function-key-map to
>> handle the modified keys.  It works well.
>
> OK, OK. I should have added "often" :-)
>
> Usually it's me the one who says "all generalizations suck". Thanks for
> setting me straight.
>
> Still, and returning to the OP, the described behaviour is at least a
> kind of hint: I'd check whether C-c and C-x works or not, to bisect the
> issue at that point.
>

I suspect if C-c and C-x did not work, that would already have been
reported as those are key bindings pretty essential to a functionaling
Emacs. A failing binding for something like C-; is something many users
may not notice for some time (if ever). 



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-16  0:03             ` Tim Cross
@ 2022-02-16  0:48               ` Po Lu
  0 siblings, 0 replies; 49+ messages in thread
From: Po Lu @ 2022-02-16  0:48 UTC (permalink / raw)
  To: Tim Cross; +Cc: emacs-devel

Tim Cross <theophilusx@gmail.com> writes:

>> I'd suggest something more explicit, like
>>
>>   We do not recommend that you use this configuration, unless you are
>>   running a window system that's supported by GDK, such as Wayland or
>>   Broadway.  Running this configuration on X is known to have
>>   problems, like ...
>>
>> (describe a couple of problems instead of the ellipsis).
>
> Yes, I think it needs to be this explicit. The suggested entgry from Po
> Lu is still too oblique and fails to be explicit about known issues.
> Something also seems "wrong" with a statement which includes "is
> supposed to work". 

Eli's suggestion does seem much better.  I'll install something to those
lines soon.

Thanks.




^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-15 23:50         ` Tim Cross
@ 2022-02-16  3:16           ` T.V Raman
  2022-02-16  6:19             ` Tim Cross
  0 siblings, 1 reply; 49+ messages in thread
From: T.V Raman @ 2022-02-16  3:16 UTC (permalink / raw)
  To: Tim Cross; +Cc: emacs-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 2488 bytes --]

Tim Cross <theophilusx@gmail.com> writes:

More importantly, that this difference only showed up recently makes me
still want to call it a bug --- not a "Xis old and broken go away if it
doesn't work" view-point.

> Eli Zaretskii <eliz@gnu.org> writes:
>
>>> From: Po Lu <luangruo@yahoo.com>
>>> Cc: emacs-devel@gnu.org,  raman@google.com
>>> Date: Tue, 15 Feb 2022 21:45:45 +0800
>>> 
>>> Eli Zaretskii <eliz@gnu.org> writes:
>>> 
>>> > Should this be in NEWS (and perhaps also in PROBLEMS)?
>>> 
>>> The NEWS entry seems fine (it already mentions that it's for Wayland and
>>> Broadway)
>>
>> IMNSHO, not explicitly enough:
>>
>>   ** Emacs now supports being built with pure GTK.
>>   To use this option, make sure the GTK 3 and Cairo development files
>>   are installed, and configure Emacs with the option '--with-pgtk'.
>>   Unlike the default X and GTK build, the resulting Emacs binary will
>>   work on any underlying window system supported by GDK, such as
>>   Wayland and Broadway.
>>
>> No matter how many times I re-read this, I fail to understand that it
>> tells me not to use it on X, and it definitely doesn't warn me of any
>> downsides if I do.  A word of warning is definitely in order there.
>
> Yes, I would agree. 
>
> This is likely going to be problematic. A number of GNU Linux distros
> are now defaulting to Wayland (e.g. fedora) and others have flagged
> tgheir intention to follow suit (Ubuntu, Debian). 
>
> Where this could become problematic is if distro maintainers don't
> realise there are downsides with a pgtk build under X. In this
> situation, they are likely to only bundle a pgtk and non-GUI versions
> rather than a pgtk, X and non-GUI versions. 
>
> If we make the issues associated with pgtk, X and input methods
> explicit, distributions which want to support wayland and X will be more
> likely to include both wayland (pgtk) and X binary packages. 
>
> As distributions which do support wayland typically also make it easy to
> select/switch desktop environments, it is probably also important users
> are aware of the input method issues with pgtk under X as it means that
> when they switch from wayland to X, they also need to know to switch
> which build of Emacs they run. Failure to adequately communicate this
> will likely result in numerous unresolvable bug reports. 
>

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1  •0Ü8



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-16  3:16           ` T.V Raman
@ 2022-02-16  6:19             ` Tim Cross
  2022-02-16  7:22               ` Po Lu
  0 siblings, 1 reply; 49+ messages in thread
From: Tim Cross @ 2022-02-16  6:19 UTC (permalink / raw)
  To: T.V Raman; +Cc: emacs-devel


"T.V Raman" <raman@google.com> writes:

> Tim Cross <theophilusx@gmail.com> writes:
>
> More importantly, that this difference only showed up recently makes me
> still want to call it a bug --- not a "Xis old and broken go away if it
> doesn't work" view-point.
>

This is a very important point!

If you were running the pgtk build and all the key bindings were working
fine and then suddenly they stopped working, I would agree it it likely
there is something more going on than simply "a known problem with gtk
and input methods".Especially as it is unlikely you changed input
methods settings. It may be a mistake to just write this off as a "known
issue". Will be interesting if others running pgtk under X also start
noticing issues. 

While I'm not running the pgtk build at present, have to admit that when
I did a few months back, I did not encounter any key binding issues
under X. Have to admit, I didn't do anthing 'special' with input
methods. Just ran it under various X envrionments (Stumpwm, Ubuntu Matge
and a brief experiment with Exwm).



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-16  6:19             ` Tim Cross
@ 2022-02-16  7:22               ` Po Lu
  2022-02-16 13:11                 ` Tassilo Horn
  0 siblings, 1 reply; 49+ messages in thread
From: Po Lu @ 2022-02-16  7:22 UTC (permalink / raw)
  To: Tim Cross; +Cc: T.V Raman, emacs-devel

Tim Cross <theophilusx@gmail.com> writes:

> If you were running the pgtk build and all the key bindings were working
> fine and then suddenly they stopped working, I would agree it it likely
> there is something more going on than simply "a known problem with gtk
> and input methods".

AFAICT, it's the same issue with "C-S-u" being reported as C-u on the
PGTK port, which has been there since the beginning (search the bug
tracker for more details.)

Disabling input methods using `pgtk-use-im-context' makes both problems
go away here for me, and none of that code has changed since it was
installed.

So if the problem only recently appeared for you in the PGTK builds,
please try to bisect to the change which introduced it.

Thanks.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-16  7:22               ` Po Lu
@ 2022-02-16 13:11                 ` Tassilo Horn
  2022-02-16 13:37                   ` Po Lu
  0 siblings, 1 reply; 49+ messages in thread
From: Tassilo Horn @ 2022-02-16 13:11 UTC (permalink / raw)
  To: Po Lu; +Cc: Tim Cross, emacs-devel, T.V Raman

Po Lu <luangruo@yahoo.com> writes:

>> If you were running the pgtk build and all the key bindings were
>> working fine and then suddenly they stopped working, I would agree it
>> it likely there is something more going on than simply "a known
>> problem with gtk and input methods".
>
> AFAICT, it's the same issue with "C-S-u" being reported as C-u on the
> PGTK port, which has been there since the beginning (search the bug
> tracker for more details.)

Interesting, I'm using pgtk on wayland/sway and C-h k C-S-u doesn't
report anything but inserts an underlined letter "u" in the current
buffer, even when that is read-only, and still seems to wait for my key.
Then, emacs is inresponsive, C-g won't work, and I need to switch to
another window and back again.  At that point, the underlined u
disappears and I can interact with emacs again.

> Disabling input methods using `pgtk-use-im-context' makes both
> problems go away here for me, and none of that code has changed since
> it was installed.

When I run (pgtk-use-im-context nil), the above problem doesn't happen
and C-h k C-S-u reports C-u translated from C-S-u.  However, I also
cannot insert characters like ` or ´ anymore.  Pressing the relevant
AltGr-key combo on my German Dvorak layout doesn't seem to be received
by emacs.  C-h k <AltGr-combo> doesn't receive anything.

So it seems like I can choose pest or cholera...

Bye,
Tassilo



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-16 13:11                 ` Tassilo Horn
@ 2022-02-16 13:37                   ` Po Lu
  2022-02-16 13:46                     ` Tassilo Horn
  0 siblings, 1 reply; 49+ messages in thread
From: Po Lu @ 2022-02-16 13:37 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: Tim Cross, T.V Raman, emacs-devel

Tassilo Horn <tsdh@gnu.org> writes:

> Interesting, I'm using pgtk on wayland/sway and C-h k C-S-u doesn't
> report anything but inserts an underlined letter "u" in the current
> buffer, even when that is read-only, and still seems to wait for my key.
> Then, emacs is inresponsive, C-g won't work, and I need to switch to
> another window and back again.  At that point, the underlined u
> disappears and I can interact with emacs again.

If you're using I-Bus, then that's the Unicode code-point input panel.
You can disable it by running:

  gsettings set org.freedesktop.ibus.panel.emoji unicode-hotkey []

Or removing the "Unicode code point" entry in the Emoji tab of
ibus-setup.

The reason C-g does not work and Emacs appears to be unresponsive is
that the input method filters out all keypresses and sends them to the
panel, and switching to another window serves to dismiss that panel.

> When I run (pgtk-use-im-context nil), the above problem doesn't happen
> and C-h k C-S-u reports C-u translated from C-S-u.  However, I also
> cannot insert characters like ` or ´ anymore.  Pressing the relevant
> AltGr-key combo on my German Dvorak layout doesn't seem to be received
> by emacs.  C-h k <AltGr-combo> doesn't receive anything.

That's expected, since those combinations are handled by the GTK input
method machinery.

Thanks.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-16 13:37                   ` Po Lu
@ 2022-02-16 13:46                     ` Tassilo Horn
  2022-02-16 14:01                       ` Po Lu
  0 siblings, 1 reply; 49+ messages in thread
From: Tassilo Horn @ 2022-02-16 13:46 UTC (permalink / raw)
  To: Po Lu; +Cc: Tim Cross, emacs-devel, T.V Raman

Po Lu <luangruo@yahoo.com> writes:

>> Interesting, I'm using pgtk on wayland/sway and C-h k C-S-u doesn't
>> report anything but inserts an underlined letter "u" in the current
>> buffer, even when that is read-only, and still seems to wait for my
>> key.  Then, emacs is inresponsive, C-g won't work, and I need to
>> switch to another window and back again.  At that point, the
>> underlined u disappears and I can interact with emacs again.
>
> If you're using I-Bus, then that's the Unicode code-point input panel.
> You can disable it by running:
>
>   gsettings set org.freedesktop.ibus.panel.emoji unicode-hotkey []

It seems I'm not, that says "No such schema
“org.freedesktop.ibus.panel.emoji”".  I also don't have the ibus package
installed but I do have libibus upon which a lot of packages seem to
depend on.

I've tried looking for other schemas but didn't find some but of course
I'm not actually sure what I'm looking for:

--8<---------------cut here---------------start------------->8---
❯ gsettings list-schemas | grep im
org.gnome.desktop.datetime
org.gnome.gedit.plugins.time

❯ gsettings list-schemas | grep input
org.gnome.desktop.input-sources

❯ gsettings list-schemas | grep ibus

--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-16 13:46                     ` Tassilo Horn
@ 2022-02-16 14:01                       ` Po Lu
  2022-02-16 17:48                         ` Tassilo Horn
  0 siblings, 1 reply; 49+ messages in thread
From: Po Lu @ 2022-02-16 14:01 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: Tim Cross, emacs-devel, T.V Raman

Tassilo Horn <tsdh@gnu.org> writes:

> It seems I'm not, that says "No such schema
> “org.freedesktop.ibus.panel.emoji”".  I also don't have the ibus package
> installed but I do have libibus upon which a lot of packages seem to
> depend on.
>
> I've tried looking for other schemas but didn't find some but of course
> I'm not actually sure what I'm looking for:
>
> ❯ gsettings list-schemas | grep im
> org.gnome.desktop.datetime
> org.gnome.gedit.plugins.time
>
> ❯ gsettings list-schemas | grep input
> org.gnome.desktop.input-sources
>
> ❯ gsettings list-schemas | grep ibus
>
> Bye,
> Tassilo

I don't know about the other input method frameworks.  Could you find
out which one you are using?

Thanks in advance.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-16 14:01                       ` Po Lu
@ 2022-02-16 17:48                         ` Tassilo Horn
  2022-02-17  0:43                           ` Po Lu
  0 siblings, 1 reply; 49+ messages in thread
From: Tassilo Horn @ 2022-02-16 17:48 UTC (permalink / raw)
  To: Po Lu; +Cc: Tim Cross, T.V Raman, emacs-devel

Po Lu <luangruo@yahoo.com> writes:

> I don't know about the other input method frameworks.  Could you find
> out which one you are using?

I've searched a bit and found

  https://docs.gtk.org/gtk3/property.Settings.gtk-im-module.html

which suggests that the property gtk-im-module is the default input
method unless the user explicitly chose another im-module from the IM
context menu.

❯ gtk-query-settings | grep im-module
                      gtk-im-module: "wayland"

So it seems I'm using the wayland input method module.

Bye,
Tassilo



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-16 17:48                         ` Tassilo Horn
@ 2022-02-17  0:43                           ` Po Lu
  2022-02-17  5:40                             ` Tassilo Horn
  0 siblings, 1 reply; 49+ messages in thread
From: Po Lu @ 2022-02-17  0:43 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: Tim Cross, T.V Raman, emacs-devel

Tassilo Horn <tsdh@gnu.org> writes:

> Po Lu <luangruo@yahoo.com> writes:
>
>> I don't know about the other input method frameworks.  Could you find
>> out which one you are using?
>
> I've searched a bit and found
>
>   https://docs.gtk.org/gtk3/property.Settings.gtk-im-module.html
>
> which suggests that the property gtk-im-module is the default input
> method unless the user explicitly chose another im-module from the IM
> context menu.
>
> ❯ gtk-query-settings | grep im-module
>                       gtk-im-module: "wayland"
>
> So it seems I'm using the wayland input method module.

Unfortunately that just means it's using the input-method-unstable-v1
Wayland protocol extension to handle input methods, and says nothing
about the framework being used.

Thanks.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-17  0:43                           ` Po Lu
@ 2022-02-17  5:40                             ` Tassilo Horn
  2022-02-17 15:02                               ` T.V Raman
  0 siblings, 1 reply; 49+ messages in thread
From: Tassilo Horn @ 2022-02-17  5:40 UTC (permalink / raw)
  To: Po Lu; +Cc: Tim Cross, emacs-devel, T.V Raman

Po Lu <luangruo@yahoo.com> writes:

>> ❯ gtk-query-settings | grep im-module
>>                       gtk-im-module: "wayland"
>>
>> So it seems I'm using the wayland input method module.
>
> Unfortunately that just means it's using the input-method-unstable-v1
> Wayland protocol extension to handle input methods, and says nothing
> about the framework being used.

Ok.  Do you have an idea where else I should have a look?

Bye,
Tassilo



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-17  5:40                             ` Tassilo Horn
@ 2022-02-17 15:02                               ` T.V Raman
  2022-02-17 17:38                                 ` Tassilo Horn
  2022-02-18  0:42                                 ` Po Lu
  0 siblings, 2 replies; 49+ messages in thread
From: T.V Raman @ 2022-02-17 15:02 UTC (permalink / raw)
  To: tsdh; +Cc: luangruo, theophilusx, raman, emacs-devel

In case it helps --

I was running the pgtk build on Debian until a few weeks ago -- and
 switched away after reporting a segfault -- should be in the list
 archives. Before that C-; worked in the pgtk build. I went back to
 try pgtk last week  an  now there is no crash but the keys as I
 reported have disappeared.

Tassilo Horn writes:
 > Po Lu <luangruo@yahoo.com> writes:
 > 
 > >> ❯ gtk-query-settings | grep im-module
 > >>                       gtk-im-module: "wayland"
 > >>
 > >> So it seems I'm using the wayland input method module.
 > >
 > > Unfortunately that just means it's using the input-method-unstable-v1
 > > Wayland protocol extension to handle input methods, and says nothing
 > > about the framework being used.
 > 
 > Ok.  Do you have an idea where else I should have a look?
 > 
 > Bye,
 > Tassilo

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮

--

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-17 15:02                               ` T.V Raman
@ 2022-02-17 17:38                                 ` Tassilo Horn
  2022-02-17 19:36                                   ` Eric Abrahamsen
  2022-02-18  0:42                                 ` Po Lu
  1 sibling, 1 reply; 49+ messages in thread
From: Tassilo Horn @ 2022-02-17 17:38 UTC (permalink / raw)
  To: T.V Raman; +Cc: luangruo, theophilusx, emacs-devel

"T.V Raman" <raman@google.com> writes:

> I was running the pgtk build on Debian until a few weeks ago -- and
> switched away after reporting a segfault -- should be in the list
> archives.

Found it, it was on January, 6th.

> Before that C-; worked in the pgtk build.  I went back to try pgtk
> last week an now there is no crash but the keys as I reported have
> disappeared.

Hm, C-; works for me with the current master, and C-S-u triggers the GTK
Unicode input method.  Now I know at least what "that underlined u" is.
After C-S-u one can insert 4 hex-digits and then it'll be replaced by
the corresponding unicode character.

I've tried out commit 97b6907563ae9c96ebb97876ce0662c7f9d47535 from
December, 18th (shortly after the pgtk merge) in order to bisect but
there I get the very same behavior as with today's master.

Bye,
Tassilo



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-17 17:38                                 ` Tassilo Horn
@ 2022-02-17 19:36                                   ` Eric Abrahamsen
  2022-02-17 19:40                                     ` Eric Abrahamsen
  2022-02-17 20:00                                     ` Tassilo Horn
  0 siblings, 2 replies; 49+ messages in thread
From: Eric Abrahamsen @ 2022-02-17 19:36 UTC (permalink / raw)
  To: emacs-devel

Tassilo Horn <tsdh@gnu.org> writes:

> "T.V Raman" <raman@google.com> writes:
>
>> I was running the pgtk build on Debian until a few weeks ago -- and
>> switched away after reporting a segfault -- should be in the list
>> archives.
>
> Found it, it was on January, 6th.
>
>> Before that C-; worked in the pgtk build.  I went back to try pgtk
>> last week an now there is no crash but the keys as I reported have
>> disappeared.
>
> Hm, C-; works for me with the current master, and C-S-u triggers the GTK
> Unicode input method.  Now I know at least what "that underlined u" is.
> After C-S-u one can insert 4 hex-digits and then it'll be replaced by
> the corresponding unicode character.

I think that's GTK's IMContextSimple. What does "echo $GTK_IM_MODULE"
get you? Maybe you can try:

gsettings set org.gnome.settings-daemon.plugins.keyboard active false

I've only fooled with the edges of this stuff, but maybe something in
the above will get you there.




^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-17 19:36                                   ` Eric Abrahamsen
@ 2022-02-17 19:40                                     ` Eric Abrahamsen
  2022-02-17 20:07                                       ` Tassilo Horn
  2022-02-17 20:00                                     ` Tassilo Horn
  1 sibling, 1 reply; 49+ messages in thread
From: Eric Abrahamsen @ 2022-02-17 19:40 UTC (permalink / raw)
  To: emacs-devel

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> Tassilo Horn <tsdh@gnu.org> writes:
>
>> "T.V Raman" <raman@google.com> writes:
>>
>>> I was running the pgtk build on Debian until a few weeks ago -- and
>>> switched away after reporting a segfault -- should be in the list
>>> archives.
>>
>> Found it, it was on January, 6th.
>>
>>> Before that C-; worked in the pgtk build.  I went back to try pgtk
>>> last week an now there is no crash but the keys as I reported have
>>> disappeared.
>>
>> Hm, C-; works for me with the current master, and C-S-u triggers the GTK
>> Unicode input method.  Now I know at least what "that underlined u" is.
>> After C-S-u one can insert 4 hex-digits and then it'll be replaced by
>> the corresponding unicode character.
>
> I think that's GTK's IMContextSimple. What does "echo $GTK_IM_MODULE"
> get you? Maybe you can try:
>
> gsettings set org.gnome.settings-daemon.plugins.keyboard active false
>
> I've only fooled with the edges of this stuff, but maybe something in
> the above will get you there.

Just for context, I use fcitx, and my GTK_IM_MODULE is set to fcitx, and
with the recent Emacs changes (I'm also on Arch/sway/pgtk) I had to go
into the fcitx configuration and disable a bunch of previously-ignored
hotkeys that suddenly were being honored.




^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-17 19:36                                   ` Eric Abrahamsen
  2022-02-17 19:40                                     ` Eric Abrahamsen
@ 2022-02-17 20:00                                     ` Tassilo Horn
  2022-02-17 20:10                                       ` Eric Abrahamsen
                                                         ` (2 more replies)
  1 sibling, 3 replies; 49+ messages in thread
From: Tassilo Horn @ 2022-02-17 20:00 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-devel

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

Hi Eric,

>>> Before that C-; worked in the pgtk build.  I went back to try pgtk
>>> last week an now there is no crash but the keys as I reported have
>>> disappeared.
>>
>> Hm, C-; works for me with the current master, and C-S-u triggers the
>> GTK Unicode input method.  Now I know at least what "that underlined
>> u" is.  After C-S-u one can insert 4 hex-digits and then it'll be
>> replaced by the corresponding unicode character.
>
> I think that's GTK's IMContextSimple. What does "echo $GTK_IM_MODULE"
> get you?

It's undefined.

> Maybe you can try:
>
> gsettings set org.gnome.settings-daemon.plugins.keyboard active false

No such schema “org.gnome.settings-daemon.plugins.keyboard”

Bye,
Tassilo



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-17 19:40                                     ` Eric Abrahamsen
@ 2022-02-17 20:07                                       ` Tassilo Horn
  0 siblings, 0 replies; 49+ messages in thread
From: Tassilo Horn @ 2022-02-17 20:07 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: emacs-devel

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

>> I think that's GTK's IMContextSimple.

Indeed.

❯ gsettings get org.gnome.desktop.interface gtk-im-module
'gtk-im-context-simple'

> Just for context, I use fcitx, and my GTK_IM_MODULE is set to fcitx,
> and with the recent Emacs changes (I'm also on Arch/sway/pgtk) I had
> to go into the fcitx configuration and disable a bunch of
> previously-ignored hotkeys that suddenly were being honored.

If I just knew which input method framework I'm using so that I could do
the same. :-)

Maybe gtk-query-immodules-3.0 gives a clue?

--8<---------------cut here---------------start------------->8---
❯ gtk-query-immodules-3.0 
# GTK+ Input Method Modules file
# Automatically generated file, do not edit
# Created by gtk-query-immodules-3.0 from gtk+-3.24.31
#
# ModulesPath = /usr/lib/gtk-3.0/3.0.0/linux/immodules:/usr/lib/gtk-3.0/3.0.0/immodules:/usr/lib/gtk-3.0/linux/immodules:/usr/lib/gtk-3.0/immodules
#
"/usr/lib/gtk-3.0/3.0.0/immodules/im-am-et.so" 
"am_et" "Amharic (EZ+)" "gtk30" "/usr/share/locale" "am" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-broadway.so" 
"broadway" "Broadway" "gtk30" "/usr/share/locale" "" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-cedilla.so" 
"cedilla" "Cedilla" "gtk30" "/usr/share/locale" "az:ca:co:fr:gv:oc:pt:sq:tr:wa" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-cyrillic-translit.so" 
"cyrillic_translit" "Cyrillic (Transliterated)" "gtk30" "/usr/share/locale" "" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-inuktitut.so" 
"inuktitut" "Inuktitut (Transliterated)" "gtk30" "/usr/share/locale" "iu" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-ipa.so" 
"ipa" "IPA" "gtk30" "/usr/share/locale" "" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-multipress.so" 
"multipress" "Multipress" "gtk30" "/usr/share/locale" "" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-thai.so" 
"thai" "Thai-Lao" "gtk30" "/usr/share/locale" "lo:th" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-ti-er.so" 
"ti_er" "Tigrigna-Eritrean (EZ+)" "gtk30" "/usr/share/locale" "ti" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-ti-et.so" 
"ti_et" "Tigrigna-Ethiopian (EZ+)" "gtk30" "/usr/share/locale" "ti" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-viqr.so" 
"viqr" "Vietnamese (VIQR)" "gtk30" "/usr/share/locale" "" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-wayland.so" 
"wayland" "Wayland" "gtk30" "/usr/share/locale" "" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-waylandgtk.so" 
"waylandgtk" "Waylandgtk" "gtk30" "/usr/share/locale" "" 

"/usr/lib/gtk-3.0/3.0.0/immodules/im-xim.so" 
"xim" "X Input Method" "gtk30" "/usr/share/locale" "ko:ja:th:zh" 
--8<---------------cut here---------------end--------------->8---

Bye,
Tassilo



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-17 20:00                                     ` Tassilo Horn
@ 2022-02-17 20:10                                       ` Eric Abrahamsen
  2022-02-18  0:44                                       ` Po Lu
  2022-02-18  3:13                                       ` T.V Raman
  2 siblings, 0 replies; 49+ messages in thread
From: Eric Abrahamsen @ 2022-02-17 20:10 UTC (permalink / raw)
  To: emacs-devel

Tassilo Horn <tsdh@gnu.org> writes:

> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
> Hi Eric,
>
>>>> Before that C-; worked in the pgtk build.  I went back to try pgtk
>>>> last week an now there is no crash but the keys as I reported have
>>>> disappeared.
>>>
>>> Hm, C-; works for me with the current master, and C-S-u triggers the
>>> GTK Unicode input method.  Now I know at least what "that underlined
>>> u" is.  After C-S-u one can insert 4 hex-digits and then it'll be
>>> replaced by the corresponding unicode character.
>>
>> I think that's GTK's IMContextSimple. What does "echo $GTK_IM_MODULE"
>> get you?
>
> It's undefined.
>
>> Maybe you can try:
>>
>> gsettings set org.gnome.settings-daemon.plugins.keyboard active false
>
> No such schema “org.gnome.settings-daemon.plugins.keyboard”

Bummer. Well I still think your answer is "in there" somewhere.




^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-17 15:02                               ` T.V Raman
  2022-02-17 17:38                                 ` Tassilo Horn
@ 2022-02-18  0:42                                 ` Po Lu
  1 sibling, 0 replies; 49+ messages in thread
From: Po Lu @ 2022-02-18  0:42 UTC (permalink / raw)
  To: T.V Raman; +Cc: tsdh, theophilusx, emacs-devel

"T.V Raman" <raman@google.com> writes:

> In case it helps --
>
> I was running the pgtk build on Debian until a few weeks ago -- and
>  switched away after reporting a segfault -- should be in the list
>  archives. Before that C-; worked in the pgtk build. I went back to
>  try pgtk last week  an  now there is no crash but the keys as I
>  reported have disappeared.

I unfortunately have no idea as to what might've changed.  Please try
using "git bisect" to find the offending commit.

Thanks.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-17 20:00                                     ` Tassilo Horn
  2022-02-17 20:10                                       ` Eric Abrahamsen
@ 2022-02-18  0:44                                       ` Po Lu
  2022-02-18  3:13                                       ` T.V Raman
  2 siblings, 0 replies; 49+ messages in thread
From: Po Lu @ 2022-02-18  0:44 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: Eric Abrahamsen, emacs-devel

Tassilo Horn <tsdh@gnu.org> writes:

> No such schema “org.gnome.settings-daemon.plugins.keyboard”

Disabling the IM module is the equivalent of (pgtk-use-im-context nil),
except it takes effect for all applications.

So that's probably not your answer.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-17 20:00                                     ` Tassilo Horn
  2022-02-17 20:10                                       ` Eric Abrahamsen
  2022-02-18  0:44                                       ` Po Lu
@ 2022-02-18  3:13                                       ` T.V Raman
  2022-02-18  3:25                                         ` Po Lu
  2 siblings, 1 reply; 49+ messages in thread
From: T.V Raman @ 2022-02-18  3:13 UTC (permalink / raw)
  To: Tassilo Horn; +Cc: Eric Abrahamsen, emacs-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 1180 bytes --]

Tassilo Horn <tsdh@gnu.org> writes:


And on my laptop I get:

gsettings get org.gnome.desktop.interface gtk-im-module
''
19:10:01 raman-glaptop ~ $ uname -a
Linux raman-glaptop 5.14.16-1rodete1-amd64 #1 SMP Debian 5.14.16-1rodete1 (2021-11-17) x86_64 GNU/Linux
19:11:52 raman-glaptop ~ $ rr

>
> Hi Eric,
>
>>>> Before that C-; worked in the pgtk build.  I went back to try pgtk
>>>> last week an now there is no crash but the keys as I reported have
>>>> disappeared.
>>>
>>> Hm, C-; works for me with the current master, and C-S-u triggers the
>>> GTK Unicode input method.  Now I know at least what "that underlined
>>> u" is.  After C-S-u one can insert 4 hex-digits and then it'll be
>>> replaced by the corresponding unicode character.
>>
>> I think that's GTK's IMContextSimple. What does "echo $GTK_IM_MODULE"
>> get you?
>
> It's undefined.
>
>> Maybe you can try:
>>
>> gsettings set org.gnome.settings-daemon.plugins.keyboard active false
>
> No such schema ¡°org.gnome.settings-daemon.plugins.keyboard¡±
>
> Bye,
> Tassilo
>

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1  •0Ü8



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-18  3:13                                       ` T.V Raman
@ 2022-02-18  3:25                                         ` Po Lu
  2022-02-18 18:13                                           ` T.V Raman
  0 siblings, 1 reply; 49+ messages in thread
From: Po Lu @ 2022-02-18  3:25 UTC (permalink / raw)
  To: T.V Raman; +Cc: Tassilo Horn, Eric Abrahamsen, emacs-devel

"T.V Raman" <raman@google.com> writes:

> And on my laptop I get:
>
> gsettings get org.gnome.desktop.interface gtk-im-module
> ''

What about the environment variables `GTK_IM_MODULE' and `GTK_MODULES'?



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-18  3:25                                         ` Po Lu
@ 2022-02-18 18:13                                           ` T.V Raman
  2022-02-19  1:02                                             ` Po Lu
  0 siblings, 1 reply; 49+ messages in thread
From: T.V Raman @ 2022-02-18 18:13 UTC (permalink / raw)
  To: Po Lu; +Cc: Tassilo Horn, Eric Abrahamsen, emacs-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 499 bytes --]

Po Lu <luangruo@yahoo.com> writes:

10:11:44 raman-glaptop ~ $ echo $GTK_MODULES

10:11:52 raman-glaptop ~ $ echo $GTK_IM_MODULE 
xim
10:12:32 raman-glaptop ~ $ 
> "T.V Raman" <raman@google.com> writes:
>
>> And on my laptop I get:
>>
>> gsettings get org.gnome.desktop.interface gtk-im-module
>> ''
>
> What about the environment variables `GTK_IM_MODULE' and `GTK_MODULES'?
>

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1  •0Ü8



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-18 18:13                                           ` T.V Raman
@ 2022-02-19  1:02                                             ` Po Lu
  2022-02-19  8:00                                               ` Eli Zaretskii
  2022-02-19 15:23                                               ` T.V Raman
  0 siblings, 2 replies; 49+ messages in thread
From: Po Lu @ 2022-02-19  1:02 UTC (permalink / raw)
  To: T.V Raman; +Cc: Tassilo Horn, Eric Abrahamsen, emacs-devel

"T.V Raman" <raman@google.com> writes:

> 10:11:52 raman-glaptop ~ $ echo $GTK_IM_MODULE 
> xim

What if you set it to `simple'?  The legacy XIM input module is
considered obsolete by the GTK developers and is not actively developed.

Thanks in advance.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-19  1:02                                             ` Po Lu
@ 2022-02-19  8:00                                               ` Eli Zaretskii
  2022-02-19  8:15                                                 ` Po Lu
  2022-02-19 15:23                                               ` T.V Raman
  1 sibling, 1 reply; 49+ messages in thread
From: Eli Zaretskii @ 2022-02-19  8:00 UTC (permalink / raw)
  To: Po Lu; +Cc: eric, tsdh, emacs-devel, raman

> From: Po Lu <luangruo@yahoo.com>
> Cc: Tassilo Horn <tsdh@gnu.org>,  Eric Abrahamsen <eric@ericabrahamsen.net>,
>  emacs-devel@gnu.org
> Date: Sat, 19 Feb 2022 09:02:35 +0800
> 
> > 10:11:52 raman-glaptop ~ $ echo $GTK_IM_MODULE 
> > xim
> 
> What if you set it to `simple'?  The legacy XIM input module is
> considered obsolete by the GTK developers and is not actively developed.

Should this be in PROBLEMS?



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-19  8:00                                               ` Eli Zaretskii
@ 2022-02-19  8:15                                                 ` Po Lu
  0 siblings, 0 replies; 49+ messages in thread
From: Po Lu @ 2022-02-19  8:15 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: eric, tsdh, emacs-devel, raman

Eli Zaretskii <eliz@gnu.org> writes:

> Should this be in PROBLEMS?

Right now I'm not sure what to say there, but if changing the IM module
is sufficient to solve the problem, then I'll describe that in PROBLEMS.

Thanks.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-19  1:02                                             ` Po Lu
  2022-02-19  8:00                                               ` Eli Zaretskii
@ 2022-02-19 15:23                                               ` T.V Raman
  2022-02-20  1:01                                                 ` Po Lu
  1 sibling, 1 reply; 49+ messages in thread
From: T.V Raman @ 2022-02-19 15:23 UTC (permalink / raw)
  To: luangruo; +Cc: raman, tsdh, eric, emacs-devel

Also, how do I find out if I even have ximple; I dont even know how to
find out if I have xim since it doesn't appear to be an executable on
my path.

Po Lu writes:
 > "T.V Raman" <raman@google.com> writes:
 > 
 > > 10:11:52 raman-glaptop ~ $ echo $GTK_IM_MODULE 
 > > xim
 > 
 > What if you set it to `simple'?  The legacy XIM input module is
 > considered obsolete by the GTK developers and is not actively developed.
 > 
 > Thanks in advance.

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮

--

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
♉ Id: kg:/m/0285kf1  🦮



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-19 15:23                                               ` T.V Raman
@ 2022-02-20  1:01                                                 ` Po Lu
  2022-02-20 18:06                                                   ` T.V Raman
  2022-02-21 15:46                                                   ` T.V Raman
  0 siblings, 2 replies; 49+ messages in thread
From: Po Lu @ 2022-02-20  1:01 UTC (permalink / raw)
  To: T.V Raman; +Cc: tsdh, eric, emacs-devel

"T.V Raman" <raman@google.com> writes:

> Also, how do I find out if I even have ximple; I dont even know how to
> find out if I have xim since it doesn't appear to be an executable on
> my path.

The simple and XIM backends are built alongside GTK, so they are always
present.



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-20  1:01                                                 ` Po Lu
@ 2022-02-20 18:06                                                   ` T.V Raman
  2022-02-21 15:46                                                   ` T.V Raman
  1 sibling, 0 replies; 49+ messages in thread
From: T.V Raman @ 2022-02-20 18:06 UTC (permalink / raw)
  To: Po Lu; +Cc: tsdh, eric, emacs-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 749 bytes --]


Thanks.

Looking at the various options -- and boy are they bewilderingly many;-)
it might time for emacs to take a step back and collectively come up
with a couple of keyboard configurations for the GUI desktop, in a
manner analogous to what was done for the console many, many years ago
where eventually Linux came with emacs.kmap and emacs2.kmap -- I dont
think end-users, or even specific distros or going to figure this out
for emacs.

This whole thread also reminded me of ibus -- whose landing on Ubuntu a
few years ago broke C-SPC; I remembered only because I have a line in my
.xsession that kills ibus if it running.


-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1  •0Ü8



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-20  1:01                                                 ` Po Lu
  2022-02-20 18:06                                                   ` T.V Raman
@ 2022-02-21 15:46                                                   ` T.V Raman
  2022-02-22  1:00                                                     ` Po Lu
  1 sibling, 1 reply; 49+ messages in thread
From: T.V Raman @ 2022-02-21 15:46 UTC (permalink / raw)
  To: Po Lu; +Cc: tsdh, eric, emacs-devel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=gb18030, Size: 609 bytes --]

Po Lu <luangruo@yahoo.com> writes:

Setting the IM module to ximple
GTK_IM_MODULE=ximple
at the top of my .xsession file, and rebuilding emacs with --with-pgtk

I got all my keys back -- thanks!

> "T.V Raman" <raman@google.com> writes:
>
>> Also, how do I find out if I even have ximple; I dont even know how to
>> find out if I have xim since it doesn't appear to be an executable on
>> my path.
>
> The simple and XIM backends are built alongside GTK, so they are always
> present.
>

-- 

Thanks,

--Raman(I Search, I Find, I Misplace, I Research)
7©4 Id: kg:/m/0285kf1  •0Ü8



^ permalink raw reply	[flat|nested] 49+ messages in thread

* Re: with-pgtk: C-; turns into plain ';'
  2022-02-21 15:46                                                   ` T.V Raman
@ 2022-02-22  1:00                                                     ` Po Lu
  0 siblings, 0 replies; 49+ messages in thread
From: Po Lu @ 2022-02-22  1:00 UTC (permalink / raw)
  To: T.V Raman; +Cc: tsdh, eric, emacs-devel

"T.V Raman" <raman@google.com> writes:

> Po Lu <luangruo@yahoo.com> writes:
>
> Setting the IM module to ximple
> GTK_IM_MODULE=ximple
> at the top of my .xsession file, and rebuilding emacs with --with-pgtk

Would you please try `simple' instead?  Also, that's the equivalent of
running (pgtk-use-im-context nil) inside Emacs.



^ permalink raw reply	[flat|nested] 49+ messages in thread

end of thread, other threads:[~2022-02-22  1:00 UTC | newest]

Thread overview: 49+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-15  3:43 with-pgtk: C-; turns into plain ';' T.V Raman
2022-02-15  4:49 ` Po Lu
2022-02-15 13:41   ` Eli Zaretskii
2022-02-15 13:45     ` Po Lu
2022-02-15 14:02       ` Eli Zaretskii
2022-02-15 14:03         ` Po Lu
2022-02-15 14:11           ` Eli Zaretskii
2022-02-16  0:03             ` Tim Cross
2022-02-16  0:48               ` Po Lu
2022-02-15 23:50         ` Tim Cross
2022-02-16  3:16           ` T.V Raman
2022-02-16  6:19             ` Tim Cross
2022-02-16  7:22               ` Po Lu
2022-02-16 13:11                 ` Tassilo Horn
2022-02-16 13:37                   ` Po Lu
2022-02-16 13:46                     ` Tassilo Horn
2022-02-16 14:01                       ` Po Lu
2022-02-16 17:48                         ` Tassilo Horn
2022-02-17  0:43                           ` Po Lu
2022-02-17  5:40                             ` Tassilo Horn
2022-02-17 15:02                               ` T.V Raman
2022-02-17 17:38                                 ` Tassilo Horn
2022-02-17 19:36                                   ` Eric Abrahamsen
2022-02-17 19:40                                     ` Eric Abrahamsen
2022-02-17 20:07                                       ` Tassilo Horn
2022-02-17 20:00                                     ` Tassilo Horn
2022-02-17 20:10                                       ` Eric Abrahamsen
2022-02-18  0:44                                       ` Po Lu
2022-02-18  3:13                                       ` T.V Raman
2022-02-18  3:25                                         ` Po Lu
2022-02-18 18:13                                           ` T.V Raman
2022-02-19  1:02                                             ` Po Lu
2022-02-19  8:00                                               ` Eli Zaretskii
2022-02-19  8:15                                                 ` Po Lu
2022-02-19 15:23                                               ` T.V Raman
2022-02-20  1:01                                                 ` Po Lu
2022-02-20 18:06                                                   ` T.V Raman
2022-02-21 15:46                                                   ` T.V Raman
2022-02-22  1:00                                                     ` Po Lu
2022-02-18  0:42                                 ` Po Lu
2022-02-15 13:46   ` Dmitry Gutov
2022-02-15 13:48     ` Po Lu
2022-02-15  6:36 ` tomas
2022-02-15 11:56   ` Alan Mackenzie
2022-02-15 12:33     ` tomas
2022-02-16  0:13       ` Tim Cross
2022-02-15 13:08     ` Modifier keys on ttys (was: with-pgtk: C-; turns into plain ';') Stefan Monnier
2022-02-15 13:35       ` Alan Mackenzie
2022-02-15 14:19         ` Modifier keys on ttys Stefan Monnier

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.