GNU bug report logs - #66040
30.0.50; The XF86AudioLowerVolume on keyboard cannot be detected correctly

Previous Next

Package: emacs;

Reported by: "Wang, Zhenhua (MU-Student)" <zhenhua.wang <at> mail.missouri.edu>

Date: Sun, 17 Sep 2023 04:25:02 UTC

Severity: normal

Found in version 30.0.50

Fixed in version 30.1

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 66040 in the body.
You can then email your comments to 66040 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Sun, 17 Sep 2023 04:25:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to "Wang, Zhenhua (MU-Student)" <zhenhua.wang <at> mail.missouri.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 17 Sep 2023 04:25:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: "Wang, Zhenhua (MU-Student)" <zhenhua.wang <at> mail.missouri.edu>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: 30.0.50; The XF86AudioLowerVolume on keyboard cannot be detected
 correctly
Date: Sat, 16 Sep 2023 23:42:06 +0000
[Message part 1 (text/plain, inline)]
The most recent version of Emacs doesn't recognize the XF86AudioLowerVolume key. I use "C-h k" to check this in "emacs -Q". When I press XF86AudioLowerVolume once, no information is displayed. However, If I press XF86AudioLowerVolume twice, "C-h k" indicates that I pressed "C-g".

I believe that this behavior is introduced in emacs-30, because this key works fine in the released emacs 29.1.

To reproduce, simply press the XF86AudioLowerVolume key  in "emacs -Q".



In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.38, cairo version 1.17.8) of 2023-09-16 built on XPS13
Repository revision: 41a45373c1b7f19b06b3666a359331a40e494313
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101008
System Description: Arch Linux

Configured using:
 'configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/lib
 --localstatedir=/var --mandir=/usr/share/man --with-gameuser=:games
 --with-modules --without-libotf --without-m17n-flt --without-gconf
 --with-native-compilation=yes --with-xinput2 --with-x-toolkit=gtk3
 --without-xaw3d --with-sound=no --with-tree-sitter --without-gpm
 --without-compress-install
 '--program-transform-name=s/\([ec]tags\)/\1.emacs/'
 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt -fexceptions
 -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
 -fstack-clash-protection -fcf-protection'
 LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GSETTINGS HARFBUZZ JPEG JSON
LCMS2 LIBSYSTEMD LIBXML2 MODULES NATIVE_COMP NOTIFY INOTIFY PDUMPER PNG
RSVG SECCOMP SQLITE3 THREADS TIFF TOOLKIT_SCROLL_BARS TREE_SITTER WEBP
X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=fcitx
  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
  minibuffer-regexp-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 puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils compile text-property-search comint
ansi-osc ansi-color ring two-column comp comp-cstr warnings icons rx
cl-seq cl-macs gv cl-extra help-mode bytecomp byte-compile time-date
subr-x cl-loaddefs cl-lib rmc iso-transl tooltip cconv eldoc paren
electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd touch-screen 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 seq simple cl-generic
indonesian philippine 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
theme-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 gtk
x-toolkit xinput2 x multi-tty move-toolbar make-network-process
native-compile emacs)

Memory information:
((conses 16 90265 13111) (symbols 48 7881 0) (strings 32 21523 2285)
 (string-bytes 1 673898) (vectors 16 17505)
 (vector-slots 8 350126 11291) (floats 8 44 47) (intervals 56 300 0)
 (buffers 992 13))
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Mon, 18 Sep 2023 00:46:02 GMT) Full text and rfc822 format available.

Message #8 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: "Wang, Zhenhua (MU-Student)" <zhenhua.wang <at> mail.missouri.edu>
Cc: 66040 <at> debbugs.gnu.org
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot
 be detected correctly
Date: Mon, 18 Sep 2023 08:45:20 +0800
"Wang, Zhenhua (MU-Student)" <zhenhua.wang <at> mail.missouri.edu> writes:

