GNU bug report logs -
#77816
[PATCH] Fix deleting the first line of calc-trail-mode
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 77816 in the body.
You can then email your comments to 77816 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#77816
; Package
emacs
.
(Tue, 15 Apr 2025 04:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Wojciech Siewierski <wojciech <at> siewierski.eu>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 15 Apr 2025 04:44:03 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
As of GNU Emacs 30.1 it's not possible to delete the first line of the
calc trail visible after invoking the Emacs calculator.
To reproduce:
1. Start Emacs calc: C-x * c
2. Enter a few numbers: 10 RET 20 RET 30 RET
3. Try deleting the trail lines, repeat for each line: t k
Expected behavior: all the trail lines are being deleted.
Actual behavior: the first line is still left, no error is reported.
This bug was introduced in commit
8e1376a39125c3ffc0484077b502444d853eca79, included since Emacs 28.1.
Before that commit, calc trail used its first line as a header, which
wasn't meant to be deleted. After migrating to using header-line, the
code preserving the first line was kept intact, still preventing the
removal of the first line even though it's no longer special.
I'm attaching a patch fixing this behavior.
Best regards
--
Wojciech Siewierski
[0001-Fix-deleting-the-first-line-of-calc-trail-mode.patch (text/patch, attachment)]
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>
:
You have taken responsibility.
(Tue, 15 Apr 2025 08:59:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Wojciech Siewierski <wojciech <at> siewierski.eu>
:
bug acknowledged by developer.
(Tue, 15 Apr 2025 08:59:02 GMT)
Full text and
rfc822 format available.
Message #10 received at 77816-done <at> debbugs.gnu.org (full text, mbox):
> From: Wojciech Siewierski <wojciech <at> siewierski.eu>
> Date: Mon, 14 Apr 2025 19:20:37 +0200
>
> As of GNU Emacs 30.1 it's not possible to delete the first line of the
> calc trail visible after invoking the Emacs calculator.
>
> To reproduce:
>
> 1. Start Emacs calc: C-x * c
> 2. Enter a few numbers: 10 RET 20 RET 30 RET
> 3. Try deleting the trail lines, repeat for each line: t k
>
> Expected behavior: all the trail lines are being deleted.
>
> Actual behavior: the first line is still left, no error is reported.
>
> This bug was introduced in commit
> 8e1376a39125c3ffc0484077b502444d853eca79, included since Emacs 28.1.
> Before that commit, calc trail used its first line as a header, which
> wasn't meant to be deleted. After migrating to using header-line, the
> code preserving the first line was kept intact, still preventing the
> removal of the first line even though it's no longer special.
>
> I'm attaching a patch fixing this behavior.
Thanks, I've now installed this on the emacs-30 release branch, and
I'm closing this bug.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Tue, 13 May 2025 11:24:07 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 day ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.