From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.devel Subject: Re: Repeat undo-only is not working Date: Tue, 24 Aug 2021 09:36:11 -0700 Message-ID: References: <20210823131240.rxfepbz4q2buo733.ref@Ergus> <20210823131240.rxfepbz4q2buo733@Ergus> <87eeakgqa6.fsf@mail.linkov.net> <14b08091-f054-3740-7351-b32a7d9fb1c3@gmail.com> <87bl5nz762.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13239"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Ergus , emacs-devel To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Tue Aug 24 18:47:32 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 1mIZaG-0003Co-DD for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Aug 2021 18:47:32 +0200 Original-Received: from localhost ([::1]:56574 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mIZaE-0007pF-CG for ged-emacs-devel@m.gmane-mx.org; Tue, 24 Aug 2021 12:47:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56702) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mIZPK-0003gD-AA for emacs-devel@gnu.org; Tue, 24 Aug 2021 12:36:14 -0400 Original-Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:46645) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mIZPI-0003TU-Is for emacs-devel@gnu.org; Tue, 24 Aug 2021 12:36:14 -0400 Original-Received: by mail-pl1-x629.google.com with SMTP id u15so12526756plg.13 for ; Tue, 24 Aug 2021 09:36:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=CgqUzbSUNPPmyFu/cgtf2+IUdZL0wd+7YUYdS/XLcyQ=; b=ZHDUztjmWA6NiROvWR+ZPO/14JP28Nb5MF5tiyLnygz+KlM2u2OwnFNLEl6Mq3zxep JJ4gYTNoSriZUAP+FA2qgRRe830kXUNWoE6htdH9hmOiUqduHEW7jQgt/PNkgQPS2tWe Fle/uTaeRHeHpPpyk7ggBoJ7xqu25PruSXrZggBomjTL+0OqcP6XK3fxGAAn6t1BfLLN FtypPVzq15J2B62dvtcfPDHCWA5914TFkO67x3rpBbIjos8cGQi8TJVEnCsuNq5zyHsG 0bzmY9pwd3qqbh+EfasfjftUDYO3PZIfcnxKGlMIgRS7vJFF0+Mf9EfwFqhDwYB3w8pd ZDgg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=CgqUzbSUNPPmyFu/cgtf2+IUdZL0wd+7YUYdS/XLcyQ=; b=o0I/ZaxsXm3jre6QzwG9eZKM2yqLQj6JXsRR+PG72yYrzQE4OBbgoCeyip4+CCcIIQ ySeLl0yhuJxefZ2G4+NcpuAcC1XcnAeDxWMbBJ63eTT6OZYXjhYmr34R0aAfolmnkRbC 2Uq4IGRrGie6+VEhxwFpxc+bAasvTPjl/+DEE7wTfmstKhRZf9TOn/5Jyhn5nFpZOU0V iHUMDdN6hYR8zIS8J9Oa7ukoxJ6zQ2S8iqquczHHIbhe4ziUptn3w8GN4n3n4T1ZS8e4 fyP61RKMHPMmHHNIkxYi08IZ6p8eogiOaDImQ/g23UA5935SXwv159VQlRz6gfy5EI9F oCdA== X-Gm-Message-State: AOAM532qyaPiFEpX7PUFMwt7yV6PvmbORgPgkmSu4U2E1FS6JQubBLi0 qRl8DKQig4q60B5SNXTLbIrnb/DmD6o= X-Google-Smtp-Source: ABdhPJxt2KFXCWtQRU4csqOv1ZkUx3PNRESy774VFlXfrU8+T/mj4x/WNm6COhFHpC1NfGZ1axQPpQ== X-Received: by 2002:a17:902:744c:b0:136:a8cb:a05 with SMTP id e12-20020a170902744c00b00136a8cb0a05mr2379832plt.72.1629822971229; Tue, 24 Aug 2021 09:36:11 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id j16sm15299986pfc.70.2021.08.24.09.36.10 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Aug 2021 09:36:10 -0700 (PDT) In-Reply-To: <87bl5nz762.fsf@mail.linkov.net> Content-Language: en-US Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=jporterbugs@gmail.com; helo=mail-pl1-x629.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, 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:272914 Archived-At: On 8/23/2021 11:40 PM, Juri Linkov wrote: >>> Sorry, this part of the feature is still unpolished. >>> The intention was to disallow repeating of undo with >>> the key sequence `C-/ u', but allow only with `C-x u u'. >>> Maybe this was a wrong idea? Do you think it should be >>> possible to type `C-/' to initiate the repeating sequence >>> `C-/ u u u'? >> >> For what it's worth, the intention matches my personal expectation. [snip] >> >> Perhaps it should be possible to support the behavior in the original post, >> but I'm happy with how things are now. > > So there is a need to distinguish between these cases > > C-/ --- u u u > C-x u --- u u > > ("---" visually separates the initial and repeating sequence) > and allow their customization. Maybe a new variable is sufficient > that will inhibit checking that the last character exists in repeat-map. > > But what to do if the user wants to disable C-/ --- u u u, > but still wants to use for gdb-step such sequence > C-x C-a C-n --- n n n n where repeat-map has no C-n? If there were a flag like `repeat-enable-aggressively' to enable things like C-/ --- u u u, then would it be possible to let a user who doesn't want C-/ --- u u u but *does* want C-x C-a C-n --- n n n to set that flag to nil and then call some function in their .emacs for each "extra" sequence in the repeat-map they want to enable? Another option would be to set `repeat-enable-aggressively' to t and then *remove* any repeat mappings the user doesn't like. I haven't looked at the implementation, so I'm not sure if either of those options are feasible, but they'd give users plenty of flexibility if they really wanted it. That said, I'd probably be happy with setting `repeat-enable-aggressively' to nil in my config and not worrying about overriding any specific cases. - Jim