Fix #5113: "defining as dynamic an already lexical var" error

Due to a dynamic variable being let-bound while evil-textobj-anyblock is
loading, so load it first.
This commit is contained in:
Henrik Lissner 2021-05-30 12:18:57 -04:00
parent dd1f7713ea
commit bd94250503

View file

@ -46,6 +46,7 @@ This excludes the protocol and querystring."
;;;###autoload (autoload '+evil:inner-any-quote "editor/evil/autoload/textobjects" nil nil)
(evil-define-text-object +evil:inner-any-quote (count &optional beg end type)
"Select the closest inner quote."
(require 'evil-textobj-anyblock)
(let ((evil-textobj-anyblock-blocks
'(("'" . "'")
("\"" . "\"")
@ -57,6 +58,7 @@ This excludes the protocol and querystring."
;;;###autoload (autoload '+evil:outer-any-quote "editor/evil/autoload/textobjects" nil nil)
(evil-define-text-object +evil:outer-any-quote (count &optional beg end type)
"Select the closest outer quote."
(require 'evil-textobj-anyblock)
(let ((evil-textobj-anyblock-blocks
'(("'" . "'")
("\"" . "\"")