chiply / spot4e

Emacs client for Spotify search and playback using helm
MIT License
45 stars 4 forks source link

helm query gets interrupted by url request #10

Open thiennamdinh opened 5 years ago

thiennamdinh commented 5 years ago

Hi Chiply,

I have an issue where typing in a search query too quickly (read: more than ~20 wpm) results in the following interruption method in the minibuffer:

error in process filter: Transfer interrupted!

This seems well documented as an issue with url-retrieve in similar projects and appears to be fixed by switching to curl.

https://github.com/emacs-helm/helm/issues/866 https://github.com/skeeto/elfeed/issues/30

How feasible would it be support curl/request.el? If not, would it be doable to at least prevent spot4 from sending out a request until I signal that I'm done typing?

Thanks!

P.S. I did try this hack and while it mostly stopped the asynchronous interruptions, it resulted in other unexpected and annoying behavior.

chiply commented 5 years ago

Let me check it out and get back to you - I run into this error too and it is a nuisance for sure.

Of course, if you get this interruption, the short term fix is to simply continue typing or backspace and the url requests should start coming through normally again.

But I will look into supporting curl for a long term solution - thanks! I'm going to flag this as an enhancement as imo spot4e is still usable with this interruption and a fix would enhance usability.

matthew-piziak commented 5 years ago

This is why I don't use helm-google-suggest. It's too rough ergonomically to be worth it.

moritzschaefer commented 5 years ago

@matthew-piziak +1, I thought it's a bug which only I am experiencing but the small blocks during typing make it unusable