From bd942505031f97db2b8c58a0b4edf95fdec4d1c8 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sun, 30 May 2021 12:18:57 -0400 Subject: [PATCH] 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. --- modules/editor/evil/autoload/textobjects.el | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/editor/evil/autoload/textobjects.el b/modules/editor/evil/autoload/textobjects.el index 29ffe25cfef..5237c574bf0 100644 --- a/modules/editor/evil/autoload/textobjects.el +++ b/modules/editor/evil/autoload/textobjects.el @@ -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 '(("'" . "'") ("\"" . "\"")