From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Philip K." Newsgroups: gmane.emacs.devel Subject: Re: POLL: make C-x o transient Date: Fri, 29 Jan 2021 00:19:01 +0100 Message-ID: <87y2gchcpm.fsf@posteo.net> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36568"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) Cc: Gregory Heytings , emacs-devel To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 29 00:19:46 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 1l5GZl-0009Ol-PX for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Jan 2021 00:19:45 +0100 Original-Received: from localhost ([::1]:38204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5GZk-0006Hh-Rv for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Jan 2021 18:19:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:40406) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5GZA-0005qC-Ak for emacs-devel@gnu.org; Thu, 28 Jan 2021 18:19:08 -0500 Original-Received: from mout02.posteo.de ([185.67.36.66]:50861) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5GZ7-0003dO-FP for emacs-devel@gnu.org; Thu, 28 Jan 2021 18:19:08 -0500 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id BD7BE2400FC for ; Fri, 29 Jan 2021 00:19:02 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1611875942; bh=V4CGKT+Tf8p8R1wEgoZpAH8NAAWiy20FrLpL0pOvaKM=; h=From:To:Cc:Subject:Date:From; b=nBWciyk3ea/0UJZibKiXdMYLcHaJV9buEwv3dZ0LeR1s53tR7iIWaf4Mkf10++jRt GEYYYeQ3wKaWrF1qfmUx2JySk1FVAof/8mmt8daBrdKo++FIJl/VbvVh84ceeieynK h8l8M4ZlYIMf11oBevWj1MBU3iXhOEIktdFZxgMx7bqTqMdohatjWO3A2MFkGugIlD rnZ3CJk2P3Ts2yXbzA0uKcYh0p6vTKiw+goiaG6qiq5mitNKTFvrcjZrYiHLnnzgJk n7sN7J9aXIooijUOxsjk8D8uYFh7/7e30lS3D/8EHWoq3mw0ZF5zke0hbrzYfSFCQ9 /Abm7sd6Nrg+w== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4DRbyF5lblz9rxB; Fri, 29 Jan 2021 00:19:01 +0100 (CET) In-Reply-To: (Alan Mackenzie's message of "Thu, 28 Jan 2021 21:58:54 +0000") Received-SPF: pass client-ip=185.67.36.66; envelope-from=philipk@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, 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.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:263561 Archived-At: Alan Mackenzie writes: > Hello, Gregory. > > On Thu, Jan 28, 2021 at 19:13:22 +0000, Gregory Heytings wrote: > > >> > Just switch the direction by the prefix arg '-'. Its handling could be >> > easily implemented. It seems better to extend repeat.el to allow using >> > the last key of the last command, add handling of universal arguments, >> > and all this without using add-advice and hooks. > >> IMO it is would be much better to map the existing repeat command to a >> single keystroke, it would make any command repeatable without changing >> anything else, and it already handles universal arguments. I think C-= >> would be the best key for this: not only is "=" a good mnemonic for "same >> command", but it is also next to the "-" key to change the direction. > > It depends entirely on your keyboard layout. On a standard German > keyboard, for example, = is 0, so C-= would mean pressing three > keys at the same time. Also on the same keyboard, - and = are nowhere > near eachother. > > Also, does C-= even exist on a typical tty layout? > > Also[2], C-= is likely bound to many users' personal commands. I know of at least one (MELPA) package that recommend this key: https://github.com/magnars/expand-region.el#expand-regionel-- So I'd agree that this is a reasonable objection. > So I think I would be against using C-= for this command. -- Philip K.