From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: POLL: make C-x o transient Date: Mon, 1 Feb 2021 12:09:04 -0500 Message-ID: <3B745A7F-F89D-4B8C-8AD7-701918393F56@gmail.com> References: Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19707"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Gregory Heytings , emacs-devel To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Feb 01 18:10:17 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 1l6ciP-0004wl-66 for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Feb 2021 18:10:17 +0100 Original-Received: from localhost ([::1]:53952 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l6ciO-0003qd-2B for ged-emacs-devel@m.gmane-mx.org; Mon, 01 Feb 2021 12:10:16 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:33970) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l6chJ-0002Hr-LF for emacs-devel@gnu.org; Mon, 01 Feb 2021 12:09:09 -0500 Original-Received: from mail-qk1-x734.google.com ([2607:f8b0:4864:20::734]:38058) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l6chH-0004cD-SV for emacs-devel@gnu.org; Mon, 01 Feb 2021 12:09:09 -0500 Original-Received: by mail-qk1-x734.google.com with SMTP id d85so16946799qkg.5 for ; Mon, 01 Feb 2021 09:09:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=Xc6Rb6E6SbmJhLbO7RfIguCvndO8fulyvnpY2ktge9Q=; b=mIrRwwGwuXQKqkWoPIa6uWiumE841mNSA00ma8YOShSJHEQbkMpKKpWfBKlkVL9L4t FOVH8MHFzhgX00pCHxT6tf8CejFHqGgKIYV1yWdGaVAhXSFRrIZ9mKNLT8oYNXCZjMKC N4bPVNiICAF7fQPJONv53me2ET7+enGBdmO0f5eRHu1uuQzEoN+JkdlErtgYBFj1aZeI 3VAMWDFqWSoUeRHwBUGwtFX5JJoNVgtMlK1CN3pwx7jUf1RkOe89gGUIWgXf/L/czoDa Y+brVcey3tJE9JX27d+VblQm2UFMb8n/YdrxT9Wp08BY+G+uD51NRu082dcaNPuVKr4P 77Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=Xc6Rb6E6SbmJhLbO7RfIguCvndO8fulyvnpY2ktge9Q=; b=OIDKhpdxmO4TpQs7ezMKkQG+Zq6aNAAL652IxtV4kq1h4+oUVciNbC0ESaVZbVGaqO N0TvWKu64BfXdXSN5FFRCFyh+LVHPpAEk0af9L0YvUo22HzWGi8Gy7Sk7WCisDF3m3mx 6gscmfeq7zlPtPRO8wb00qHgHcEeKepKJQLbReWlmVkmSN1nE5oITUg1tXyra7MF3P6S M09RDsTt+s6k0ugoSd0qasebyxGhjXYAY8PhYc+i/1njqAjNaY9gnHog3MoGe8R+ILAf T7964ifPznB1mr48/Nz6A72ZY/8p8uTc54tT5uZ0pD+zOHOWoNI5x6pIZ74O60EjUqyO UL2w== X-Gm-Message-State: AOAM53015uDYWQLLJnzmejZnEQpg00mZHZa60W3NBD5MeN0zEym39rli i/Tt6W39ClNAt5YarZy7OiynjzyspIG0Bw== X-Google-Smtp-Source: ABdhPJxHZCBVQJcS85oV3GLOrW3i6LSvsu3UTYXrfh6QQ057NgGV9v32KOoTWaXaQoFU1WqufAEhfQ== X-Received: by 2002:a37:6f02:: with SMTP id k2mr17258841qkc.17.1612199346707; Mon, 01 Feb 2021 09:09:06 -0800 (PST) Original-Received: from ?IPv6:2601:98a:4102:3d80:1927:8c89:851d:5eee? ([2601:98a:4102:3d80:1927:8c89:851d:5eee]) by smtp.gmail.com with ESMTPSA id o8sm14742902qkm.59.2021.02.01.09.09.05 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Feb 2021 09:09:05 -0800 (PST) In-Reply-To: X-Mailer: iPad Mail (18B92) Received-SPF: pass client-ip=2607:f8b0:4864:20::734; envelope-from=casouri@gmail.com; helo=mail-qk1-x734.google.com 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, MIME_QP_LONG_LINE=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: 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:263688 Archived-At: > =E5=9C=A8 2021=E5=B9=B41=E6=9C=8828=E6=97=A5=EF=BC=8C=E4=B8=8B=E5=8D=884:5= 9=EF=BC=8CAlan Mackenzie =E5=86=99=E9=81=93=EF=BC=9A >=20 > =EF=BB=BFHello, Gregory. >=20 > On Thu, Jan 28, 2021 at 19:13:22 +0000, Gregory Heytings wrote: >=20 >=20 >>> Just switch the direction by the prefix arg '-'. Its handling could be=20= >>> easily implemented. It seems better to extend repeat.el to allow using=20= >>> the last key of the last command, add handling of universal arguments,=20= >>> and all this without using add-advice and hooks. >=20 >> IMO it is would be much better to map the existing repeat command to a=20= >> single keystroke, it would make any command repeatable without changing=20= >> anything else, and it already handles universal arguments. I think C-=3D= =20 >> would be the best key for this: not only is "=3D" a good mnemonic for "sa= me=20 >> command", but it is also next to the "-" key to change the direction. >=20 > It depends entirely on your keyboard layout. On a standard German > keyboard, for example, =3D is 0, so C-=3D would mean pressing three= > keys at the same time. Also on the same keyboard, - and =3D are nowhere > near eachother. >=20 > Also, does C-=3D even exist on a typical tty layout? No, you need special handling to recognize C-=3D on tty. Yuan=