From 84fe780b3422c46f16e5a8e8406d522679173532 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 31 Jul 2020 18:14:07 -0400 Subject: [PATCH] tools/lookup: remove redundant Emacs 26 gnutls fix A fix for this issue is already part of Doom core, so this is redundant. --- modules/tools/lookup/config.el | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/modules/tools/lookup/config.el b/modules/tools/lookup/config.el index 17c87d566..99cef993e 100644 --- a/modules/tools/lookup/config.el +++ b/modules/tools/lookup/config.el @@ -184,20 +184,6 @@ Dictionary.app behind the scenes to get definitions.") 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) - (defadvice! +lookup--fix-gnutls-error-a (orig-fn url) - "Fixes integer-or-marker-p errors emitted from Emacs' url library, -particularly, the `url-retrieve-synchronously' call in -`dash-docs-read-json-from-url'. This is part of a systemic issue with Emacs 26's -networking library (fixed in Emacs 27+, apparently). - -See https://github.com/magit/ghub/issues/81" - :around #'dash-docs-read-json-from-url - (let ((gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3")) - (funcall orig-fn url))) - (cond ((featurep! :completion helm) (require 'helm-dash nil t)) ((featurep! :completion ivy)