From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ergus Newsgroups: gmane.emacs.devel Subject: Repeat undo-only is not working Date: Mon, 23 Aug 2021 15:12:40 +0200 Message-ID: <20210823131240.rxfepbz4q2buo733@Ergus> References: <20210823131240.rxfepbz4q2buo733.ref@Ergus> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4065"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Aug 23 15:17:46 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 1mI9ph-0000rm-PU for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Aug 2021 15:17:45 +0200 Original-Received: from localhost ([::1]:56276 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mI9pg-0001yo-HQ for ged-emacs-devel@m.gmane-mx.org; Mon, 23 Aug 2021 09:17:44 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54630) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mI9lS-0006cp-2j for emacs-devel@gnu.org; Mon, 23 Aug 2021 09:13:22 -0400 Original-Received: from sonic312-20.consmr.mail.bf2.yahoo.com ([74.6.128.82]:37681) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mI9lL-0000x1-Q1 for emacs-devel@gnu.org; Mon, 23 Aug 2021 09:13:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aol.com; s=a2048; t=1629724388; bh=/gR55AyD26XfDuw2KAQ9hMb3LbSR8sNiUfbvTzSctFk=; h=Date:From:To:Cc:Subject:References:From:Subject:Reply-To; b=tfnpNqN6Pt9pr9rJ2FbAvWqIurN2rA6hS1NawlrHRPtVZUbFiLHn8ZYOwuSJFNVk4lYuF6yErGLc1hQhPOTClSfvyaJns770Pi+D1gIGRf9qbi9amXsOTZ7x373g7TJONmmhuMBEVajViiZ65IYcVnisRJQctAq1Xf6SXGfuu1ibtYQuSDaJ4g81d3fYCsaQFCz2fQLEwSLqDfFvre0WZrIvws0PjmL9Af7W6qk+r8sEbnlc2ALbP/rs2FomwUq5RCctq4Yjx0zSexeoR+cf2JfF0MN/SEjEbzS+CPtVfLYgd7hu9AVIhn7vH2hdwIRO97NQlZSCyZCqScDFzmL/YA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1629724388; bh=4Y8urztC7WpbavJeAVYLr4eGN/J2RkoUxkayR3+vUK8=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=ZJmrmW2AxNF2u7gPlaLSqYt5AyBkgO2aZ1DB+AnF58nwe9t256Fzlqg7tvT45CE/WPYn6HHh7f7/J9wWRJRTQec9UQWaoIeA6hv3ptc77ZaamWWQMJzvgT5KYki3150Nqfv3ZbtNMLBBgQJ6TlwI+8HpjMli1TOllTPOP+6utwNvbW/kXiToI76kF1n7KFnPF+hO+O9e3BRo8rFMVDz738pisXNloJYzLg0XrMi8KwBMm64yDnp76HEsyMdcIcTGXmi2sdQgWhLTwcqYySQQ1AsfyoGcfuJ4NyuprbWUt8cB8ozOqsvPObWxKlUFCBQMU+GQwPo84ZG1uofmto5XDQ== X-YMail-OSG: nOQqcxUVM1nAIO41Bdy35mjFc.0F.bJkn.KmLyy_Xj4vk.N_p5sDFyK.jhnvhwP h4XY7KY65OOXADqFOXSaRBL2DrqR71XfBaRa50CZ4tKPq1WK2K_CYWwHqpgd_x4aOW7_.pFMfnPa Leul7sW7cN8Ky5uQ8gyexUNnUcFQhp1QyZaGirmfmPfdUHkjzkfzOHMLg1PkCVJjdcLIuB0WkVC7 .1jZmPczoDUMM1C43yzCY9oEvYpO.9i0L1gbcUW5vrJsigDW6NDSzN.5q4hiuVCK0Ks7kGjr.Y2D _t3x9W4vBnWb8xkzvTqNY1ukOWJOT1Yp4yqaUaoaODp9Fcvp4tfMoTf71t7Azwg85fD.rYu_rxcD hG6MydvwoJmjW5lm2Lh7aQxnLZKTjiCxxcqNjFaH89dXOzR4X2wSljOMooeLNPqXM._LLcUd8.m4 QSU2IDhrebhQzrnvX.kbO4lnloXB.UOcLEVSbciUJaMizjwJi2P84U_7xofmZ2QD3NXYmQ7lGHZm _hTJCufULW.9eB1gH5vlhVaUCzDh4imKlKnjM6u4mv0RW2pBSJT9upaoBPXGjEJCAprwpcnPwgRO 5CAdGpXH77h2Fmza5pRXKIFyRJLYfACS1YCrYcBWBpsOMddCFxImvO4_OVr8rRSnmX0P2Z8ByMXU nGbTVl7rRmzF_hVbQ7pu0emhiRaXREQCOzmdM5RKtAiB0X01hIfCQ0KrWRfjkyUSXjJiIUtt.Eof CXuXDSGlWlrwImrOOXHQI4fCx5hmZnCtv_dAXwJzeistrO8FQPMg6fq1lK67KEGPNE4A.pSaxDx0 LYxuSrmj8UxRdfKPoW_zNk62lF.LpmWteN4zypykMC X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.bf2.yahoo.com with HTTP; Mon, 23 Aug 2021 13:13:08 +0000 Original-Received: by kubenode510.mail-prod1.omega.ir2.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 4bb7f04869bcfbcbe1edaa64116baec1; Mon, 23 Aug 2021 13:13:04 +0000 (UTC) Content-Disposition: inline X-Mailer: WebService/1.1.18850 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.aol Received-SPF: pass client-ip=74.6.128.82; envelope-from=spacibba@aol.com; helo=sonic312-20.consmr.mail.bf2.yahoo.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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:272872 Archived-At: Hi Juri: I have this config: ``` (global-set-key (kbd "C-/") #'undo-only) (global-set-key (kbd "C-M-/") #'undo-redo) (with-eval-after-load 'repeat (defvar undo-redo-repeat-map (let ((map (make-sparse-keymap))) (define-key map "/" #'undo-only) (define-key map "M-/" #'undo-redo) (define-key map "U" #'undo) map) "Keymap to repeat undo-redo key sequences. Used in `repeat-mode'.") (put 'undo-only 'repeat-map 'undo-redo-repeat-map) (put 'undo-redo 'repeat-map 'undo-redo-repeat-map) (put 'undo 'repeat-map 'undo-redo-repeat-map)) ``` And for some reason the repeat map does not activates with "undo-only" (it doesn't even shows the message in the minibuffer) but with "undo" and "undo-redo" it works as expected. Is there anything special in "undo-only" that disables repeat-mode?