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.help Subject: Re: issue with keyboard input for multiple keys Ctrl-b / nkey rollover? Date: Sun, 2 Aug 2020 20:50:50 +0700 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29986"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Alan Davis Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Aug 02 15:51:27 2020 Return-path: Envelope-to: geh-help-gnu-emacs@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 1k2EOd-0007gQ-Df for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 02 Aug 2020 15:51:27 +0200 Original-Received: from localhost ([::1]:34960 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k2EOc-0001tA-8M for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 02 Aug 2020 09:51:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49686) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k2EOJ-0001sW-26 for help-gnu-emacs@gnu.org; Sun, 02 Aug 2020 09:51:07 -0400 Original-Received: from mail-vs1-xe2e.google.com ([2607:f8b0:4864:20::e2e]:39829) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1k2EOG-0000Xj-6V for help-gnu-emacs@gnu.org; Sun, 02 Aug 2020 09:51:06 -0400 Original-Received: by mail-vs1-xe2e.google.com with SMTP id n25so4295848vsq.6 for ; Sun, 02 Aug 2020 06:51:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=sOC0ZHSZP0TeG+kx8bG5EJdJ+DjkGHaPqqf6sP7Qyes=; b=lca0YfH2LJHo9mkZjCRtCuHyIBDYTMiRtPZlWr74FmeYQvFsDmFSJeVGJj2Dwq8/Si RG7ZT9rQ7FKI9/8wK55iJ92l7wZGezo4EMNmwIoI7Zq7WJLyjIlzJ9N3eggcr4pMJt6J 67YxUx0O9e8JcK1TuGtkcq7I2e2w30DPeJT4+SIf8z1kOLUB2Rgo0BXjPTOqrHoBgeGc n9IXM+mmp6kcYprxycXL3CBlj2vsKmZNCU4O7drJ8iGIQGrkhY4quFSSD/0ELtZt6Egk 1FlbeiiyQQlN6xIdh1F2qVI0v1s/TPTjd4k6hXugY9nkzA2E14ZT0CiBWXC9p95AIj0N bFVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=sOC0ZHSZP0TeG+kx8bG5EJdJ+DjkGHaPqqf6sP7Qyes=; b=lO6eb9JSrgkilK3CVv0aIb/WgvYrCrNWbBmLQrS3sJSh2Y4+K2TIyhYBbOX48R5SU1 n7S1y2LnL3NZsUBSPmGTYj/RyvPGeN/VY4J6jR+1eK9vK5f1GtRqx0NCrDsJd0d2SHCD LlGYFIKgRo8URqID3/95jUH91BDgX8x7zy1Cym++c+ooR4IGmtwLhxKyRdox+RrX/8s5 u2WisID7PlLRcMArEuOV5EpmxDsbL+5Vq+UAWcOq7bZwGHFpMpdrQLVLDsl7A09q88KE mYoRzCOo2EtlecxwN4fOI1CbaD9BVj50B9Wq+bHb3uIp7n1/bj4/6Q4yCGCG1ctKItdM 6vVA== X-Gm-Message-State: AOAM532HRUoDU2XpJUSUd6dgDd6kHCcecPedS81TZB34WiXTA1GMLO6E MrdAkFkK3J2AbaymehFOQWVPezbOJsSTDuG1jOg= X-Google-Smtp-Source: ABdhPJzd2NqVJMIWndMXfsQvoQ2tfPwjBmak/FUm2LIrmZDp5x+ynu+PuHYLZb0qmIoit+TvK4nc5C3HbLfZ/bCn7mU= X-Received: by 2002:a67:ef1d:: with SMTP id j29mr9193341vsr.139.1596376261872; Sun, 02 Aug 2020 06:51:01 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::e2e; envelope-from=yurivkhan@gmail.com; helo=mail-vs1-xe2e.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:123616 Archived-At: On Sun, 2 Aug 2020 at 18:00, Alan Davis wrote: > > I have left behind at least three different keyboards due to a problem > when, especially backing up a character at a time, in Emacs, and perhaps in > bash. The following are the most recent keyboards with this problem: > > - Microsoft Surface bluetooth keyboard > - A mechanical keyboard with Nkey rollover > > I quit using the first of these due to this problem, replacing it with the > mechanical keyboard. I hoped the Nkey rollover would mean key chords like > Ctrl-b would work. N-key rollover does not matter at all. Modifier keys (Ctrl, Alt, Shift and whatever OS-specific fourth key you use) are always reported independently in the USB HID keyboard protocol. > Often > when editing with emacs (truth be told I don't remember whether this is the > case with a bash console), I have to repeat the keychord twice before the > cursor will move. So if I want to back up two characteris, I need to type > Alt-b 4 times to move the cursor back 2 positions. I suppose you meant Ctrl-b here. > I am afraid I have not nailed down the specific instances when this > occurs. It has occured to me that this may happen with some terminal > emulators but not on others. Even this seems to be inconsistent: in fact > just now I tried this key combination in an emacs window, and it worked > fine. Stab in the dark: Do you use tmux some but not all of the time? It uses Ctrl+b as prefix key by default, so you have to press it twice for it to get reported to the application running within. You can configure tmux to use a different prefix key. Also, since you seem to be into mechanical keyboards, consider getting one that puts arrow keys in an easily accessible place, or configure layers to put arrow keys at your home row.