> The most recent version of Emacs doesn't recognize the
> XF86AudioLowerVolume key. I use "C-h k" to check this in "emacs
> -Q". When I press XF86AudioLowerVolume once, no information is
> displayed. However, If I press XF86AudioLowerVolume twice, "C-h k"
> indicates that I pressed "C-g".
>
> I believe that this behavior is introduced in emacs-30, because this
> key works fine in the released emacs 29.1.
>
> To reproduce, simply press the XF86AudioLowerVolume key in "emacs -Q".

Set x-quit-keysym to nil in your early-init.el, then restart Emacs.
This feature (reinterpreting volume-down keys as quit) was introduced in
Emacs 30 to support computers without physical input devices capable of
typing `C-g'.

Incidentally, what keyboard are you using?  XF86AudioLowerVolume is not
generated by any I own, and x-quit-keysym is intended to only apply to
volume rocker buttons on mobile phones and their ilk.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Mon, 18 Sep 2023 07:53:02 GMT) Full text and rfc822 format available.

Message #11 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>, 
 "Wang, Zhenhua (MU-Student)" <zhenhua.wang <at> mail.missouri.edu>
Cc: 66040 <at> debbugs.gnu.org
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot
 be detected correctly
Date: Mon, 18 Sep 2023 00:52:16 -0700
Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs <at> gnu.org> writes:

> Set x-quit-keysym to nil in your early-init.el, then restart Emacs.
> This feature (reinterpreting volume-down keys as quit) was introduced in
> Emacs 30 to support computers without physical input devices capable of
> typing `C-g'.

That refers to Android phones, right?

> Incidentally, what keyboard are you using?  XF86AudioLowerVolume is not
> generated by any I own, and x-quit-keysym is intended to only apply to
> volume rocker buttons on mobile phones and their ilk.

Such keys are fairly common on standard keyboards, or at least used to
be.  There is usually an extra "function key row" with a "volume down"
key that generates XF86AudioLowerVolume.  I have one of those keyboards
lying around.

Is there a way to support this on mobile phones without this key
breaking on machines with regular keyboards?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Mon, 18 Sep 2023 09:49:02 GMT) Full text and rfc822 format available.

Message #14 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: "Wang, Zhenhua (MU-Student)" <zhenhua.wang <at> mail.missouri.edu>
To: Po Lu <luangruo <at> yahoo.com>, "stefankangas <at> gmail.com"
 <stefankangas <at> gmail.com>
Cc: "66040 <at> debbugs.gnu.org" <66040 <at> debbugs.gnu.org>
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot
 be detected correctly
Date: Mon, 18 Sep 2023 08:12:03 +0000
[Message part 1 (text/plain, inline)]
> Set x-quit-keysym to nil in your early-init.el, then restart Emacs.
> This feature (reinterpreting volume-down keys as quit) was introduced in
> Emacs 30 to support computers without physical input devices capable of
> typing `C-g'.

Thank you, this does solve the problem.

> Incidentally, what keyboard are you using?

> Such keys are fairly common on standard keyboards, or at least used to
> be.  There is usually an extra "function key row" with a "volume down"
> key that generates XF86AudioLowerVolume.  I have one of those keyboards
> lying around.

In my case, it's the keyboard on my laptop, and these multimedia keys are quite common for laptop keyboards.
________________________________
From: Stefan Kangas <stefankangas <at> gmail.com>
Sent: Monday, September 18, 2023 2:52 AM
To: Po Lu <luangruo <at> yahoo.com>; Wang, Zhenhua (MU-Student) <zhenhua.wang <at> mail.missouri.edu>
Cc: 66040 <at> debbugs.gnu.org <66040 <at> debbugs.gnu.org>
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot be detected correctly

WARNING: This message has originated from an External Source. This may be a phishing expedition that can result in unauthorized access to our IT System. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email.

Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
editors" <bug-gnu-emacs <at> gnu.org> writes:

> Set x-quit-keysym to nil in your early-init.el, then restart Emacs.
> This feature (reinterpreting volume-down keys as quit) was introduced in
> Emacs 30 to support computers without physical input devices capable of
> typing `C-g'.

