From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: chad Newsgroups: gmane.emacs.devel Subject: Re: POLL: make C-x o transient Date: Thu, 28 Jan 2021 18:38:57 -0800 Message-ID: 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: multipart/alternative; boundary="00000000000096396d05ba00e8a5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1333"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Gregory Heytings Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Jan 29 03:40:09 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 1l5Jhh-0000GA-FJ for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Jan 2021 03:40:09 +0100 Original-Received: from localhost ([::1]:50304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5Jhg-00061S-G6 for ged-emacs-devel@m.gmane-mx.org; Thu, 28 Jan 2021 21:40:08 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44224) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5Jgm-0005YC-0S for emacs-devel@gnu.org; Thu, 28 Jan 2021 21:39:12 -0500 Original-Received: from mail-yb1-xb34.google.com ([2607:f8b0:4864:20::b34]:37717) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5Jgk-0002Yw-3u for emacs-devel@gnu.org; Thu, 28 Jan 2021 21:39:11 -0500 Original-Received: by mail-yb1-xb34.google.com with SMTP id s61so4244007ybi.4 for ; Thu, 28 Jan 2021 18:39:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=FFnRVKvN3vqwNkqePTh//H9lupu7X8wj5FRaAYJ0oLk=; b=lqdUiM6qtGd7WfIps+EpWBXoMe4XU3RymciGQXNGUFWM+LqXSTtfbI5OxGXeIVL87J XJmPWL2zIOg1Czn0k0PtmtMy0goAiNO2p6ZwT/Ix8wOJkKLeO4Od0Rg6HXm8hWHowP2/ ZpXwQCH7Hv7iBTnwCJELu9D/k6R08sldzLKcTA6bNVIrMarJQc8wagfcsIOTcvspI8Zo uW4tR3AE3cKlWnUYlCtxYxpdrnQ7naIs32GkUChUlPB7jrgZWz0T4ywRgpSvp8i1dti3 aCr5j6aAAyai+/DW/ZZFNTmOaHO+I8V1s6WiNaJovBDC08HzJAxLcitVEnK5WzKnZq+9 C4Lg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=FFnRVKvN3vqwNkqePTh//H9lupu7X8wj5FRaAYJ0oLk=; b=jPrGdIwy3R1T7Dw9NHC4692WOJ3DQauE36UfX6a2nAPmlOKcKipjCiqimQKjBBdt5T 9K/RfwzPK5Q7yoNR6IperJv06/1XOUB5+osMOJ/cavy/tEGRHeS9gIMX6PrGv8pMoiVK FdbM4tNUuIqhhrht/1R0+NXaMqeTaJgCh/Z8hM6TmJE9VmB+Dym/xaNwe5brfhMjNx/M UvK+G1lnUVpuWrjKiI2EqNX7ikmDg4o6AsYqGPAJi4L4ybl0KwP7IxgSXFtZ/wK1KV38 0OeDEZf0uB6nTPYPjcEXaePVysZap7Kik/LB5GRnVZkTn1Vki+wgSl3l8vYd4BPnqTZb pkdg== X-Gm-Message-State: AOAM532RuNgscvMOxOeM9xhtpF5x4PXnqmGQ+qWld7kaXjo8xuHv3Y/9 SCNuFkFSl17TVDrfLFPC6raKAIr1vhbOJmp4eoMHc3SP X-Google-Smtp-Source: ABdhPJxZapAeEjh80Teu4l5lQUb2BaCGAwC8+T7393aOrQklXlUvDYvyQnKcsV2HMTIHoj6vvZTms3XXU6j3MqUe9GQ= X-Received: by 2002:a25:af8c:: with SMTP id g12mr3246966ybh.33.1611887948477; Thu, 28 Jan 2021 18:39:08 -0800 (PST) In-Reply-To: <938445fec66b0cdb0c4e@heytings.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::b34; envelope-from=yandros@gmail.com; helo=mail-yb1-xb34.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, HTML_MESSAGE=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:263563 Archived-At: --00000000000096396d05ba00e8a5 Content-Type: text/plain; charset="UTF-8" On Thu, Jan 28, 2021 at 11:16 AM 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. > 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. I mention this mostly to say that the actual ui of last key/./, was pretty nice in my testing. ~Chad --00000000000096396d05ba00e8a5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

On Thu, Jan 28, 2021 at 11:16 AM Gregory = Heytings <gregory@heytings.org> wrote:
> Just switch the direction by the prefix arg '-'.=C2=A0 Its han= dling could be
> easily implemented.=C2=A0 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.=C2=A0 I think C-= =3D
would be the best key for this: not only is "=3D" a good mnemonic= for "same
command", but it is also next to the "-" key to change the d= irection.


I mention this mostly to say that the actual ui of last key/./, was pretty= nice in my testing.=C2=A0

--00000000000096396d05ba00e8a5--