GNU bug report logs - #57672
[PATCH] Add prefix argument to outline-cycle-buffer

Previous Next

Package: emacs;

Reported by: Augusto Stoffel <arstoffel <at> gmail.com>

Date: Thu, 8 Sep 2022 09:16:02 UTC

Severity: normal

Tags: patch

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 57672 in the body.
You can then email your comments to 57672 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#57672; Package emacs. (Thu, 08 Sep 2022 09:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Augusto Stoffel <arstoffel <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Thu, 08 Sep 2022 09:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Augusto Stoffel <arstoffel <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: [PATCH] Add prefix argument to outline-cycle-buffer
Date: Thu, 08 Sep 2022 11:15:21 +0200
[Message part 1 (text/plain, inline)]
Tags: patch

Similar org-mode, this allows showing only headings up to a given level.

Also, handle the edge case where the lowest outline level is bigger than
1, where previously we just gave up.

[0001-Add-prefix-argument-to-outline-cycle-buffer.patch (text/patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57672; Package emacs. (Thu, 08 Sep 2022 12:41:01 GMT) Full text and rfc822 format available.

Message #8 received at 57672 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Augusto Stoffel <arstoffel <at> gmail.com>
Cc: 57672 <at> debbugs.gnu.org
Subject: Re: bug#57672: [PATCH] Add prefix argument to outline-cycle-buffer
Date: Thu, 08 Sep 2022 14:40:17 +0200
Augusto Stoffel <arstoffel <at> gmail.com> writes:

> Similar org-mode, this allows showing only headings up to a given level.
>
> Also, handle the edge case where the lowest outline level is bigger than
> 1, where previously we just gave up.

Thanks; pushed to Emacs 29.




bug marked as fixed in version 29.1, send any further explanations to 57672 <at> debbugs.gnu.org and Augusto Stoffel <arstoffel <at> gmail.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Thu, 08 Sep 2022 12:41:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57672; Package emacs. (Thu, 08 Sep 2022 17:42:01 GMT) Full text and rfc822 format available.

Message #13 received at 57672 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Lars Ingebrigtsen <larsi <at> gnus.org>
Cc: 57672 <at> debbugs.gnu.org, Augusto Stoffel <arstoffel <at> gmail.com>
Subject: Re: bug#57672: [PATCH] Add prefix argument to outline-cycle-buffer
Date: Thu, 08 Sep 2022 20:34:08 +0300
>> Similar org-mode, this allows showing only headings up to a given level.
>>
>> Also, handle the edge case where the lowest outline level is bigger than
>> 1, where previously we just gave up.
>
> Thanks; pushed to Emacs 29.

Nice feature, but doesn't work in emacs-lisp-mode with outline-minor-mode.
OTOH, 'C-5 C-c @ C-q' neither, so perhaps a bug is in outline-hide-sublevels.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57672; Package emacs. (Thu, 08 Sep 2022 17:55:02 GMT) Full text and rfc822 format available.

Message #16 received at 57672 <at> debbugs.gnu.org (full text, mbox):

From: Augusto Stoffel <arstoffel <at> gmail.com>
To: Juri Linkov <juri <at> linkov.net>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 57672 <at> debbugs.gnu.org
Subject: Re: bug#57672: [PATCH] Add prefix argument to outline-cycle-buffer
Date: Thu, 08 Sep 2022 19:54:15 +0200
On Thu,  8 Sep 2022 at 20:34, Juri Linkov <juri <at> linkov.net> wrote:

> Nice feature, but doesn't work in emacs-lisp-mode with outline-minor-mode.
> OTOH, 'C-5 C-c @ C-q' neither, so perhaps a bug is in outline-hide-sublevels.

Hum, it works for me.  Since your elisp file probably doesn't have that
many levels, and toplevel forms have level 1000, 'C-5 C-c @ C-q' or 'C-5
M-x outline-cycle-buffer RET' will display the full comment outline but
hide the toplevel forms --- which is something I want to do from time to
time.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#57672; Package emacs. (Thu, 08 Sep 2022 19:39:03 GMT) Full text and rfc822 format available.

Message #19 received at 57672 <at> debbugs.gnu.org (full text, mbox):

From: Juri Linkov <juri <at> linkov.net>
To: Augusto Stoffel <arstoffel <at> gmail.com>
Cc: Lars Ingebrigtsen <larsi <at> gnus.org>, 57672 <at> debbugs.gnu.org
Subject: Re: bug#57672: [PATCH] Add prefix argument to outline-cycle-buffer
Date: Thu, 08 Sep 2022 22:36:25 +0300
>> Nice feature, but doesn't work in emacs-lisp-mode with outline-minor-mode.
>> OTOH, 'C-5 C-c @ C-q' neither, so perhaps a bug is in outline-hide-sublevels.
>
> Hum, it works for me.  Since your elisp file probably doesn't have that
> many levels, and toplevel forms have level 1000, 'C-5 C-c @ C-q' or 'C-5
> M-x outline-cycle-buffer RET' will display the full comment outline but
> hide the toplevel forms --- which is something I want to do from time to
> time.

Thanks, 'C-999 S-TAB' doesn't show toplevel forms, but 'C-1000 S-TAB' does.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 07 Oct 2022 11:24:11 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 195 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.