dakra / speed-type

Practice touch/speed typing in emacs
GNU General Public License v3.0
137 stars 19 forks source link

Fix speed-type-top-x Showing Only Headers #35

Closed LaurenceWarne closed 2 years ago

LaurenceWarne commented 2 years ago

Hi, whilst testing stuff some stuff in my other PR I encountered some strange behaviour with speed-type-top-x, namely the speed type buffer would be filled with the response headers from the HTTP request used to fetch the x most popular words.

This PR fixes that using url-http-end-of-headers and write-region (at least for me locally).

A couple of other changes:

Hope this is helpful (the diff at least is less egregious :slightly_smiling_face:), thanks.

dakra commented 2 years ago

Thanks. This probably came in with https://github.com/dakra/speed-type/pull/28 which I just tested quickly and worked for me in a short test. Using url-retrieve-synchronously makes sense though.

dakra commented 2 years ago

I merged but somehow some tests failed for me now. Maybe you can have a look if you get a chance. Thanks again

LaurenceWarne commented 2 years ago

I merged but somehow some tests failed for me now. Maybe you can have a look if you get a chance. Thanks again

Apologies, I didn't notice there were any tests :slightly_smiling_face:, hopefully this should be fixed by https://github.com/dakra/speed-type/pull/36.