GNU bug report logs -
#77224
[PATCH] New minor mode 'cursor-indicators-mode'
Previous Next
Full log
View this message in rfc822 format
> From: Elijah Gabe Pérez <eg642616 <at> gmail.com>
> Date: Sun, 13 Apr 2025 22:34:47 -0600
> Cc: 77224 <at> debbugs.gnu.org, Juri Linkov <juri <at> linkov.net>,
> Daniel Colascione <dancol <at> dancol.org>, Daniel Mendler <mail <at> daniel-mendler.de>
>
> >> 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.
>
> Another idea is to make the cursor color buffer local.
>
> I got an idea, what about add an advice-add to setq as a kind of variable watcher? setq is the standard for
> changing the value to a variable, and compared to post-command-hook, it wouldn't run on every function
> calls, ofc the advice will be removed after disabling the minor mode.
>
> Maybe it sounds hacky and could already been talked about in this thread that I've missed, but there are
> built-in packages in emacs that use advice-add.
If that's what you want, why not use a variable watcher directly? We
do that in some cases already, see the end of frame.el.
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.