dakrone / es-mode

An Emacs major mode for interacting with Elasticsearch
GNU General Public License v3.0
196 stars 34 forks source link

Switch es-mode executon to request.el #41

Closed dakrone closed 7 years ago

dakrone commented 7 years ago

This switches ES-mode execution in .es files to use request.

This is partially to address #39, which this now does when curl is installed and .es files execute requests.

There still remains switching ob-elasticsearch.el over to request, which will be harder due to the synchronous nature of org-babel execution.

narendraj9 commented 7 years ago

@dakrone
Does this work?

I had to change the :parser parameter passed to the request call to decode buffer string as utf-8.

dakrone commented 7 years ago

@narendraj9 This has been working for me, is there a case it's not for you? Can you open an issue for it?