GNU bug report logs -
#79580
[PATCH] hideshow: Fix cursor when using end-of-line indicators.
Previous Next
To reply to this bug, email your comments to 79580 AT debbugs.gnu.org.
There is no need to reopen the bug first.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#79580; Package
emacs.
(Mon, 06 Oct 2025 01:31:08 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Elijah Gabe Pérez <eg642616 <at> gmail.com>:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org.
(Mon, 06 Oct 2025 01:31:09 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)]
Tags: patch
This patch fixes a bug i noticed when using hideshow EOL indicators and
flymake ones together, moving the cursor to end of current line when
both indicators are in the same line, moves the cursor to the next line
for some reason.
This also fixes the display of the indicators, so it should now look
like this:
(defun my-function (arg1)| v
^
cursor
instead of this:
(defun my-function (arg1)v|
[0001-hideshow-Fix-cursor-when-using-end-of-line-indicator.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
--
- E.G via Gnus and Org.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#79580; Package
emacs.
(Mon, 06 Oct 2025 06:14:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 79580 <at> debbugs.gnu.org (full text, mbox):
> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
> Date: Sun, 05 Oct 2025 19:30:08 -0600
>
> This patch fixes a bug i noticed when using hideshow EOL indicators and
> flymake ones together, moving the cursor to end of current line when
> both indicators are in the same line, moves the cursor to the next line
> for some reason.
>
> This also fixes the display of the indicators, so it should now look
> like this:
>
> (defun my-function (arg1)| v
> ^
> cursor
>
> instead of this:
>
> (defun my-function (arg1)v|
Thanks, but is it feasible to have tests for these issues?
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#79580; Package
emacs.
(Tue, 07 Oct 2025 00:37:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 79580 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Eli Zaretskii <eliz <at> gnu.org> writes:
>> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
>> Date: Sun, 05 Oct 2025 19:30:08 -0600
>>
>> This patch fixes a bug i noticed when using hideshow EOL indicators and
>> flymake ones together, moving the cursor to end of current line when
>> both indicators are in the same line, moves the cursor to the next line
>> for some reason.
>>
>> This also fixes the display of the indicators, so it should now look
>> like this:
>>
>> (defun my-function (arg1)| v
>> ^
>> cursor
>>
>> instead of this:
>>
>> (defun my-function (arg1)v|
>
> Thanks, but is it feasible to have tests for these issues?
I think so, I've added one now:
[0001-hideshow-Fix-cursor-when-using-end-of-line-indicator.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
Also this bug seems to work only when images are used for the
indicators, here is a code for reproduce this:
(let ((o1 (make-overlay (line-end-position) (1+ (line-end-position))))
(o2 (make-overlay (line-end-position) (1+ (line-end-position)))))
(overlay-put o1 'display "!\n")
(overlay-put o2 'before-string (icon-string 'tab-line-close)))
--
- E.G via Gnus and Org.
Information forwarded
to
bug-gnu-emacs <at> gnu.org:
bug#79580; Package
emacs.
(Sat, 11 Oct 2025 02:07:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 79580 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hello, I'm sending a updated patch, I had to remove the ert test from
the patch because it was not correct.
I'm not sure how to add a proper test for this bug but since this is not
a specific hideshow bug I don't think there is a problem with removing
it.
[0001-hideshow-Fix-cursor-when-using-end-of-line-indicator.patch (text/x-patch, attachment)]
[Message part 3 (text/plain, inline)]
--
- E.G via Gnus and Org.
Reply sent
to
Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility.
(Sat, 11 Oct 2025 09:51:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Elijah Gabe Pérez <eg642616 <at> gmail.com>:
bug acknowledged by developer.
(Sat, 11 Oct 2025 09:51:02 GMT)
Full text and
rfc822 format available.
Message #19 received at 79580-done <at> debbugs.gnu.org (full text, mbox):
> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
> Cc: 79580 <at> debbugs.gnu.org
> Date: Fri, 10 Oct 2025 20:05:44 -0600
>
> Hello, I'm sending a updated patch, I had to remove the ert test from
> the patch because it was not correct.
>
> I'm not sure how to add a proper test for this bug but since this is not
> a specific hideshow bug I don't think there is a problem with removing
> it.
Thanks, installed, and closing the bug.
This bug report was last modified 26 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.