From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#41130: outline-mode: Add new commands like org-cycle and org-global-cycle Date: Wed, 20 May 2020 01:04:01 +0300 Organization: LINKOV.NET Message-ID: <87h7wbbmzy.fsf@mail.linkov.net> References: <87lflwlrxk.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="121523"; 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: 41130@debbugs.gnu.org To: Stefan Kangas Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed May 20 00:26:24 2020 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 1jbAgp-000VVh-VS for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 20 May 2020 00:26:23 +0200 Original-Received: from localhost ([::1]:54176 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jbAgo-00051D-UW for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 19 May 2020 18:26:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44222) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jbAgV-0004Qi-9c for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 18:26:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:39807) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jbAgV-0001WY-0e for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 18:26:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jbAgU-0003sd-TQ for bug-gnu-emacs@gnu.org; Tue, 19 May 2020 18:26:02 -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, 19 May 2020 22:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41130 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41130-submit@debbugs.gnu.org id=B41130.158992712614854 (code B ref 41130); Tue, 19 May 2020 22:26:02 +0000 Original-Received: (at 41130) by debbugs.gnu.org; 19 May 2020 22:25:26 +0000 Original-Received: from localhost ([127.0.0.1]:51349 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbAfu-0003rW-HB for submit@debbugs.gnu.org; Tue, 19 May 2020 18:25:26 -0400 Original-Received: from relay1-d.mail.gandi.net ([217.70.183.193]:49795) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jbAfr-0003qv-Fu for 41130@debbugs.gnu.org; Tue, 19 May 2020 18:25:23 -0400 X-Originating-IP: 91.129.97.200 Original-Received: from mail.gandi.net (m91-129-97-200.cust.tele2.ee [91.129.97.200]) (Authenticated sender: juri@linkov.net) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 4732E240003; Tue, 19 May 2020 22:25:15 +0000 (UTC) In-Reply-To: (Stefan Kangas's message of "Mon, 18 May 2020 20:00:36 -0700") 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:180622 Archived-At: >>> (define-key outline-minor-mode-map (kbd "C-") 'outline-cycle) >>> (define-key outline-minor-mode-map (kbd "S-") 'outline-global-cycle) >>> >>> They are already there in Org-mode and many users swear by them. >>> (In Org-mode, org-cycle is bound to TAB instead of C-TAB, but I don't >>> think that would work very well with outline-minor-mode.) >> >> C-TAB switches tabs in tab-bar-mode. > > Sorry, it seems I wrote this bug report in a very confusing way. > Please let me try again. > > One part would be to add: > > (define-key outline-mode-map (kbd "") 'outline-cycle) > (define-key outline-mode-map (kbd "S-") 'outline-global-cycle) > > I also think we should also consider: > > (define-key outline-minor-mode-map (kbd "C-") 'outline-cycle) > (define-key outline-minor-mode-map (kbd "S-") 'outline-global-cycle) > > If there is a conflict with tab-bar-mode on C-TAB, maybe we could use > M-TAB instead? M-TAB switches desktop windows in many window managers.