Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffer type compute timer #18

Open
MichaelXavier opened this issue Oct 17, 2018 · 0 comments
Open

Buffer type compute timer #18

MichaelXavier opened this issue Oct 17, 2018 · 0 comments

Comments

@MichaelXavier
Copy link
Contributor

I notice that dhall-buffer-type-compute-timeris run after every change to set a variable that is used in the header line. This seems like it isn't needed when dhall-use-header-line is nil because it won't be displayed anywhere. In fact, even on moderately large files, type computing can be really expensive and make the buffer unusable. It seems to me this timer should not even be run if the type won't be used.

Also a lower priority but it seems like there could be some control over the debouncing feature you have which is currently hardcoded to 1 second right now for cases when you do want the type but you don't want to run it as frequently so it doesn't lock up the editor.

Let me know if you'd be amenable to these changes. I'm not an elisp expert but I could give it a shot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant