Emacs: pulsar version 0.5.0
Pulsar is a small package that temporarily highlights the current line, either on demand or automatically after invoking a function that is present in a user-defined list. Watch the demo
Further below are the release notes.
- Package name (GNU ELPA):
pulsar - Official manual: https://protesilaos.com/emacs/pulsar
- Change log: https://protesilaos.com/emacs/pulsar-changelog
- Git repo on SourceHut: https://git.sr.ht/~protesilaos/pulsar
- Mirrors:
- Mailing list: https://lists.sr.ht/~protesilaos/pulsar
- Added convenience functions/commands to pulse a line using one of the
provided faces. These can be used interactively or via Lisp (e.g. be
assigned to a hook). They are:
pulsar-pulse-line-redpulsar-pulse-line-greenpulsar-pulse-line-yellowpulsar-pulse-line-bluepulsar-pulse-line-magentapulsar-pulse-line-cyan
-
Deprecated
pulsar-pulse-on-window-changedue to complications it created in some edge cases. Part of this effort was to fix a bug that pertained to a duplicate pulse when the pulsar commands were invoked viaM-x. The duplication had the effect of potentially overriding the color of the pulse such as if, say,pulsar-pulse-line-redwas invoked while thepulsar-facewas blue. -
Restored several command symbols to the default value of
pulsar-pulse-functions. Those were disabled to support the use optionpulsar-pulse-on-window-change, but as that is now removed we revert to the old and more predictable way of handling things. -
Introduced conditionality that checks for
real-this-command. This is necessary for commands that have to fudgethis-commandto provide their functionality. Such is the case with theevil-scroll-upandevil-scroll-downcommands which are internally reported asprevious-lineandnext-line, respectively. I discovered this problem while trying to support Duy Nguyen attempts that makingpulsarwork withevil.Thanks to Duy Nguyen for reporting the issue on the mailing list and then to Tom Dalziel who explained why
evildoes things the way it does (it is a good reason): -
Documented how to use pulsar with the
next-error-hook. By default, thenandpkeys in Emacs’ compilation buffers (e.g. the results of agrepsearch) produce a highlight for the locus of the given match. Due to how the code is implemented, we cannot use Pulsar’s standard mechanism to trigger a pulse after the match is highlighted (i.e. by adding the commands topulsar-pulse-functions. Instead, the user must add this to their configuration:(add-hook 'next-error-hook #'pulsar-pulse-line) - Made other miscellaneous changes to tweak the code base and the manual.