12
votes
Go to body after url-retrieve-synchronously
A higher-level alternative to using url-http-end-of-headers, but equally undocumented, is url-insert-file-contents:
(with-temp-buffer
(url-insert-file-contents
"https://api.stackexchange.com/2.2/...
7
votes
Accepted
Is ELPA broken?
It might be this bug: https://debbugs.gnu.org/34341.
It's fixed in Emacs 26.3+ and the workaround is:
(setq gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")
Source
6
votes
Accepted
Go to body after url-retrieve-synchronously
With respect to a "proper API", I think the short answer, at present, is "no" -- unless you are willing to rely on an external library. url-http-end-of-headers seems to be as good as it gets, although ...
2
votes
Can't connect to package managers on multiple computers
This problem was solved by forcing emacs to use https instead of http. For some reason, emacs is using http as default instead of https.
Steps to solve:
(customize-variable RET package-archives)
...
2
votes
Accepted
Emacs can't connect to GNU archive
I believe that Emacs 26.3 fixes this.
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=34341
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36725
You should upgrade (26.2 to 26.3 is a very minor update; ...
2
votes
Accepted
How to use skewer mode beyond localhost?
An alternative to setting httpd-host to a hostname is to set it to an IP. You can use 0.0.0.0 to bind to all local IP addresses. Try (setq httpd-host "0.0.0.0") (it works for me).
1
vote
Accepted
How do I get request.el to post the contents into the buffer
/usr/bin/curl 'http://localhost:23119/better-bibtex/cayw?format=pandoc' 2>/dev/null; exit 0
This is a shell command consisting two commands (curl and exit), here is another way to write it
/usr/bin/...
1
vote
How do I get request.el to post the contents into the buffer
Whenever an Emacs user receives an error message like void-function request, it generally means the function has not yet been defined because the library containing that function has not been loaded. ...
1
vote
Can't connect to package managers on multiple computers
When in doubt, simplify. Start your Emacs with emacs -Q to disable initialization. Then in the *scratch* buffer, evaluate the following lines by hitting Ctrl+j after each lisp line. Afterwards your *...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
http × 14package-repositories × 2
remote × 2
url × 2
gnutls × 2
spacemacs × 1
init-file × 1
python × 1
debugging × 1
package × 1
web-browser × 1
package-development × 1
json × 1
networking × 1
ssl × 1
interactive-development × 1
restclient × 1
skewer-mode × 1