That refers to Android phones, right?

> Incidentally, what keyboard are you using?  XF86AudioLowerVolume is not
> generated by any I own, and x-quit-keysym is intended to only apply to
> volume rocker buttons on mobile phones and their ilk.

Such keys are fairly common on standard keyboards, or at least used to
be.  There is usually an extra "function key row" with a "volume down"
key that generates XF86AudioLowerVolume.  I have one of those keyboards
lying around.

Is there a way to support this on mobile phones without this key
breaking on machines with regular keyboards?
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Mon, 18 Sep 2023 11:05:02 GMT) Full text and rfc822 format available.

Message #17 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: luangruo <at> yahoo.com, zhenhua.wang <at> mail.missouri.edu, 66040 <at> debbugs.gnu.org
Subject: Re: bug#66040: 30.0.50;
 The XF86AudioLowerVolume on keyboard cannot be detected correctly
Date: Mon, 18 Sep 2023 14:04:42 +0300
> Cc: 66040 <at> debbugs.gnu.org
> From: Stefan Kangas <stefankangas <at> gmail.com>
> Date: Mon, 18 Sep 2023 00:52:16 -0700
> 
> Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
> editors" <bug-gnu-emacs <at> gnu.org> writes:
> 
> > Set x-quit-keysym to nil in your early-init.el, then restart Emacs.
> > This feature (reinterpreting volume-down keys as quit) was introduced in
> > Emacs 30 to support computers without physical input devices capable of
> > typing `C-g'.
> 
> That refers to Android phones, right?
> 
> > Incidentally, what keyboard are you using?  XF86AudioLowerVolume is not
> > generated by any I own, and x-quit-keysym is intended to only apply to
> > volume rocker buttons on mobile phones and their ilk.
> 
> Such keys are fairly common on standard keyboards, or at least used to
> be.  There is usually an extra "function key row" with a "volume down"
> key that generates XF86AudioLowerVolume.  I have one of those keyboards
> lying around.
> 
> Is there a way to support this on mobile phones without this key
> breaking on machines with regular keyboards?

That'd be definitely preferable if possible.

If it isn't possible to have an Android-specific binding, I think we
should make the Android-specific binding in android-win.el or
somesuch, and leave the default as it is appropriate for laptops and
desktop systems.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Mon, 18 Sep 2023 11:10:01 GMT) Full text and rfc822 format available.

Message #20 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: "Wang, Zhenhua \(MU-Student\)" <zhenhua.wang <at> mail.missouri.edu>,
 66040 <at> debbugs.gnu.org
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot
 be detected correctly
Date: Mon, 18 Sep 2023 19:09:27 +0800
Stefan Kangas <stefankangas <at> gmail.com> writes:

> Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text
> editors" <bug-gnu-emacs <at> gnu.org> writes:
>
>> Set x-quit-keysym to nil in your early-init.el, then restart Emacs.
>> This feature (reinterpreting volume-down keys as quit) was introduced in
>> Emacs 30 to support computers without physical input devices capable of
>> typing `C-g'.
>
> That refers to Android phones, right?

GNU/Linux phones, too.  We can't support features on Android that are
absent on free systems.

> Such keys are fairly common on standard keyboards, or at least used to
> be.  There is usually an extra "function key row" with a "volume down"
> key that generates XF86AudioLowerVolume.  I have one of those keyboards
> lying around.
>
> Is there a way to support this on mobile phones without this key
> breaking on machines with regular keyboards?

No idea.  But I've yet to encounter such a phone in practice, so I have
no objection to defaulting x-quit-keysym to nil, if they are indeed left
ungrabbed by window managers on ordinary computers.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Sun, 01 Oct 2023 08:17:02 GMT) Full text and rfc822 format available.

Message #23 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: "Wang, Zhenhua \(MU-Student\)" <zhenhua.wang <at> mail.missouri.edu>,
 66040 <at> debbugs.gnu.org
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot
 be detected correctly
