unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Trapping prefixes with universal argument component
@ 2021-08-20 21:15 Tim Johnson
  2021-08-20 21:56 ` Emanuel Berg via Users list for the GNU Emacs text editor
  0 siblings, 1 reply; 25+ messages in thread
From: Tim Johnson @ 2021-08-20 21:15 UTC (permalink / raw)
  To: MLEmacs

GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.20, 
cairo version 1.16.0)
  of 2021-06-04 on Ubuntu/Mate 20.04

I have a keypad that does not appear to be doing on linux what it is 
designed to.
The keypad has three keys with the following legends: "[", "]", and "=".
Used at the bash command line in an emulator those keys emit the following:
040, 041, and 061.

Xev results are available in anyone is interested.

On emacs, pressing these keys results in emacs reading the following
C-u 40-, C-u 41-, and C-u 61-

since these are universal argument sequences, the possibility is that if 
I were
to press one of these keys by mistake and subsequently invoke an emacs 
command,
that command would be executed  as per the prefix and likely to raise 
havoc or
overload the emacs stack.

It is possible to trap these sequences into something harmless?
(It really is a nice keypad except for these nasty little farts.)

thanks

Tim
tj49.com




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

end of thread, other threads:[~2021-08-22 18:14 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-08-20 21:15 Trapping prefixes with universal argument component Tim Johnson
2021-08-20 21:56 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-20 22:37   ` Tim Johnson
2021-08-21  5:08     ` Yuri Khan
2021-08-21  5:22       ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-21  5:39         ` Yuri Khan
2021-08-21 15:18           ` Tim Johnson
2021-08-21 19:31             ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-21 19:38               ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-21 20:08               ` [External] : " Drew Adams
2021-08-21 21:03                 ` Drew Adams
2021-08-21 21:30                 ` Tim Johnson
2021-08-21 23:21                   ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-22  1:43                   ` Drew Adams
2021-08-22  2:51                     ` Arthur Miller
2021-08-21 23:19                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-22  1:46                   ` Drew Adams
2021-08-21 21:23               ` Tim Johnson
2021-08-21 23:25                 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-22  0:42                   ` Tim Johnson
2021-08-22  0:51                     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-22  8:13                   ` Yuri Khan
2021-08-22  8:25                     ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-08-22 18:14                     ` Trapping prefixes with universal argument component [solved]T Tim Johnson
2021-08-21 19:42           ` Trapping prefixes with universal argument component Emanuel Berg via Users list for the GNU Emacs text editor

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