GNU bug report logs - #77224
[PATCH] New minor mode 'cursor-indicators-mode'

Previous Next

Package: emacs;

Reported by: Elijah Gabe Pérez <eg642616 <at> gmail.com>

Date: Sun, 23 Mar 2025 22:59:03 UTC

Severity: normal

Tags: patch

Full log


Message #230 received at 77224 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Elijah Gabe Pérez <eg642616 <at> gmail.com>
Cc: 77224 <at> debbugs.gnu.org, dancol <at> dancol.org, mail <at> daniel-mendler.de,
 juri <at> linkov.net
Subject: Re: bug#77224: [PATCH] New minor mode 'cursor-indicators-mode'
Date: Fri, 04 Apr 2025 13:49:34 +0300
> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
> Cc: 77224 <at> debbugs.gnu.org,  juri <at> linkov.net,  dancol <at> dancol.org,
>   mail <at> daniel-mendler.de
> Date: Thu, 03 Apr 2025 17:08:41 -0600
> 
> Eli Zaretskii <eliz <at> gnu.org> writes:
> 
> >> The code needs to run each time the cursor moves, (is there
> >> a function/code that do this?) and each time user changes window
> >> (because cursor color is not buffer-local).
> >
> > I understand the general idea, but did you have more detailed ideas
> > for how to implement that?
> 
> Maybe in a kind of loop?
> I'm still thinking.

The place where Emacs sets the cursor is well-defined, but calling
display-related functions from there could be tricky, because we are
in the middle of redisplay at that point.

I would first suggest to try using window-scroll-functions for this
purpose, maybe they are all you need.

> > And I'm not sure I understand why cursor movement needs this to run,
> > since the cursor appearance doesn't depend on its position, it depends
> > on state of overwrite-mode, buffer-read-only, and other similar state
> > variables, which don't change with buffer or cursor position.  So what
> > am I missing?
> 
> Because I had planned to implement this part of the TODO for this
> package (since I think it fits for this):
> 
>   (L848) ** Optionally make the cursor a little thinner at EOL and EOB

That could be a separate feature, implemented differently.

> Honestly, I'm getting a little tired, so I'm going to put this on pause
> until I come up with an idea or someone wants to work on it.

Understood.  Apologies if I added to your tiredness.




This bug report was last modified 64 days ago.

Previous Next


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