Date: Sun, 1 Oct 2023 01:16:27 -0700
Po Lu <luangruo <at> yahoo.com> writes:

>> Such keys are fairly common on standard keyboards, or at least used to
>> be.  There is usually an extra "function key row" with a "volume down"
>> key that generates XF86AudioLowerVolume.  I have one of those keyboards
>> lying around.
>>
>> Is there a way to support this on mobile phones without this key
>> breaking on machines with regular keyboards?
>
> No idea.  But I've yet to encounter such a phone in practice, so I have
> no objection to defaulting x-quit-keysym to nil, if they are indeed left
> ungrabbed by window managers on ordinary computers.

Thanks.  Could you please install a change along those lines?

Note also what Eli said:

> If it isn't possible to have an Android-specific binding, I think we
> should make the Android-specific binding in android-win.el or
> somesuch, and leave the default as it is appropriate for laptops and
> desktop systems.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Sun, 01 Oct 2023 09:12:02 GMT) Full text and rfc822 format available.

Message #26 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Stefan Kangas <stefankangas <at> gmail.com>
Cc: "Wang, Zhenhua \(MU-Student\)" <zhenhua.wang <at> mail.missouri.edu>,
 66040 <at> debbugs.gnu.org
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot
 be detected correctly
Date: Sun, 01 Oct 2023 17:11:03 +0800
Stefan Kangas <stefankangas <at> gmail.com> writes:

>> No idea.  But I've yet to encounter such a phone in practice, so I have
>> no objection to defaulting x-quit-keysym to nil, if they are indeed left
>> ungrabbed by window managers on ordinary computers.
>
> Thanks.  Could you please install a change along those lines?

Now done.

> Note also what Eli said:
>
>> If it isn't possible to have an Android-specific binding, I think we
>> should make the Android-specific binding in android-win.el or
>> somesuch, and leave the default as it is appropriate for laptops and
>> desktop systems.

Such a binding is not apposite for the Android port, given that its quit
keysym is set in stone (for there is no melange of incompatible display
servers each supplying their own keysym definitions for volume keys).




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Sun, 01 Oct 2023 09:21:02 GMT) Full text and rfc822 format available.

Message #29 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: "Wang, Zhenhua \(MU-Student\)" <zhenhua.wang <at> mail.missouri.edu>,
 66040 <at> debbugs.gnu.org
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot
 be detected correctly
Date: Sun, 1 Oct 2023 02:20:24 -0700
Po Lu <luangruo <at> yahoo.com> writes:

> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
>>> No idea.  But I've yet to encounter such a phone in practice, so I have
>>> no objection to defaulting x-quit-keysym to nil, if they are indeed left
>>> ungrabbed by window managers on ordinary computers.
>>
>> Thanks.  Could you please install a change along those lines?
>
> Now done.

Thanks.  Wang, Zhenhua, could you please test if it now works for you?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Sun, 01 Oct 2023 09:23:02 GMT) Full text and rfc822 format available.

Message #32 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Po Lu <luangruo <at> yahoo.com>
Cc: zhenhua.wang <at> mail.missouri.edu, stefankangas <at> gmail.com,
 66040 <at> debbugs.gnu.org
Subject: Re: bug#66040: 30.0.50;
 The XF86AudioLowerVolume on keyboard cannot be detected correctly
Date: Sun, 01 Oct 2023 12:21:55 +0300
> Cc: "Wang, Zhenhua \(MU-Student\)" <zhenhua.wang <at> mail.missouri.edu>,
>  66040 <at> debbugs.gnu.org
> Date: Sun, 01 Oct 2023 17:11:03 +0800
> From:  Po Lu via "Bug reports for GNU Emacs,
>  the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
> 
> Stefan Kangas <stefankangas <at> gmail.com> writes:
> 
> > Note also what Eli said:
> >
> >> If it isn't possible to have an Android-specific binding, I think we
> >> should make the Android-specific binding in android-win.el or
> >> somesuch, and leave the default as it is appropriate for laptops and
> >> desktop systems.
> 
> Such a binding is not apposite for the Android port, given that its quit
> keysym is set in stone (for there is no melange of incompatible display
> servers each supplying their own keysym definitions for volume keys).

