From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gregory Heytings Newsgroups: gmane.emacs.devel Subject: Re: POLL: make C-x o transient Date: Sat, 30 Jan 2021 14:13:19 +0000 Message-ID: <5bbae1bd19211071aefe@heytings.org> References: <2EFBBE54-62F4-4373-82D6-DC8750B648BA@kuaishou.com> <87eei9xb5r.fsf@mail.linkov.net> <87sg6m5mjs.fsf@mail.linkov.net> <8735ykc37u.fsf@mail.linkov.net> <938445fec66b0cdb0c4e@heytings.org> <87y2gchcpm.fsf@posteo.net> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="32059"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Jan 30 15:15:04 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 1l5r1j-0008D4-3u for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jan 2021 15:15:03 +0100 Original-Received: from localhost ([::1]:57892 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5r1i-000578-38 for ged-emacs-devel@m.gmane-mx.org; Sat, 30 Jan 2021 09:15:02 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60070) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5r0A-0004F3-6g for emacs-devel@gnu.org; Sat, 30 Jan 2021 09:13:26 -0500 Original-Received: from heytings.org ([95.142.160.155]:58358) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5r06-00069J-GG for emacs-devel@gnu.org; Sat, 30 Jan 2021 09:13:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1612016000; bh=iueUt63bJcKvOw57NEr1te5DB1ZHPjlC9S1bYt+5jn0=; h=Date:From:To:cc:Subject:In-Reply-To:Message-ID:References:From; b=otD6dNuyAaWC8igUd4FZTHXPIjXq2v40fDvWB4yf/GKyi0jWuFgW8P8gCsswHCAnA V3WXHkBHUmth9d2sk+QGazhAFIQs4epiFE2m675LhH2XwkCI/BD9LE53PFH3MonuPl k7T/4XX5Q1+LdZJyWymMtY8Hvxt6MsSe8P5hC9OKe1/MJKlNkrapWF19/WAaqzdGeE EPYevsE3GIey0JGyVzlILoXdhSXhCJAsSVIWFk1WabDH+3HRIachU97nNB2fRZIewj bXeHZKsRW161fM21Q40bzliOv26UOOKDj8IFV8pZzp30qHxXHfNDxLk/oew0/BRSKO DyLJDf7JNz4cA== In-Reply-To: Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org 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, SPF_HELO_PASS=-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.23 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:263611 Archived-At: >> It is to bind C-= to the existing "repeat" command, which is already in >> Emacs > > FWIW, I agree that `repeat` deserves a single-key bindings. But I don't > think `C-=` can be it, and I don't have a counter-offer. > What are the available options? If it is required to use a key binding that works both in GUI and TUI interfaces (as RMS mentioned), I fear it's an impossible problem. Unless of course there is an agreement to remap one of the existing keys, for example C-z (also available on C-x C-z), C-o or C-t (which are perhaps less useful than a "repeat" command, and less useful than other commands (I at least never use them)). But such an agreement is highly unlikely. Without the requirement of compatibility with TUI interfaces, the available key bindings are the non-letters C-! C-# C-$ C-% C-^ C-& C-* C-( C-) C-= C-+ C-| C-; C-: C-' C-" C-, C-< C-. and C->. Among them it seems to me that C-= is a reasonable choice. > > This said, I expect that all modal layers (viper, evil, god-mode, ...) > satisfy this desire. That's one of the benefits of a modal structure: > it gives you more keys to bind ;-) > Indeed, but the majority of Emacs users don't want a modal structure, otherwise they would not use Emacs ;-) And a single-key "repeat" would give Emacs a minimal modal-like structure.