From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Augusto Stoffel 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:16:10 +0200 Message-ID: <87bl4em1th.fsf@gmail.com> 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> <87ee9a2h5b.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="6189"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Philip Kaludercic , 50679@debbugs.gnu.org To: Juri Linkov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 27 18:19:03 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 1mUtLL-0001Po-0P for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 18:19:03 +0200 Original-Received: from localhost ([::1]:60080 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUtLJ-0001JL-PW for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 27 Sep 2021 12:19:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39876) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUtJO-00081N-8E for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 12:17:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:59314) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUtJO-0007Bn-0h for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 12:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mUtJN-00059R-TJ for bug-gnu-emacs@gnu.org; Mon, 27 Sep 2021 12:17:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Augusto Stoffel Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Sep 2021 16:17:01 +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.163275938219722 (code B ref 50679); Mon, 27 Sep 2021 16:17:01 +0000 Original-Received: (at 50679) by debbugs.gnu.org; 27 Sep 2021 16:16:22 +0000 Original-Received: from localhost ([127.0.0.1]:42622 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUtIk-000582-BS for submit@debbugs.gnu.org; Mon, 27 Sep 2021 12:16:22 -0400 Original-Received: from mail-wm1-f46.google.com ([209.85.128.46]:38736) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mUtIh-00057N-Kr for 50679@debbugs.gnu.org; Mon, 27 Sep 2021 12:16:21 -0400 Original-Received: by mail-wm1-f46.google.com with SMTP id 205-20020a1c01d6000000b0030cd17ffcf8so1071414wmb.3 for <50679@debbugs.gnu.org>; Mon, 27 Sep 2021 09:16:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=QcmfLRdPQdipQE6F+YLUJ7gDs/2uwcSSKDuORyLSdrM=; b=nrZUMLRuwEN5h+WXy2COOvKxJnWzziLujlSJIhJRBjPu+AGLar4JPnY23Eeo27Bybn 3H+0dtF6jlDwxBkGEgZEVeDc1c7sdgTFyuPMv74qwBH7eQUk57BoYht4AXGt50gdfdnP fkhwtflfSl9+usHfDAK5J+RfrFuXw9HePr9POPX08Ov0xKK73Rpe+8lpNe4Sz0nqHsEP mLRkL3oVy2kU0WUVq+Dk1/uOZamHw9W1hu8jTKlstFxd5tFXQ/D1uQbJTb+qy6+ktPjs ROh9de1mJmCADVD4zsmAaVscxsllAtwu148HomGvNwJErDVU/UIN8LHGUGYbfDg7g1FN gCZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=QcmfLRdPQdipQE6F+YLUJ7gDs/2uwcSSKDuORyLSdrM=; b=Xyx5Gn6t/GzTT0v0kUTYJgejXjRQHJcLycJdYZ4g7+NCYpTR5iUdHNsnUqBq3GZKoO Nnw0sQpx5LlBvkv9cKfcmA21fJ3FDPzOHVRF3PCmX6xkA+7E89CAIKoMQIxnxrDXmmIy c4bqHrZ9lFE7MMozUc6TNPBYU4IfoM6Yl0ZN2tQQe+1aGDWiaPyCGP1bM7DWRai4/9zd mTfEFXH60EnEz3hWVzxZlD2GmCmZSxvsdrQ0WDpJhRb/pdgfqk3afX0FtLcpIldXCtid +S0v0TsRUCdZyjCdepCoiwT1uxRRbjuc+0abbWkgwxu5XQYWb6IaSMNsD3Bb4u13r277 zwZg== X-Gm-Message-State: AOAM530VRlm2ht/GahkDeO52KkeNFG5DFq/jtpzQj1bc/ofGNqEcDu0r qXPZMsm2dZ2+NlR4d0FP7kI8+u01MMM= X-Google-Smtp-Source: ABdhPJz50qpoBeq9gJWsmDG8pVIV+dJ4aoUy9f7oVd35XPxOWA2DFDdq/xfPjI1vE4ojk8jhJD+Xiw== X-Received: by 2002:a05:600c:17d0:: with SMTP id y16mr16860063wmo.41.1632759372489; Mon, 27 Sep 2021 09:16:12 -0700 (PDT) Original-Received: from ars3 ([2a02:8109:8ac0:56d0::2f72]) by smtp.gmail.com with ESMTPSA id v18sm16706786wml.44.2021.09.27.09.16.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Sep 2021 09:16:11 -0700 (PDT) In-Reply-To: <87ee9a2h5b.fsf@mail.linkov.net> (Juri Linkov's message of "Mon, 27 Sep 2021 18:35:20 +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:215689 Archived-At: On Mon, 27 Sep 2021 at 18:35, Juri Linkov wrote: >>>>> 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. The way I solve this problem is by calling `outline-back-to-heading' (which, strangely, is not an interactive command). After that, I have access to all =E2=80=9Cspeed keys=E2=80=9D. This works almost like a trans= ient keymap. Actually, I have a DWIM command that calls `outline-up-heading' if already at a heading and `outline-back-to-heading' otherwise. I'm not sure whether such a command would be deemed generally useful or just a bit too weird. > 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 li= ne" > 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.