GNU bug report logs - #77238
30.1.50; [PATCH] Missing blank line when moving outline subtrees with outline-blank-line set to non-nil

Previous Next

Package: emacs;

Reported by: James Cherti <contact <at> jamescherti.com>

Date: Mon, 24 Mar 2025 14:55:01 UTC

Severity: normal

Tags: patch

Found in version 30.1.50

Fixed in version 31.0.50

Done: Juri Linkov <juri <at> linkov.net>

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 77238 in the body.
You can then email your comments to 77238 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#77238; Package emacs. (Mon, 24 Mar 2025 14:55:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to James Cherti <contact <at> jamescherti.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 24 Mar 2025 14:55:01 GMT) Full text and rfc822 format available.

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

From: James Cherti <contact <at> jamescherti.com>
To: bug-gnu-emacs <at> gnu.org, Juri Linkov <juri <at> linkov.net>,
 Eli Zaretskii <eliz <at> gnu.org>
Subject: 30.1.50; [PATCH] Missing blank line when moving outline subtrees with
 outline-blank-line set to non-nil
Date: Mon, 24 Mar 2025 09:03:50 -0400
[Message part 1 (text/plain, inline)]
Emacs outline fails to preserve the final blank line after headings
when moving subtrees up or down when the outline-blank-line variable
is set to non-nil.

Attached is a patch that resolves the issue.

Steps to Reproduce:
- Set outline-blank-line to a non-nil value (e.g., t).
- Create an outline with multiple subtrees, ensuring a blank line
between them.
- Move an outline subtree up or down using the appropriate command (M-UP 
or M-DOWN).
- Observe that the moved subtree may not include the final blank line.

Expected Behavior: When moving outline subtrees up or down, Emacs should 
respect the outline-blank-line variable and ensure that the moved 
subtrees retain a blank line.

Actual Behavior: The final blank line is omitted when moving outline 
subtrees, despite outline-blank-line being set to non-nil.

Additional Information: Including a blank line when outline-blank-line 
is non-nil is important to maintain the structure of the document. 
Omitting it could cause subtrees to lose their separation, making the 
outline less readable.

--
James Cherti
GitHub: https://github.com/jamescherti
Website: https://www.jamescherti.com/
[outline-move-subtree-down-up-include-blank-line.patch (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#77238; Package emacs. (Tue, 25 Mar 2025 07:48:02 GMT) Full text and rfc822 format available.

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

From: Juri Linkov <juri <at> linkov.net>
To: James Cherti <contact <at> jamescherti.com>
Cc: 77238 <at> debbugs.gnu.org, Eli Zaretskii <eliz <at> gnu.org>
Subject: Re: bug#77238: 30.1.50; [PATCH] Missing blank line when moving
 outline subtrees with outline-blank-line set to non-nil
Date: Tue, 25 Mar 2025 09:45:47 +0200
close 77238 31.0.50
thanks

> Emacs outline fails to preserve the final blank line after headings
> when moving subtrees up or down when the outline-blank-line variable
> is set to non-nil.
>
> Attached is a patch that resolves the issue.

Thanks, now pushed with the bug number added to the commit message.




bug marked as fixed in version 31.0.50, send any further explanations to 77238 <at> debbugs.gnu.org and James Cherti <contact <at> jamescherti.com> Request was from Juri Linkov <juri <at> linkov.net> to control <at> debbugs.gnu.org. (Tue, 25 Mar 2025 07:48:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 22 Apr 2025 11:24:09 GMT) Full text and rfc822 format available.

This bug report was last modified 136 days ago.

Previous Next


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