From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#53158: 28.0.90; TAB, RET key behave differently for Git-Log-View, Outline View mode Date: Mon, 10 Jan 2022 21:52:44 +0200 Organization: LINKOV.NET Message-ID: <8635lvxt9v.fsf@mail.linkov.net> References: <83zgo38ojq.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38408"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (x86_64-pc-linux-gnu) Cc: 53158@debbugs.gnu.org To: Van Ly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 10 20:54:21 2022 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 1n70kH-0009p1-1Q for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Jan 2022 20:54:21 +0100 Original-Received: from localhost ([::1]:32774 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n70kG-00040Y-1q for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 10 Jan 2022 14:54:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53500) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n70jz-0003z1-JO for bug-gnu-emacs@gnu.org; Mon, 10 Jan 2022 14:54:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:60453) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n70jx-0002Ju-Nj for bug-gnu-emacs@gnu.org; Mon, 10 Jan 2022 14:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n70jx-00084C-Mb for bug-gnu-emacs@gnu.org; Mon, 10 Jan 2022 14:54:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 10 Jan 2022 19:54:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53158 X-GNU-PR-Package: emacs Original-Received: via spool by 53158-submit@debbugs.gnu.org id=B53158.164184444030997 (code B ref 53158); Mon, 10 Jan 2022 19:54:01 +0000 Original-Received: (at 53158) by debbugs.gnu.org; 10 Jan 2022 19:54:00 +0000 Original-Received: from localhost ([127.0.0.1]:53356 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n70jv-00083t-Ol for submit@debbugs.gnu.org; Mon, 10 Jan 2022 14:53:59 -0500 Original-Received: from relay12.mail.gandi.net ([217.70.178.232]:35577) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n70jt-00083S-Sj for 53158@debbugs.gnu.org; Mon, 10 Jan 2022 14:53:58 -0500 Original-Received: (Authenticated sender: juri@linkov.net) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 02738200009; Mon, 10 Jan 2022 19:53:47 +0000 (UTC) In-Reply-To: (Van Ly's message of "Mon, 10 Jan 2022 19:36:43 +0000 (UTC)") 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:223897 Archived-At: > Emacs unboxes with unpleasant defaults. I was pleasantly > surprised TAB expands and collapses the bullet point in Outline View mode. > If memory serves. I used to have to look up how to do that. What key to > use. Maybe the TAB behavior was pulled from Org mode to Outline mode. > Having the same key to expand, collapse the bullet point headline is the > "Right thing to do(R)[TM]". > > Perhaps, there could be configuration infrastructure policy overlay for > having bullet points expand, collapse with the same key. I would use that > to page up/down View mode with B and SPC everywhere. We were hit by this unpleasant problem in diff-mode with outline-minor-mode. In diff-mode TAB moves point to the next hunk, because in browsers TAB moves to the next link. But in outline-minor-mode TAB should expand and collapse on the heading because TAB does this in Org mode. So we were forced to add such filter: (defcustom outline-minor-mode-cycle-filter nil "Filter out positions on the heading available for cycling." :type '(choice (const :tag "Everywhere" nil) (const :tag "At line beginning" bolp) (const :tag "Not at line beginning" (lambda () (not (bolp)))) (const :tag "At line end" eolp) Then you can choose: when point is at the beginning of the outline heading, TAB can expand and collapse outlines, when point is not at the line beginning, TAB moves to the next hunk.