From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: New key binding syntax Date: Fri, 5 Nov 2021 19:02:02 +0700 Message-ID: References: <20211004081724.6281.11798@vcs0.savannah.gnu.org> <3412236.9QipagVtEG@galex-713.eu> <1799636.kHca9cW0RD@galex-713.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="39758"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Richard Stallman , Emacs developers To: Alexandre Garreau Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 05 13:03:14 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mixw8-000A5F-Ut for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Nov 2021 13:03:12 +0100 Original-Received: from localhost ([::1]:47362 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mixw7-000604-OZ for ged-emacs-devel@m.gmane-mx.org; Fri, 05 Nov 2021 08:03:11 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50430) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mixvG-0005JX-Gd for emacs-devel@gnu.org; Fri, 05 Nov 2021 08:02:18 -0400 Original-Received: from mail-ua1-x92f.google.com ([2607:f8b0:4864:20::92f]:38618) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mixvD-0004ZT-Ic; Fri, 05 Nov 2021 08:02:18 -0400 Original-Received: by mail-ua1-x92f.google.com with SMTP id o26so16604497uab.5; Fri, 05 Nov 2021 05:02:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=D6nxRP0FnVkNddEXp4TKVXpCtusQyQmPGJ8Kfcv13KA=; b=kEcqefZ0LgvZnON/uPtLcj21CFA1eneBQPvZmLPh9cuSiegbRvy9knrcJX9lO6u/x5 FTFsXKlC6EBjZyfS6H/H/bBDbG9VXnseYndFn5swPlLa8GRtrz0THgVNKKeiobMV6MZl COmZ9dyfS+DQ/f0x1fEVek0unmT24Vhf2J/lWelMMoqVnrxla99Qt45Xr1qzkRF5txsz iSBdEZtH4/IFn5RyMmqr5xARfbyAMvlmqHFSDfuBMPaPT2dP+PqBl1OlFivWk94eLgSO tFDZQrK4GR2FffavV5+0LAIQrti7kHA398+pyCDPQGHxKJ+EDkXXxxfHYBrtLJnl7E6i ciBA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=D6nxRP0FnVkNddEXp4TKVXpCtusQyQmPGJ8Kfcv13KA=; b=Idhed77VPs7yf5pfionc0zw35zr0hfeIQX5PVgm3BuYQf9dBrASsuL2XsU+Bo5QB59 N63LdbWXA7mfgAZxSGoteQp2fzyS5CZRb1LUfUrN9496qS+DiMDfKaU61JfHzRGLcFWP s1jHSDZ4YTjglkpAUkYjmdkfTyNm4qT79EPaZwE5yRUhn5QO+4Je/Q4fMbgVPfYHHk69 yKQbw/eSsMyPkekbeIF7Mn7SBSop3bYChf3ak875rYY4UnrBfmH6uyFqptnkm64z/rdi PxdymoVD/eCNTFPmmFzUaY/sfJZcfhCd9BeEjhboFoMq2fM2UZgyQsgd7bH+gAwvot6v i8cw== X-Gm-Message-State: AOAM532dC6UHVtx/PHPicYGBTFauLIJuRGBUMRVcUzRHDbI+MnUzl/KB Kzukb4MBni74XCXbxfSiwlkeag+dSJhgnD7gugU= X-Google-Smtp-Source: ABdhPJxNCvSGNBlS36cvZqYI9UXzPYwb1+IzwNd/KwLHBijFThTFd19zoLdCzA7lM4Rn/f7XNBVxojcYJbvV7Y0nvjQ= X-Received: by 2002:ab0:3e3:: with SMTP id 90mr64424324uau.102.1636113734149; Fri, 05 Nov 2021 05:02:14 -0700 (PDT) In-Reply-To: <1799636.kHca9cW0RD@galex-713.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::92f; envelope-from=yurivkhan@gmail.com; helo=mail-ua1-x92f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:278760 Archived-At: On Fri, 5 Nov 2021 at 18:04, Alexandre Garreau wro= te: > > > so it=E2=80=99s like a down, b down, =E2=80=A6, f down=E2=80=A6 and t= hen until I release any > > > key between a and f, if I press down =E2=80=9Cg=E2=80=9D, the keyboar= d won=E2=80=99t say > > > anything to the application/OS? > > > > As I said, it depends. > > No I really didn=E2=80=99t understand. You said the rollover key number = changed, > not that once it was overtook, the behavior varied. And you said that > number was most of time 6. What I want to understand is what goes wrong > then=E2=80=A6 presses unreported? releases falsely reported in some order= ? Do I need to spell it? Different keyboards behave differently in that regar= d. I just fired up xev(1) and held down a-s-d-f with my left hand and j-k with my right, and tried adding =E2=80=98l=E2=80=99. It did not register an= d the autorepeat for =E2=80=98k=E2=80=99 kept going on. I then released the six k= eys one by one, and observed release events for each. This means my keyboard tracks the first six non-modifier keys I press, and ignores subsequent ones. > For the autorepeat I could imagine, but for release I had no idea=E2=80= =A6 but > doesn=E2=80=99t the keyboard generates hardware events? to interrupt OS w= hen > there=E2=80=99s a change? it=E2=80=99s not scanned at each tick, right? No, it doesn=E2=80=99t generate events. On USB, only the host can initiate transfers[*], so it literally scans each device every once in a while. This is why you see discussions of mouse and keyboard polling rates on web forums. [*]: With the exception that a USB device in low power mode is allowed to send a wake up signal.