all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tomas Nordin <tomasn@posteo.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 30043@debbugs.gnu.org
Subject: bug#30043: 25.3; C-M-e inserts euro character
Date: Thu, 18 Jan 2018 12:16:42 +0100	[thread overview]
Message-ID: <87607zju1x.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <83po6cz005.fsf@gnu.org>

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Tomas Nordin <tomasn@posteo.net>
>> Cc: 30043@debbugs.gnu.org
>> Date: Sun, 14 Jan 2018 20:01:14 +0100
>> 
>> > So I guess you somehow have a keyboard which doesn't fit the new
>> > keyboard input code introduced by Emacs 25, and need to use this
>> > fallback variable to avoid the problem.
>> 
>> Does it mean that the new input code has no fault but the keyboard
>> probably has a problem?
>
> I don't think this is a problem, I think this is how your keyboard is
> supposed to work.  But since you don't like it, I mentioned the

For curiosity I wrote a small python script to collect some keyboard
input at home on Gnu/Linux and at work on Windows

------------------------8<-------------------------------------------
import Tkinter as tk
import time

logfmt = '{:10f}\t{:10}\t{:10}\t{:}'

root = tk.Tk()


def key(event):

    print logfmt.format(time.time() - start_time,
                        repr(event.char),
                        repr(event.keysym),
                        repr(event.keycode))

def callback(event):
    # starts listening here
    frame.focus_set()


frame = tk.Frame(root, width=100, height=100)
frame.bind("<Key>", key)
frame.bind("<Button-1>", callback)
frame.pack()

start_time = time.time()
print '{:10}\t{:10}\t{:10}\t{:}'.format('time', 'char', 'keysym', 'keycode')
root.mainloop()
------------------------>8-------------------------------------------

I tried it by pressing e three times and then ctrl+alt+e and then
e three times again.

Gnu/Linux

time      	char      	keysym    	keycode
  3.201521	'e'       	'e'       	26
  3.497571	'e'       	'e'       	26
  3.713505	'e'       	'e'       	26
  4.329478	''        	'Control_L'	37
  4.473506	''        	'Alt_L'   	64
  4.745468	'\x05'    	'e'       	26
  6.001459	'e'       	'e'       	26
  6.249449	'e'       	'e'       	26
  6.481506	'e'       	'e'       	26

Windows

time      	char      	keysym    	keycode
  2.424000	'e'       	'e'       	69
  2.704000	'e'       	'e'       	69
  2.964000	'e'       	'e'       	69
  3.744000	''        	'Control_L'	17
  3.924000	''        	'Alt_L'   	18
  4.344000	u'\u20ac' 	'e'       	69
  5.866000	'e'       	'e'       	69
  6.147000	'e'       	'e'       	69
  6.347000	'e'       	'e'       	69

I don't know if it adds anything to the discussion, but anyway. Much are
different on the platforms, the only thing in common seem to be the
key symbol in this case, and the char sometimes. The same pattern was
repeated on three Windows stations with different keyboards.





  parent reply	other threads:[~2018-01-18 11:16 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-09 15:11 bug#30043: 25.3; C-M-e inserts euro character tomasn
2018-01-09 18:33 ` Eli Zaretskii
2018-01-09 21:06   ` Tomas Nordin
2018-01-10  3:32     ` Eli Zaretskii
2018-01-10 21:49       ` Tomas Nordin
2018-01-11 15:55         ` Eli Zaretskii
2018-01-13 22:10           ` Tomas Nordin
2018-01-14  3:34             ` Eli Zaretskii
2018-01-14 19:01               ` Tomas Nordin
2018-01-14 19:57                 ` Eli Zaretskii
2018-01-14 20:22                   ` Tomas Nordin
2018-01-15  5:15                     ` Eli Zaretskii
2018-01-18 10:59                       ` Tomas Nordin
2018-01-18 11:16                   ` Tomas Nordin [this message]
2019-09-28 23:03 ` Stefan Kangas
2019-09-29 13:20   ` Tomas Nordin
2019-09-29 15:42     ` Stefan Kangas
2019-09-29 15:45       ` Stefan Kangas
2019-09-29 15:52       ` Eli Zaretskii
2019-09-29 16:00         ` Eli Zaretskii
2019-09-29 16:08           ` Eli Zaretskii
2019-09-29 16:19             ` Eli Zaretskii
2019-09-29 16:27               ` Eli Zaretskii
2019-09-29 18:32                 ` Tomas Nordin
2019-09-29 16:08         ` Stefan Kangas
2019-09-29 18:21           ` Tomas Nordin
2019-10-13 10:00             ` Tomas Nordin
2019-10-13 10:33               ` Eli Zaretskii
2019-10-13 19:07                 ` Tomas Nordin
2019-10-13 20:48                   ` Eli Zaretskii
2022-04-26 13:59                     ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87607zju1x.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me \
    --to=tomasn@posteo.net \
    --cc=30043@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.