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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: James Cherti <contact@HIDDEN>; Keywords: patch; Done: Juri Linkov <juri@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug marked as fixed in version 31.0.50, send any further explanations to 77238 <at> debbugs.gnu.org and James Cherti <contact@HIDDEN> Request was from Juri Linkov <juri@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 77238 <at> debbugs.gnu.org:


Received: (at 77238) by debbugs.gnu.org; 25 Mar 2025 07:47:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Mar 25 03:47:14 2025
Received: from localhost ([127.0.0.1]:35950 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1twz0E-0002fJ-HN
	for submit <at> debbugs.gnu.org; Tue, 25 Mar 2025 03:47:14 -0400
Received: from relay4-d.mail.gandi.net ([2001:4b98:dc4:8::224]:36947)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>)
 id 1twz0B-0002f0-QS; Tue, 25 Mar 2025 03:47:13 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id 819EA44546;
 Tue, 25 Mar 2025 07:47:04 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: James Cherti <contact@HIDDEN>
Subject: Re: bug#77238: 30.1.50; [PATCH] Missing blank line when moving
 outline subtrees with outline-blank-line set to non-nil
In-Reply-To: <82c7a50a-c1cb-4223-918a-76f4f02f04a8@HIDDEN>
Organization: LINKOV.NET
References: <82c7a50a-c1cb-4223-918a-76f4f02f04a8@HIDDEN>
Date: Tue, 25 Mar 2025 09:45:47 +0200
Message-ID: <87pli58ses.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdduiedvtdekucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepgedprhgtphhtthhopegtohhnthhrohhlseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepjeejvdefkeesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegtohhnthgrtghtsehjrghmvghstghhvghrthhirdgtohhm
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 77238
Cc: 77238 <at> debbugs.gnu.org, Eli Zaretskii <eliz@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

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.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#77238; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 24 Mar 2025 14:54:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Mar 24 10:54:39 2025
Received: from localhost ([127.0.0.1]:57339 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1twjCJ-0006Q7-2k
	for submit <at> debbugs.gnu.org; Mon, 24 Mar 2025 10:54:39 -0400
Received: from lists.gnu.org ([2001:470:142::17]:52980)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <contact@HIDDEN>)
 id 1twhTb-0000RQ-Gp
 for submit <at> debbugs.gnu.org; Mon, 24 Mar 2025 09:04:24 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <contact@HIDDEN>)
 id 1twhTN-0005BU-1Z
 for bug-gnu-emacs@HIDDEN; Mon, 24 Mar 2025 09:04:12 -0400
Received: from bee.birch.relay.mailchannels.net ([23.83.209.14])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <contact@HIDDEN>)
 id 1twhTD-0004br-Vi; Mon, 24 Mar 2025 09:04:08 -0400
X-Sender-Id: dreamhost|x-authsender|contact@HIDDEN
Received: from relay.mailchannels.net (localhost [127.0.0.1])
 by relay.mailchannels.net (Postfix) with ESMTP id 40281781FEA;
 Mon, 24 Mar 2025 13:03:53 +0000 (UTC)
