GNU bug report logs -
#62573
29.0.60; Cursor color not being inverted in emacs-29
Previous Next
Reported by: Al Haji-Ali <abdo.haji.ali <at> gmail.com>
Date: Fri, 31 Mar 2023 18:35:02 UTC
Severity: normal
Found in version 29.0.60
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
> From: Daniel Martín <mardani29 <at> yahoo.es>
> Cc: luangruo <at> yahoo.com, 62573 <at> debbugs.gnu.org, abdo.haji.ali <at> gmail.com
> Date: Sun, 02 Apr 2023 13:01:07 +0200
>
> Eli Zaretskii <eliz <at> gnu.org> writes:
>
> >> From: Daniel Martín <mardani29 <at> yahoo.es>
> >> Cc: Al Haji-Ali <abdo.haji.ali <at> gmail.com>, 62573 <at> debbugs.gnu.org,
> >> luangruo <at> yahoo.com
> >> Date: Sat, 01 Apr 2023 21:56:33 +0200
> >>
> >> This bug is a regression caused by
> >> 07715630ad9df9cb681cbadecbaf73fc9c698061. (Adding Po Lu to the CC.)
> >>
> >> >From what I see, the font display refactor removed this code from
> >> src/nsterm.m:
> >>
> >> - face = FACE_FROM_ID_OR_NULL (f, phys_cursor_glyph->face_id);
> >> - if (face && NS_FACE_BACKGROUND (face)
> >> - == ns_index_color (FRAME_CURSOR_COLOR (f), f))
> >> - {
> >> - [ns_lookup_indexed_color (NS_FACE_FOREGROUND (face), f) set];
> >> - hollow_color = FRAME_CURSOR_COLOR (f);
> >> - }
> >> - else
> >>
> >> which seems to be responsible for the cursor color change when the
> >> background face color is the same as the cursor color. I can't find
> >> that logic in the current code, so I think we miss it from the
> >> refactoring.
> >>
> >> I've solved the bug by replicating that logic in the appropriate places,
> >> nsterm.m and macfont.m:
> >
> > This regression should be fixed on the release branch, but the patch
> > you propose is quite large. Can't we simply reinstate the removed
> > code, and apply the changes you propose only on master?
> >
>
> That's the first thing I tried, but it didn't fix the problem. More
> code changes would be needed because, since
> 07715630ad9df9cb681cbadecbaf73fc9c698061, the responsibility of drawing
> the cursor now resides in the macOS font driver (macfont.m).
OK, thanks, understood.
This bug report was last modified 2 years and 104 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.