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
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.
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[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)]
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.