[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outli
From: |
Yuan Fu |
Subject: |
bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline |
Date: |
Fri, 16 Oct 2020 15:27:33 -0400 |
> On Oct 16, 2020, at 4:20 AM, Juri Linkov <juri@linkov.net> wrote:
>
>>> Now finally org keys are available in etc/NEWS, nice!
>>> But typing S-TAB at the beginning of etc/NEWS signals the error:
>>>
>>> Debugger entered--Lisp error: (error "Before first heading")
>>> signal(error ("Before first heading"))
>>>
>>> This is not how org-mode works - S-TAB doesn't fail before first heading
>>> in org-mode.
>>
>> Do you suggest to change it to a user-error? Or just be silent?
>
> To imitate org-mode, maybe outline-mode could temporarily (i.e. by
> using save-excursion) navigate to the first heading before running
> the rest of outline-cycle-buffer when it's before first heading?
This patch should make outline behaves like org: S-TAB always cycle the whole
buffer, regardless where is the point. TAB cycles a heading, and does nothing
if point is before the first heading.
Yuan
outline-fix.patch
Description: Binary data
- bug#41198: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline, Lars Ingebrigtsen, 2020/10/12
- bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline, Yuan Fu, 2020/10/13
- bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline, Juri Linkov, 2020/10/14
- bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline, Lars Ingebrigtsen, 2020/10/15
- bug#41198: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline, Yuan Fu, 2020/10/15
- bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline, Juri Linkov, 2020/10/16
- bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline,
Yuan Fu <=
- bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline, Lars Ingebrigtsen, 2020/10/17
- bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline, Juri Linkov, 2020/10/17
- bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline, Yuan Fu, 2020/10/17
- bug#41198: bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline, Lars Ingebrigtsen, 2020/10/18
- bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline, Yuan Fu, 2020/10/18
- bug#41130: bug#41198: 27.0.60; [PATCH] heading cycling command for outline, Lars Ingebrigtsen, 2020/10/19