mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
tools/lookup: fix dash-docs-install-docset
Addresses a integer-or-marker-p error emitted from the `url-retrieve-synchronously' call in `dash-docs-read-json-from-url'. This is apparently a systemic issue in Emacs 26's networking library. See https://github.com/magit/ghub/issues/81
This commit is contained in:
@ -138,6 +138,17 @@ this list.")
|
||||
dash-docs-min-length 2
|
||||
dash-docs-browser-func #'eww)
|
||||
|
||||
;; 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
|
||||
(defun doom*dash-docs-read-json-from-url (orig-fn url)
|
||||
(let ((gnutls-algorithm-priority "NORMAL:-VERS-TLS1.3"))
|
||||
(funcall orig-fn url)))
|
||||
(advice-add #'dash-docs-read-json-from-url :around #'doom*dash-docs-read-json-from-url)
|
||||
|
||||
(def-package! helm-dash
|
||||
:when (featurep! :completion helm))
|
||||
|
||||
|
Reference in New Issue
Block a user