From 4002313e795da53b1143658d1fe25d2eb48f4070 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 15 May 2019 23:59:03 -0400 Subject: [PATCH] tools/lookup: declare gnutls-algorithm-priority early Otherwise, gnutls-algorithm-priority won't be in scope for `dash-docs-read-json-from-url`. --- modules/tools/lookup/config.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/tools/lookup/config.el b/modules/tools/lookup/config.el index cae40061b..7c4411041 100644 --- a/modules/tools/lookup/config.el +++ b/modules/tools/lookup/config.el @@ -138,6 +138,9 @@ this list.") dash-docs-min-length 2 dash-docs-browser-func #'eww) + ;; Before `gnutls' is loaded, `gnutls-algorithm-priority' is treated as a + ;; lexical variable, which breaks `+lookup*fix-gnutls-error' + (defvar gnutls-algorithm-priority) (defun +lookup*fix-gnutls-error (orig-fn url) "Fixes integer-or-marker-p errors emitted from Emacs' url library, particularly, the `url-retrieve-synchronously' call in