I was not worried about Android, I was worried about the other systems
and configurations.

In general, key bindings specific to some window-system are defined on
the respective *-win.el files.




Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Sun, 01 Oct 2023 11:16:01 GMT) Full text and rfc822 format available.

Notification sent to "Wang, Zhenhua (MU-Student)" <zhenhua.wang <at> mail.missouri.edu>:
bug acknowledged by developer. (Sun, 01 Oct 2023 11:16:02 GMT) Full text and rfc822 format available.

Message #37 received at 66040-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: "Wang, Zhenhua (MU-Student)" <zhenhua.wang <at> mail.missouri.edu>,
 Po Lu <luangruo <at> yahoo.com>
Cc: 66040-done <at> debbugs.gnu.org
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot
 be detected correctly
Date: Sun, 1 Oct 2023 04:15:15 -0700
Version: 30.1

"Wang, Zhenhua (MU-Student)" <zhenhua.wang <at> mail.missouri.edu> writes:

>> Thanks.  Wang, Zhenhua, could you please test if it now works for you?
>
> Thanks for the fix, this works well for me now!

Thanks, I'm therefore closing this bug report.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Sun, 01 Oct 2023 12:49:05 GMT) Full text and rfc822 format available.

Message #40 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: "Wang, Zhenhua (MU-Student)" <zhenhua.wang <at> mail.missouri.edu>
To: Stefan Kangas <stefankangas <at> gmail.com>, Po Lu <luangruo <at> yahoo.com>
Cc: "66040 <at> debbugs.gnu.org" <66040 <at> debbugs.gnu.org>
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot
 be detected correctly
Date: Sun, 1 Oct 2023 10:06:50 +0000
[Message part 1 (text/plain, inline)]
> Thanks.  Wang, Zhenhua, could you please test if it now works for you?

Thanks for the fix, this works well for me now!

Best,
Zhenhua
[Message part 2 (text/html, inline)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Mon, 02 Oct 2023 21:21:01 GMT) Full text and rfc822 format available.

Message #43 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: Mauro Aranda <maurooaranda <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>, Stefan Kangas <stefankangas <at> gmail.com>
Cc: "Wang, Zhenhua \(MU-Student\)" <zhenhua.wang <at> mail.missouri.edu>,
 Eli Zaretskii <eliz <at> gnu.org>, 66040 <at> debbugs.gnu.org
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot
 be detected correctly
Date: Mon, 2 Oct 2023 18:20:02 -0300
On 1/10/23 06:11, Po Lu via Bug reports for GNU Emacs, the Swiss army 
knife of text editors wrote:
> Stefan Kangas <stefankangas <at> gmail.com> writes:
> 
>>> No idea.  But I've yet to encounter such a phone in practice, so I have
>>> no objection to defaulting x-quit-keysym to nil, if they are indeed left
>>> ungrabbed by window managers on ordinary computers.
>>
>> Thanks.  Could you please install a change along those lines?
> 
> Now done.
> 

Po Lu <luangruo <at> yahoo.com> writes:

> Stefan Kangas <stefankangas <at> gmail.com> writes:
>
>>> No idea.  But I've yet to encounter such a phone in practice, so I have
>>> no objection to defaulting x-quit-keysym to nil, if they are indeed 
left
>>> ungrabbed by window managers on ordinary computers.
>>
>> Thanks.  Could you please install a change along those lines?
>
> Now done.
>

I've found through bisecting that the following commit, which references
this Bug Report, has affected input of some characters for me.

