Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Remove The Delay In Helm Persistent Actions In Emacs

There is a delay in firing a persistent action on the initial search results from helm when doing an async source in emacs when [TODO: Code shorthand span ] turns on helm - follow - mode.

I tried setting all of these variables to remove the delay, but none of them worked :

lisp
(setq helm-follow-input-idle-delay 0.001)
  (setq helm-input-idle-delay 0.001)
  (setq helm-grep-input-idle-delay 0.001)
  (setq helm-exit-idle-delay 0.001)
  (setq eldoc-idle-delay 0.001)
  (setq helm-show-info-in-mode-line-delay 0.001)
  (setq helm-top-poll-delay-post-command 0.001)
  (setq x-wait-for-event-timeout 0.001)
  (setq helm-cycle-resume-delay 0.001)

The delay turned out to be hard coded in the file

bash
~/.emacs.d/elpa/28.1/develop/helm-core-20220514.725/helm-core.el

via this line :

lisp
(helm-follow-execute-persistent-action-maybe 0.5)

I changed that to :

lisp
(helm-follow-execute-persistent-action-maybe 0.01)

With that in place the persistent action is triggering without any appreciable delay.

** Notes

- I also removed the [TODO: Code shorthand span ] file in the same directory. At some point I'll figure out how to recompile the .el file but for now this worked.