Received: from pdx1-sub0-mail-a316.dreamhost.com
 (100-120-150-3.trex-nlb.outbound.svc.cluster.local [100.120.150.3])
 (Authenticated sender: dreamhost)
 by relay.mailchannels.net (Postfix) with ESMTPA id D3EFA782E7E;
 Mon, 24 Mar 2025 13:03:52 +0000 (UTC)
ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1742821432; a=rsa-sha256;
 cv=none;
 b=LpSHWpi+FzwFCbJnnAv4FhbyH913Vudesobh43zniY3NwN9OSI2GIjqOSFFNRUofM8X+SJ
 Da7DCWeJXrirMe2eVyGmpEh43ppXkyNM6wHqsZFipL2BXzC3cH4L0q7ckEgsmzCg2dtG4M
 yFu5Di3l4DLI2k4CiZALv2CAjPnTks3vqa0tWL5neQlWr3lR3DLLCvuDAyZSMExP3J4H1D
 NeA86eQbk+QFK0WusKVwzCxYWyhbftXpBm3xGuasvpMNk2xp5XI6IuBRjb8grGz5B60drU
 mb4WduE1YNTPwK12sx5g5WGJb8g2VsxwlJ2BO3uoLlszQRi+Xm5Cp0XeGuDxMA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed;
 d=mailchannels.net; s=arc-2022; t=1742821432;
 h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
 to:to:cc:mime-version:mime-version:content-type:content-type:
 dkim-signature; bh=jve7s7QgmVf8qp561gd/9x7C1a4X7d/3aoE1Ky1Sc9E=;
 b=4P0Os6m1DrnnrqxptICuth4XtFOqc2WQzjNegMsVW6haY8w0MNKTEHoDpIIFK9T/vU4PG/
 Zi6mmE/A21Qjb/VTJSyLf/LMcpDm6Cdw6ggbcfwb+3FPAk+ROHbTllafoDbpkwXoa43zY/
 oq2Z7SrFHkmWoYvT26/9G+AHDQxAEO/p6KV9S8M+ocsLYb+WVV9LYwJc6E3LzehSPjTag5
 Rtap2pkS8Aj7pRQUwtbKY+pVrmS5JJGeGbQmqTHDI0I++aX+oJ4FnsOTBV/ytMCtc1gaMv
 az40VNejb9aa9vQsjE7aJIyEewo11yqbdVLJq+uPJjQoiQ3joFrB1kO29qZYKQ==
ARC-Authentication-Results: i=1; rspamd-57868978c-fx2dt;
 auth=pass smtp.auth=dreamhost smtp.mailfrom=contact@HIDDEN