commit 12aca0f90d7aeaa8444508245e7596a64f2e8dce
Author: Po Lu <luangruo <at> yahoo.com>
Date:   Sun Oct 1 17:07:58 2023 +0800

  Update Android port

  * doc/emacs/input.texi (On-Screen Keyboards): Revise
  documentation to reflect changes.

  * src/keyboard.c (lispy_function_keys) <KEYCODE_DPAD_CENTER>:
  Define select key absent out of negligence.

  * src/xterm.c (syms_of_xterm) <x-quit-keysym>: Default to nil.
  (bug#66040)

---

In a working checkout, I do:
emacs -Q
Hit the keys that would insert '^' twice, and I see ^ in the buffer.

I'm used to hit those keys twice, that's not a problem.  The first time
I type I see an indication, in case I want to type something like â.

After the cited commit, I do:
emacs -Q
Hit the keys that would insert '^' once, and I see that indication.  But
then, if I hit it again, Emacs says 'Quit'.  And there's no way for me
to insert ^, or â, or anything like that.

In case it helps, when I try to input ^ xev says:
KeyPress event, serial 37, synthetic NO, window 0x1200001,
    root 0x3c6, subw 0x0, time 109901302, (866,325), root:(1076,529),
    state 0x10, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), 
same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes:
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: False

KeyPress event, serial 37, synthetic NO, window 0x1200001,
    root 0x3c6, subw 0x0, time 109901366, (866,325), root:(1076,529),
    state 0x90, keycode 48 (keysym 0xfe52, dead_circumflex), 
same_screen YES,
    XLookupString gives 1 bytes: (5e) "^"
    XmbLookupString gives 0 bytes:
    XFilterEvent returns: True

KeyRelease event, serial 37, synthetic NO, window 0x1200001,
    root 0x3c6, subw 0x0, time 109901494, (866,325), root:(1076,529),
    state 0x90, keycode 48 (keysym 0xfe52, dead_circumflex), 
same_screen YES,
    XLookupString gives 1 bytes: (5e) "^"
    XFilterEvent returns: False

KeyRelease event, serial 37, synthetic NO, window 0x1200001,
    root 0x3c6, subw 0x0, time 109901526, (866,325), root:(1076,529),
    state 0x90, keycode 108 (keysym 0xfe03, ISO_Level3_Shift), 
same_screen YES,
    XKeysymToKeycode returns keycode: 92
    XLookupString gives 0 bytes:
    XFilterEvent returns: False


And here's the info from report-emacs-bug from the affected session:

In GNU Emacs 30.0.50 (build 45, x86_64-pc-linux-gnu, GTK+ Version
 3.24.33, cairo version 1.16.0) of 2023-10-02 built on tbb-desktop
Repository revision: ad2bb3e9f36d1a4f25e1e2228586331b40a30a46
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12201001
System Description: Ubuntu 22.04.3 LTS

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER X11 XDBE XIM XINPUT2 XPM GTK3 ZLIB

Important settings:
  value of $LC_MONETARY: es_AR.UTF-8
  value of $LC_NUMERIC: es_AR.UTF-8
  value of $LC_TIME: es_AR.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
  minibuffer-regexp-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 puny dired
dired-loaddefs rfc822 mml mml-sec password-cache epa derived epg rfc6068
epg-config gnus-util text-property-search time-date subr-x 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 rmc iso-transl tooltip cconv eldoc paren electric
uniquify ediff-hook vc-hooks lisp-float-type elisp-mode mwheel
term/x-win x-win term/common-win x-dnd touch-screen 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 seq simple cl-generic
indonesian philippine 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
theme-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 gtk
x-toolkit xinput2 x multi-tty move-toolbar make-network-process emacs)

Memory information:
((conses 16 37547 9201) (symbols 48 5213 0) (strings 32 13197 2675)
 (string-bytes 1 373504) (vectors 16 10299)
 (vector-slots 8 156179 13963) (floats 8 21 23) (intervals 56 222 0)
 (buffers 992 10))







Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Tue, 03 Oct 2023 01:03:18 GMT) Full text and rfc822 format available.

