From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Gustavo Barros Newsgroups: gmane.emacs.bugs Subject: bug#48472: [FR] A small suggestion for repeat-mode Date: Sun, 16 May 2021 17:05:52 -0300 Message-ID: <87bl9atpen.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5445"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 27.2 To: 48472@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun May 16 22:11:31 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 1liN6m-0001FP-Rr for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 May 2021 22:11:28 +0200 Original-Received: from localhost ([::1]:42814 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1liN6k-0008Cq-V0 for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 16 May 2021 16:11:26 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liN2U-0003VN-IM for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 16:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:40004) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liN2U-00054m-99 for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 16:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1liN2U-0007Xg-4N for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 16:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Gustavo Barros Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 16 May 2021 20:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 48472 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162119556728883 (code B ref -1); Sun, 16 May 2021 20:07:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 16 May 2021 20:06:07 +0000 Original-Received: from localhost ([127.0.0.1]:51547 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liN1X-0007Vd-8p for submit@debbugs.gnu.org; Sun, 16 May 2021 16:06:07 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:51074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1liN1V-0007Ut-B3 for submit@debbugs.gnu.org; Sun, 16 May 2021 16:06:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:46272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1liN1V-0001pk-51 for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 16:06:01 -0400 Original-Received: from mail-qk1-x733.google.com ([2607:f8b0:4864:20::733]:39920) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1liN1S-0004Xb-Gu for bug-gnu-emacs@gnu.org; Sun, 16 May 2021 16:06:00 -0400 Original-Received: by mail-qk1-x733.google.com with SMTP id k127so3924106qkc.6 for ; Sun, 16 May 2021 13:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:user-agent:from:to:subject:message-id:date:mime-version; bh=B/fdUDLHDLEsFegA0N1YKSoK1UCzj7jBpf5Ggx2OJAw=; b=nQLdVCt6srgAAGHrct/w2VUazuE3a9qhptUYHMoIO8YK08MU5DgK331pJcYHfSHYIG VIVCQExEBpyYUtQeq+lJkXFsbnxZcGtu2ls2xZZnfyfTTDkg680c+jhnFf72dppaMP2k DxLudawk4wM1c74yvlf7z/KwJeyw9QoCxLA59pkb7QwsySItEymmIHDEYICIzsgeos26 v3/r9Upqg/AfUzRgCdcwModcyTkpak2EObg5B6oYC4zycGn473PCKUpMnK+RU3Hg13DE F8V5uCpMRjBWIVpuimGmaFSgzOwp2oeUvDOuRApCN2g9U2q/bOzFo7iuIVpGKj/BTzCs O7GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:user-agent:from:to:subject:message-id :date:mime-version; bh=B/fdUDLHDLEsFegA0N1YKSoK1UCzj7jBpf5Ggx2OJAw=; b=p1eKBUwUK1/qDNnAVkZKRfr3iD24HEClRBSGeZrhZ/MYB2ugswzFFhRiw8TFL1bYX4 iaiXJWuXlE0v8Oqh7haC72pBgs3OfaQeSAZ2XLRsZFmBzQdQNfdUQoOSXHA0M0jljD3f F+TKxbl81vPsIaqx8ezIZigG43iqEghD/f9dgRJEHA7FfVuHveskiA4PCGWWr4+5+R8h cUo8AntLMNXsFYporEzrA6MsTl3Pu9oqvoBA/MdAXBhcYxZq7XkjOFv/qglepm/meAxc pZ9x5WnZpIOvGbvLQAH2VUIaRNu5W6edfBcuKt9VA0R/tQvc3KP4dHWLJz3L1WENL7r8 g6qg== X-Gm-Message-State: AOAM530KCKjL3vKjiUSEZFf3NZaiU+r+2pz4vkApWoEFF4J+wLErNs85 WwEOTQ146XTyvnKzfXZC0EqyrvAkJc8= X-Google-Smtp-Source: ABdhPJzCqPjLU4bdftZ4T4EWj6Av4d3KuQyQmyqLotE894JAfMKLhsBFjtXLYwGR9Yra7K+lyO9Ebw== X-Received: by 2002:a05:620a:2283:: with SMTP id o3mr54238868qkh.157.1621195556549; Sun, 16 May 2021 13:05:56 -0700 (PDT) Original-Received: from gusbrs-laptop ([143.244.34.133]) by smtp.gmail.com with ESMTPSA id n19sm8709133qtp.65.2021.05.16.13.05.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 May 2021 13:05:55 -0700 (PDT) Received-SPF: pass client-ip=2607:f8b0:4864:20::733; envelope-from=gusbrs.2016@gmail.com; helo=mail-qk1-x733.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=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: 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:206685 Archived-At: Hi All, I've just taken notice of the recently introduced `repeat-mode', in `repeat.el', and welcome it. I haven't yet tried it out, since I'm running on 27.2, but I understand what it does, and how. I'll definitely use it when Emacs 28 comes, since I have some commands for which I use current `repeat.el' functionality to do something equivalent in my setup, and the new mode makes this much more convenient, so thank you (Juri) for adding it. But I write to give one small suggestion to the mode. Namely that an option be added to make the transient keymap expire after a (configurable) timeout. The idea is that the repeating last key press is very handy indeed, but if you happen to stop at a repeatable key, stop some "idle" time (thinking, reading, whatever) and then hit the key again, it might not be what was actually meant. In other words, besides `repeat-exit-key', some idle time after the last repeatable key may serve as a good indicator for breaking the repetition chain. As far as I can see, this should not be particularly complicated, since `set-transient-map' returns an "exit function" which could be stored and ran on a timer, as appropriate. And, of course, it can be optional. Thanks again for the useful addition. I'm looking forward to using it already. Best regards, Gustavo.