From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "Paul W. Rankin" via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#41198: 28.0.50; heading cycling command for outline Date: Sat, 28 Nov 2020 11:58:51 +1000 Message-ID: References: <452A6049-893A-4E7E-8349-541D276FAD19@gmail.com> <73ee5b37b78bdc410554aebbc7a4c31b@skeletons.cc> <87a6vhvu7g.fsf@gnus.org> <87ft4ze3xz.fsf@gnus.org> <87h7pdbgvd.fsf@mail.linkov.net> <87sg8wxw6p.fsf@gnus.org> <87k0u7kxrz.fsf@mail.linkov.net> Reply-To: "Paul W. Rankin" Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30319"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Purely Mail via Roundcube/1.4.7 Cc: Lars Ingebrigtsen , 41198@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Nov 28 03:00:40 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 1kipXP-0007jh-24 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 28 Nov 2020 03:00:40 +0100 Original-Received: from localhost ([::1]:52248 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kipXN-0006TF-OO for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Nov 2020 21:00:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:50744) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kipWt-0006T2-2H for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 21:00:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:35141) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kipWs-0005FD-Qf for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 21:00:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kipWs-0002s6-P5 for bug-gnu-emacs@gnu.org; Fri, 27 Nov 2020 21:00:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: "Paul W. Rankin" Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 28 Nov 2020 02:00:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 41198 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 41198-submit@debbugs.gnu.org id=B41198.160652876610966 (code B ref 41198); Sat, 28 Nov 2020 02:00:02 +0000 Original-Received: (at 41198) by debbugs.gnu.org; 28 Nov 2020 01:59:26 +0000 Original-Received: from localhost ([127.0.0.1]:46687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kipWI-0002qo-3i for submit@debbugs.gnu.org; Fri, 27 Nov 2020 20:59:26 -0500 Original-Received: from sendmail.purelymail.com ([34.202.193.197]:59142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kipWG-0002qc-EO for 41198@debbugs.gnu.org; Fri, 27 Nov 2020 20:59:25 -0500 DKIM-Signature: a=rsa-sha256; b=D91zBL4aqDq39UgtaY3CJcNLJMUdsQixGYH+c/gB3OTrvDv1X0gl4Wt+GrYAD0aQWaEAM9epW0Z0vtze9bQ5uaAQ9Fvs4mEtCz3KibhnChSquaYlCcu/WVvMxJjsUeaMw2vlQCWMJifTRH1ha0EpICIhNgQ93lT4y8Z0dAk+Cnw3D6fuKw+Y917CuVGqdD69KtPjxk7SVLtWVdml91dIzyQRCQmYOOHh2gFq3gftqoVUElBsoGMT7iminpl1izOpI99oKc0TELXl+lE09PJoUK9JrKqVWg3lZAWf1qs8GCUxAKmvurPDRWcMpgmDfWijqiZcxPVJbqbB21K8c/PizA==; s=purelymail3; d=skeletons.cc; v=1; bh=h5kzDWLWc94D+qSGauvFBqm6A7wzthOFlCiWy8mBfqs=; h=Received:From:To; DKIM-Signature: a=rsa-sha256; b=Dge+GyMAdCLikP9kdKBLmUHB9f34NfO+cYnLZyVSvUGStg30Svk7tbatXmftyg6m+SvvtsC8spvsQBU7DtlifI+fIyZPN4vk+I9/KWaraIJloVBwEhOnnsJ41gqjjd3igg4smmwPLA1a1pNMo7+lv3n9sZDjyVVAkq7F+QGmVzQ3N8IiULgUlKw4BNUH6AL+9OSTVJ664n2TXXLhSJL0+TEHy6Xp1NP6EgTlSBj2LLqBGwwVG/frah/k9gAiYF77K1DHyqMOA17CAxcxBCkwuTs8yv55DRhyhHq2Pk7V1oGB6nVSd4Fj+5peVw2Zl/W1KkMGsFKZ6x2lLCoIGI/4Gw==; s=purelymail3; d=purelymail.com; v=1; bh=h5kzDWLWc94D+qSGauvFBqm6A7wzthOFlCiWy8mBfqs=; h=Feedback-ID:Received:From:To; Feedback-ID: 791:353:null:purelymail X-Pm-Original-To: 41198@debbugs.gnu.org Original-Received: by ip-172-30-0-124.ec2.internal (JAMES SMTP Server ) with ESMTPA ID 1934417705; Sat, 28 Nov 2020 01:58:51 +0000 (UTC) In-Reply-To: <87k0u7kxrz.fsf@mail.linkov.net> X-Sender: pwr@skeletons.cc 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:194471 Archived-At: On 2020-11-27 18:29, Juri Linkov wrote: > I tried to modify the format of `C-h b' to output '*' headings, > but unfortunately after enabling `outline-minor-mode' > TAB has no effect on such headings. > > I wonder why heading cycling implemented in this bug report > supports only `outline-mode', but not `outline-minor-mode'? > > It would make sense in `outline-minor-mode' if TAB typed on a heading > then cycle outline heading. If TAB is typed outside of a heading, > then use the default TAB binding, e.g. in case of the Help buffer > navigate to the next link. This is because it's not possible to know how the underlying major mode implements TAB. For just one example, I maintain a major mode where TAB performs outline cycling when at a heading, but calls completion-at-point when at a heading but at eolp. The assumption of outline-on-heading-p is insufficient to allow outline-minor-mode to hijack TAB. The correct way to implement what you're suggesting is for the major mode to require outline as a library, then alias the cycling commands prefixed as MODE-outline-cycle[-buffer] mapped them to TAB/S-TAB in their own keymaps.