Message #46 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Mauro Aranda <maurooaranda <at> gmail.com>
Cc: "Wang, Zhenhua \(MU-Student\)" <zhenhua.wang <at> mail.missouri.edu>,
 Eli Zaretskii <eliz <at> gnu.org>, Stefan Kangas <stefankangas <at> gmail.com>,
 66040 <at> debbugs.gnu.org
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot
 be detected correctly
Date: Tue, 03 Oct 2023 09:01:16 +0800
Mauro Aranda <maurooaranda <at> gmail.com> writes:

> I've found through bisecting that the following commit, which references
> this Bug Report, has affected input of some characters for me.
>
> commit 12aca0f90d7aeaa8444508245e7596a64f2e8dce
> Author: Po Lu <luangruo <at> yahoo.com>
> Date:   Sun Oct 1 17:07:58 2023 +0800
>
>   Update Android port
>
>   * doc/emacs/input.texi (On-Screen Keyboards): Revise
>   documentation to reflect changes.
>
>   * src/keyboard.c (lispy_function_keys) <KEYCODE_DPAD_CENTER>:
>   Define select key absent out of negligence.
>
>   * src/xterm.c (syms_of_xterm) <x-quit-keysym>: Default to nil.
>   (bug#66040)
>
> ---
>
> In a working checkout, I do:
> emacs -Q
> Hit the keys that would insert '^' twice, and I see ^ in the buffer.
>
> I'm used to hit those keys twice, that's not a problem.  The first time
> I type I see an indication, in case I want to type something like â.
>
> After the cited commit, I do:
> emacs -Q
> Hit the keys that would insert '^' once, and I see that indication.  But
> then, if I hit it again, Emacs says 'Quit'.  And there's no way for me
> to insert ^, or â, or anything like that.

Please try again, thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66040; Package emacs. (Tue, 03 Oct 2023 10:14:01 GMT) Full text and rfc822 format available.

Message #49 received at 66040 <at> debbugs.gnu.org (full text, mbox):

From: Mauro Aranda <maurooaranda <at> gmail.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: "Wang, Zhenhua \(MU-Student\)" <zhenhua.wang <at> mail.missouri.edu>,
 Eli Zaretskii <eliz <at> gnu.org>, Stefan Kangas <stefankangas <at> gmail.com>,
 66040 <at> debbugs.gnu.org
Subject: Re: bug#66040: 30.0.50; The XF86AudioLowerVolume on keyboard cannot
 be detected correctly
Date: Tue, 3 Oct 2023 07:12:35 -0300
On 2/10/23 22:01, Po Lu wrote:
> Mauro Aranda <maurooaranda <at> gmail.com> writes:
>
>> I've found through bisecting that the following commit, which references
>> this Bug Report, has affected input of some characters for me.
>>
>> commit 12aca0f90d7aeaa8444508245e7596a64f2e8dce
>> Author: Po Lu <luangruo <at> yahoo.com>
>> Date:   Sun Oct 1 17:07:58 2023 +0800
>>
>>   Update Android port
>>
>>   * doc/emacs/input.texi (On-Screen Keyboards): Revise
>>   documentation to reflect changes.
>>
>>   * src/keyboard.c (lispy_function_keys) <KEYCODE_DPAD_CENTER>:
>>   Define select key absent out of negligence.
>>
>>   * src/xterm.c (syms_of_xterm) <x-quit-keysym>: Default to nil.
>>   (bug#66040)
>>
>> ---
>>
>> In a working checkout, I do:
>> emacs -Q
>> Hit the keys that would insert '^' twice, and I see ^ in the buffer.
>>
>> I'm used to hit those keys twice, that's not a problem. The first time
>> I type I see an indication, in case I want to type something like â.
>>
>> After the cited commit, I do:
>> emacs -Q
>> Hit the keys that would insert '^' once, and I see that indication.  But
>> then, if I hit it again, Emacs says 'Quit'.  And there's no way for me
>> to insert ^, or â, or anything like that.
>
> Please try again, thanks.

Fixed, thanks.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 31 Oct 2023 11:24:05 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 190 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.