X-Sender-Id: dreamhost|x-authsender|contact@HIDDEN
X-MC-Relay: Neutral
X-MailChannels-SenderId: dreamhost|x-authsender|contact@HIDDEN
X-MailChannels-Auth-Id: dreamhost
X-Irritate-Bored: 147c9c545eddd655_1742821433086_3191445401
X-MC-Loop-Signature: 1742821433086:4102342302
X-MC-Ingress-Time: 1742821433086
Received: from pdx1-sub0-mail-a316.dreamhost.com (pop.dreamhost.com
 [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384)
 by 100.120.150.3 (trex/7.0.2); Mon, 24 Mar 2025 13:03:53 +0000
Received: from [192.168.5.23] (24-212-139-93.cable.teksavvy.com
 [24.212.139.93])
 (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
 (No client certificate requested)
 (Authenticated sender: contact@HIDDEN)
 by pdx1-sub0-mail-a316.dreamhost.com (Postfix) with ESMTPSA id 4ZLtXm1sfdz9s; 
 Mon, 24 Mar 2025 06:03:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jamescherti.com;
 s=dreamhost; t=1742821432;
 bh=jve7s7QgmVf8qp561gd/9x7C1a4X7d/3aoE1Ky1Sc9E=;
 h=Content-Type:Date:From:Subject:To;
 b=PctXC4axEhpRxKImNWWFc+/YP8/0tHWFQ80bPL+qV8XImG3gvDmqXminkWuz3e7NO
 eiPye/RHbagQo+h8IFx4AihH7AKW5qiBXHrRySNcC8tG53EhK1aN9D1F226SFrXJaS
 bws1EAGdFMMwKeYO+om6H22xvRGmH3vX0PlkC9/gRAqPaRFf/+FMpFIuoAWky8Fa9R
 FOtor05t8gIKHRNVSaXx7daidIwbsG7X+CGRubVEwxvw9RZVhO5c6YugX2ValDUlOx
 4vquotQkRD6iSAxXibupFptWzr2wJOuXc13H8AQw14y2IaUguq9Bnbun7gaL2fOPEq
 QecpRzCucQCYQ==
Content-Type: multipart/mixed; boundary="------------BZhbjY91GUuAl8KbtipxorkT"
Message-ID: <82c7a50a-c1cb-4223-918a-76f4f02f04a8@HIDDEN>
Date: Mon, 24 Mar 2025 09:03:50 -0400
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Content-Language: en-US
From: James Cherti <contact@HIDDEN>
Subject: 30.1.50; [PATCH] Missing blank line when moving outline subtrees with
 outline-blank-line set to non-nil
To: bug-gnu-emacs@HIDDEN, Juri Linkov <juri@HIDDEN>,
 Eli Zaretskii <eliz@HIDDEN>
Received-SPF: pass client-ip=23.83.209.14;
 envelope-from=contact@HIDDEN; helo=bee.birch.relay.mailchannels.net
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001,
 RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Mon, 24 Mar 2025 10:54:37 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

This is a multi-part message in MIME format.
--------------BZhbjY91GUuAl8KbtipxorkT
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

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/

--------------BZhbjY91GUuAl8KbtipxorkT
Content-Type: text/x-patch; charset=UTF-8;
 name="outline-move-subtree-down-up-include-blank-line.patch"
Content-Disposition: attachment;
 filename="outline-move-subtree-down-up-include-blank-line.patch"
Content-Transfer-Encoding: base64

RnJvbSAzM2RlOGUyN2ZkOTBmOGFlYWY1NTQyZDBkMGVkNzdiMmJjOGFlYzEwIE1vbiBTZXAg
MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBKYW1lcyBDaGVydGkgPGNvbnRhY3RAamFtZXNjaGVy
dGkuY29tPgpEYXRlOiBUaHUsIDIwIE1hciAyMDI1IDA5OjAxOjM2IC0wNDAwClN1YmplY3Q6
IFtQQVRDSF0gb3V0bGluZS1tb3ZlLXN1YnRyZWUtZG93bi91cDogSW5jbHVkZSBibGFuayBs
aW5lIHdoZW4KIG91dGxpbmUtYmxhbmstbGluZSBpcyB0CgotLS0KIGxpc3Avb3V0bGluZS5l
bCB8IDMgKystCiAxIGZpbGUgY2hhbmdlZCwgMiBpbnNlcnRpb25zKCspLCAxIGRlbGV0aW9u
KC0pCgpkaWZmIC0tZ2l0IGEvbGlzcC9vdXRsaW5lLmVsIGIvbGlzcC9vdXRsaW5lLmVsCmlu
ZGV4IDFhMWM4NzA1ZWUyLi4xMjA5YjFjZTc2NiAxMDA2NDQKLS0tIGEvbGlzcC9vdXRsaW5l
LmVsCisrKyBiL2xpc3Avb3V0bGluZS5lbApAQCAtOTE1LDcgKzkxNSw4IEBAIG91dGxpbmUt
bW92ZS1zdWJ0cmVlLWRvd24KIAkgOzsgbW92ZSBpdCB0bywgYWRkaW5nIGEgbmV3bGluZSBp
ZiBuZWNlc3NhcnksIHRvIGVuc3VyZSB0aGVzZSBwb2ludHMKIAkgOzsgYXJlIGF0IGJvbCBv
biB0aGUgbGluZSBiZWxvdyB0aGUgc3VidHJlZS4KICAgICAgICAgIChlbmQtcG9pbnQtZnVu
YyAobGFtYmRhICgpCi0JCQkgICAob3V0bGluZS1lbmQtb2Ytc3VidHJlZSkKKwkJCSAgIChs
ZXQgKChvdXRsaW5lLWJsYW5rLWxpbmUgbmlsKSkKKwkJCSAgICAgKG91dGxpbmUtZW5kLW9m
LXN1YnRyZWUpKQogCQkJICAgKGlmIChlcSAoY2hhci1hZnRlcikgP1xuKSAoZm9yd2FyZC1j
aGFyIDEpCiAJCQkJKGlmIChhbmQgKGVvYnApIChub3QgKGJvbHApKSkgKGluc2VydCAiXG4i
KSkpCiAJCQkgICAocG9pbnQpKSkKLS0KMi4zOS41Cg==

--------------BZhbjY91GUuAl8KbtipxorkT--




Acknowledgement sent to James Cherti <contact@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#77238; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 25 Mar 2025 08:00:02 UTC

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