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.bugs Subject: bug#48472: [FR] A small suggestion for repeat-mode Date: Wed, 19 May 2021 00:04:38 +0300 Organization: LINKOV.NET Message-ID: <87a6orwy6x.fsf@mail.linkov.net> References: <87bl9atpen.fsf@gmail.com> <871ra5xalk.fsf@mail.linkov.net> <87o8d847ls.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="28121"; 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: 48472@debbugs.gnu.org To: Gustavo Barros Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue May 18 23:06:28 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1lj6v6-00076t-1a for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 23:06:28 +0200 Original-Received: from localhost ([::1]:33826 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lj6v5-0005wf-4G for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 May 2021 17:06:27 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lj6ug-0005wQ-6V for bug-gnu-emacs@gnu.org; Tue, 18 May 2021 17:06:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45915) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lj6uf-0006VP-UD for bug-gnu-emacs@gnu.org; Tue, 18 May 2021 17:06:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lj6uf-0003Tx-MS for bug-gnu-emacs@gnu.org; Tue, 18 May 2021 17:06:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 May 2021 21:06:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48472 X-GNU-PR-Package: emacs Original-Received: via spool by 48472-submit@debbugs.gnu.org id=B48472.162137195813369 (code B ref 48472); Tue, 18 May 2021 21:06:01 +0000 Original-Received: (at 48472) by debbugs.gnu.org; 18 May 2021 21:05:58 +0000 Original-Received: from localhost ([127.0.0.1]:57459 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj6ub-0003TY-J5 for submit@debbugs.gnu.org; Tue, 18 May 2021 17:05:57 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:35141) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lj6uZ-0003TH-KT; Tue, 18 May 2021 17:05:56 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id D8FBBC0008; Tue, 18 May 2021 21:05:47 +0000 (UTC) In-Reply-To: <87o8d847ls.fsf@gmail.com> (Gustavo Barros's message of "Tue, 18 May 2021 08:14:08 -0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:206842 Archived-At: tags 48472 fixed close 48472 28.0.50 thanks Hi Gustavo, >> An "exit function" returned by `set-transient-map' is a clever thing, >> without such returned function it would be more complicated to implement. >> I quickly tried it out, and it works indeed. > > We have to thank whoever put it there. And it seems to be there out of > design and foresight. As far as my grepping went (not that thorough), > I didn't find an instance of usage of this return value in Emacs' code base > as of yet. It's amazing that the function returns exactly what we need even though its return value is not yet used anywhere. So I copied the same design to another similar function display-buffer-override-next-command to return exitfun as well. >> A new user option could be named `repeat-exit-timeout'. >> > > Sounds good to me. And, I'm not sure I should be reading between the lines > of your answer, but I could not avoid it, so I'll be forthcoming. I've gone > as far as I'm allowed to. I'd be happy to offer a patch, but no papers... You are welcome to sign papers, so the next time you could offer a patch. Now I pushed the implementation based on your suggestion, thanks for it! (The implementation also includes a lot of small details like correctly handling the messages, etc.) If you are running on 27.2, you could still take the second part of repeat.el from Emacs 28.