From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Philip Kaludercic Newsgroups: gmane.emacs.bugs Subject: bug#47878: Mark outline commands as repeatable Date: Wed, 21 Apr 2021 13:53:28 +0000 Message-ID: <87y2dbagmf.fsf@posteo.net> References: <87blabpge6.fsf@posteo.net> <87y2dej95u.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23160"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 47878@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 21 15:54:11 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 1lZDIw-0005tU-PZ for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Apr 2021 15:54:10 +0200 Original-Received: from localhost ([::1]:55502 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lZDIv-0005fS-Dm for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 21 Apr 2021 09:54:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lZDIo-0005f8-Qo for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2021 09:54:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:45694) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lZDIo-0001IB-JS for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2021 09:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lZDIo-0001XL-FG for bug-gnu-emacs@gnu.org; Wed, 21 Apr 2021 09:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Philip Kaludercic Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Apr 2021 13:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47878 X-GNU-PR-Package: emacs Original-Received: via spool by 47878-submit@debbugs.gnu.org id=B47878.16190132255884 (code B ref 47878); Wed, 21 Apr 2021 13:54:02 +0000 Original-Received: (at 47878) by debbugs.gnu.org; 21 Apr 2021 13:53:45 +0000 Original-Received: from localhost ([127.0.0.1]:57240 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZDIW-0001Wn-Tg for submit@debbugs.gnu.org; Wed, 21 Apr 2021 09:53:45 -0400 Original-Received: from mout02.posteo.de ([185.67.36.66]:41385) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lZDIQ-0001WR-R3 for 47878@debbugs.gnu.org; Wed, 21 Apr 2021 09:53:42 -0400 Original-Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id E29FB2400E5 for <47878@debbugs.gnu.org>; Wed, 21 Apr 2021 15:53:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1619013209; bh=juS+5Kp7m+LXWzyxdQG2BKYwuJCWovl98TKPdGIU+Ss=; h=From:To:Cc:Subject:Date:From; b=NvyPs7g45WJ5JcMe0B3n9X4VRWNAmfGOeABGZpdb90ALsgJPgfPbFQ3X2qfypOxjx rpi7Ii6gXXgxH/YXQg+ftbEB2CrKNG8LfE9wp457DT0R6kK7Rsv1WV+5+jCrOUDuFq HotjUJBS5e5m3xmJcFBPyYaREFTy1OSGPoCM+ZjNDOW5NgoHrdpPU6CCZp6U8pTzyK X9AgAHs4fN02nVlYvQFBgG7lljdGQFZrBjeplSleVBYRjn6bxBc8NGwpN+TigIDMUz 2ot1oUomIpgg7qr3V1yfT/bkXfRKjRhKdE7zbsuwQQQxJt+IdHqTxMzsKbFzz6Vplp mf0JEb0ytZViw== Original-Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4FQMTN6bRzz6tmb; Wed, 21 Apr 2021 15:53:28 +0200 (CEST) In-Reply-To: <87y2dej95u.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 19 Apr 2021 23:45:17 +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:204608 Archived-At: Juri Linkov writes: >> This is a suggested extension for repeat-mode. outline-mode, especially >> outline-minor-mode commands are somewhat inconvenient to access ("C-x @ >> C-" requires me to change modifiers mid-input twice). When >> repeat-mode is enabled, this would allow me to access all outline keys >> in just one key-press. >> >> One might want to discuss if outline-mode-prefix-map should be directly >> marked as the repeat-map > > Is it possible to get the name of the keymap whose keys were bound to > and invoked the current command? If such function exists, then the > feature of marking the whole keymap as repeatable could be discussed. > >> or if a subset should be used. My approach requires less effort >> but might be more confusing. > > Indeed, a subset would be more preferable since it reduces the number > of keys that users might want to use outside of the repeating sequence, > e.g. to type C-l to recenter instead of outline-hide-leaves. > > To solve this problem the whole set of keys could be split to groups > of repeatable keymaps: > > 1. navigation keymap: > > C-c @ C-b outline-backward-same-level > C-c @ C-f outline-forward-same-level > C-c @ C-n outline-next-visible-heading > C-c @ C-p outline-previous-visible-heading > C-c @ C-u outline-up-heading > > This would be the most useful keymap to make navigation keys repeatable. > > 2. editing keymap: > > C-c @ RET outline-insert-heading > C-c @ C-v outline-move-subtree-down > C-c @ C-^ outline-move-subtree-up > C-c @ @ outline-mark-subtree > C-c @ C-< outline-promote > C-c @ C-> outline-demote > > Only outline-promote/outline-demote and > outline-move-subtree-down/outline-move-subtree-up > could be repeatable. I am not sure if these two maps are necessarily detached. When I want to move a few subtrees, it might be natural for me to assume that I can also move between them without having to invoke C-x @ ... again. > 3. visibility keymap: > > C-c @ C-a outline-show-all > C-c @ C-e outline-show-entry > C-c @ TAB outline-show-children > C-c @ C-k outline-show-branches > C-c @ C-s outline-show-subtree > C-c @ C-c outline-hide-entry > C-c @ C-d outline-hide-subtree > C-c @ C-l outline-hide-leaves > C-c @ C-o outline-hide-other > C-c @ C-q outline-hide-sublevels > C-c @ C-t outline-hide-body > > I doubt if these keys need to be repeatable. > We have new Org-like short keys TAB and S-TAB > that are more convenient to use in outline-mode > and in outline-minor-mode. That makes sense, I just found out about outline-minor-mode-cycle and it probably does make these keys superfluous for most uses. Removing these keys seems to also open up a lot of key bindings that would otherwise maybe annoy users if they are bound in transient maps (especially C-a, C-e, C-k, C-s, C-c). -- Philip K.