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#50679: 28.0.50; outline-minor-mode-cycle should be able to only cycle at the begining of a line Date: Mon, 27 Sep 2021 18:35:20 +0300 Organization: LINKOV.NET Message-ID: <87ee9a2h5b.fsf@mail.linkov.net> References: <87r1dkv8i2.fsf@posteo.net> <87mto8h5hk.fsf@mail.linkov.net> <87mto8uwnu.fsf@posteo.net> <87fstzn2zw.fsf@mail.linkov.net> <87y27rpi4q.fsf@mail.linkov.net> <87bl4nuuon.fsf@posteo.net> <87zgs3p8q9.fsf@mail.linkov.net> <878rzjjv38.fsf@posteo.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="10419"; 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: 50679@debbugs.gnu.org To: Philip Kaludercic Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 27 17:43:13 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 1mUsmf-0002Yd-B8 for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 17:43:13 +0200 Original-Received: from localhost ([::1]:59740 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUsme-00047X-9m for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 11:43:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60542) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUsmU-00041l-MW for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 11:43:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59124) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUsmU-0004Dy-7A for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 11:43:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUsmU-0003qg-5W for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 11:43: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: Mon, 27 Sep 2021 15:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 50679 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: fixed Original-Received: via spool by 50679-submit@debbugs.gnu.org id=B50679.163275737214738 (code B ref 50679); Mon, 27 Sep 2021 15:43:02 +0000 Original-Received: (at 50679) by debbugs.gnu.org; 27 Sep 2021 15:42:52 +0000 Original-Received: from localhost ([127.0.0.1]:42432 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUsmK-0003pe-1E for submit@debbugs.gnu.org; Mon, 27 Sep 2021 11:42:52 -0400 Original-Received: from relay7-d.mail.gandi.net ([217.70.183.200]:42941) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUsmI-0003pN-Ik for 50679@debbugs.gnu.org; Mon, 27 Sep 2021 11:42:51 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay7-d.mail.gandi.net (Postfix) with ESMTPSA id 3A5462000A; Mon, 27 Sep 2021 15:42:42 +0000 (UTC) In-Reply-To: <878rzjjv38.fsf@posteo.net> (Philip Kaludercic's message of "Sun, 26 Sep 2021 13:59:55 +0000") 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:215681 Archived-At: >>>> Then you can customize it to 'bolp'. >>> >>> I just tried it out, and it looks good. The only thing I wonder is if >>> this should apply to both outline-minor-mode and outline-mode? >> >> I separated maps outline-mode-map from outline-minor-mode-cycle-map, >> so it's applied only to outline-minor-mode-cycle-map. It seems there is >> no need to use it in outline-mode. > > I just noticed this now, but I am not sure how clever it is to bind > outline-cycle-buffer via a menu-item. I don't think that there is as > much of a conflict with backtab, as with regular tab, and having to find > a heading before being able to cycling seems less efficient. I'm using S-TAB (backtab) all the time, e.g. to move to the previous hunk in diff-mode, so menu-item is a saver. After customizing the option that you proposed to the value "Not at the beginning of the line" now it's possible to use TAB to move the next diff hunk and S-TAB to move to the previous diff hunk while keeping point on the first column. And when point is on the second column then S-TAB hides all hunks, and TAB opens the current hunk with outline-minor-mode-cycle.