The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

Remove The Delay In Helm Persistent Actions In Emacs

TODO: Pull subtitle into page object

There is a delay in firing a persistent action on the initial search results from helm when doing an async source in emacs when `:follow 1` turns on helm-follow-mode.

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

code_start_default_section code_end_default_section

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

** Notes

- I also removed the `helm-core.elc` file in the same directory. At some point I'll figure out how to recompile the .el file but for now this worked.

Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

Remove The Delay In Helm Persistent Actions In Emacs

-- p

There is a delay in firing a persistent action on the initial
search results from helm when doing an async source in emacs
when `:follow 1` turns on helm-follow-mode.

-- p

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

-- code/
-- 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)

-- /code

-- p

The delay turned out to be hard coded in the file

-- code/
-- bash

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

-- /code

-- p

via this line:

-- code/
-- lisp

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

-- /code

-- p

I changed that to:

-- code/
-- lisp

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

-- /code

-- p

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

-- p

** Notes

-- p

- I also removed the `helm-core.elc` file in the same directory.
  At some point I'll figure out how to recompile the .el file
  but for now this worked.


-- categories
-- Emacs 

-- metadata
-- date: 2022-05-30 12:23:14
-- id: 29tmbm84
-- status: published 
-- type: post
-- SCRUBBED_NEO: false
-- site: aws