When the cursor is in the *xref*
buffer, following dired-do-find-regexp
, the found string in the adjacent frame flashes, but too briefly, making it quite hard to see.
A simple solution is to increase the duration of the pulse of the found string.
The code goes through the following functions in xref.el(.gz):
(On macOS: /Applications/Emacs.app/Contents/Resources/lisp/progmodes/xref.el.gz
)
- xref-next-line
- xref-show-location-at-point
- xref--show-location
- xref--show-pos-in-buf
- xref-after-jump-hook
- xref-pulse-momentarily
- pulse-momentary-highlight-region
and the calls continue in pulse.el.gz:
(on macOS: /Applications/Emacs.app/Contents/Resources/lisp/cedet/pulse.el.gz
)
- pulse-momentary-highlight-region
- pulse-momentary-highlight-overlay
It would be enough to increase pulse-delay
defcustom pulse-delay .03
but that doesn't change the pulse time.
How can I increase the duration of the pulse?
This is a sequel question.