bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41198: 28.0.50; heading cycling command for outline


From: Paul W. Rankin
Subject: bug#41198: 28.0.50; heading cycling command for outline
Date: Tue, 17 Nov 2020 12:47:33 +1000
User-agent: Purely Mail via Roundcube/1.4.7

On 2020-11-17 07:59, Lars Ingebrigtsen wrote:

The patches look OK to me, but look like they've been slightly mangled
during transmission, so could you include them as a single patch as an
attachment?  (And adding a ChangeLog-format text would also be nice.)

2x patches attached with changelog.

I took a more precise approach with outline--cycle-state, where the +1 case is only handled when the subtree end is point-max, otherwise the overlay-end must equal end of subtree point in all other cases.

I rewrote outline-cycle-buffer; it now first checks that the buffer has top-level headings before attempting to show only top-level headings, thus avoiding the disconcerting state where all buffer content is reduced to "...". If buffer has no outline headings, we still get an annoying message toggle from "All headings" to "Show all".

Also this avoids using pcase, which is awful.

Attachment: 0001-lisp-outline.el-better-handing-of-outline-overlays-w.patch
Description: Text Data

Attachment: 0002-lisp-outline.el-avoid-hiding-all-buffer-content.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]