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: Thu, 28 Jan 2021 19:13:22 +0000 Message-ID: <938445fec66b0cdb0c4e@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> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37577"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Jan 28 20:16:50 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 1l5Cmf-0009ey-IF for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Jan 2021 20:16:49 +0100 Original-Received: from localhost ([::1]:57130 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5Cme-0004Ya-Ht for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Jan 2021 14:16:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:43582) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5CjP-0002Ns-HL for emacs-devel@gnu.org; Thu, 28 Jan 2021 14:13:27 -0500 Original-Received: from heytings.org ([95.142.160.155]:56526) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5CjN-00078M-H2 for emacs-devel@gnu.org; Thu, 28 Jan 2021 14:13:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=heytings.org; s=20210101; t=1611861202; bh=kHhXsMfa0pr50kT2P2PvZwahW063QYjHmtLogtLwQH4=; h=Date:From:To:Subject:In-Reply-To:Message-ID:References:From; b=DfldXdOYo7e/5OjlX0RKkr0FXWpVrmplGdDFP2MFxZr9k3LuYpanZ6TfLehvgTKPT TXwEGx424Ji7WIXTzx4NPC/KcQu3grtixrcr5HaLkRV1twcbMaKQtoJ5pgtrdN1MIh hahRRnx5vp/4M6wn+Cw6GhhlnVtNFn3NWKD9rGuxTabn8N1zb8Y0rMQzwVSHssdgno oigv1rcNH4IQ+HOs7WgOMzqUJsjOld4vFZXr4Mobu33O6pvcze56cs3Yvh5hqSDflN PMTp+UrVaKKO5pF6P87uAJV3Mr93HHhPv42b5ymS+F+8QBmnk4ScZbkA7AnEd3nd9X hctMefyFTkuew== In-Reply-To: <8735ykc37u.fsf@mail.linkov.net> Received-SPF: pass client-ip=95.142.160.155; envelope-from=gregory@heytings.org; helo=heytings.org X-Spam_score_int: -12 X-Spam_score: -1.3 X-Spam_bar: - X-Spam_report: (-1.3 / 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, FROM_FMBLA_NEWDOM28=0.799, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no 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:263556 Archived-At: > > 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.