From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: POLL: make C-x o transient Date: Fri, 29 Jan 2021 10:44:24 +0200 Organization: LINKOV.NET Message-ID: <878s8cuo7r.fsf@mail.linkov.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="12166"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) Cc: Gregory Heytings , emacs-devel To: chad Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 29 10:01:11 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 1l5PeR-00032V-Fe for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Jan 2021 10:01:11 +0100 Original-Received: from localhost ([::1]:40664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5PeQ-0003gv-En for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Jan 2021 04:01:10 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39980) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5Pch-0002nc-Hc for emacs-devel@gnu.org; Fri, 29 Jan 2021 03:59:23 -0500 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:34597) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5Pcf-00054t-CE for emacs-devel@gnu.org; Fri, 29 Jan 2021 03:59:23 -0500 X-Originating-IP: 91.129.108.204 Original-Received: from mail.gandi.net (m91-129-108-204.cust.tele2.ee [91.129.108.204]) (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id EF6ECC0009; Fri, 29 Jan 2021 08:59:15 +0000 (UTC) In-Reply-To: (chad's message of "Thu, 28 Jan 2021 18:38:57 -0800") Received-SPF: pass client-ip=217.70.183.198; envelope-from=juri@linkov.net; helo=relay6-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, 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:263572 Archived-At: > I played with a version of Juri's patch that bound "." to repeat the > repeatable command, and then tried to implement "," to that command passed - > 1, but I had a little trouble getting it to DTRT, and then got sidetracked > by a version that used #'repeat instead of this-command. Clever idea. It looks like you changed this line in my version: (define-key map (vector last-key) this-command) to (define-key map "." 'repeat) and it gives a wonderful result: typing 'C-- .' reverses the direction of window navigation, so every next '.' traverses windows in the opposite direction (then it's possible to change direction again with 'C-u .')