From 9a7ab545dd2d10be5ed8abfc2d77b03fc05518e2 Mon Sep 17 00:00:00 2001 From: Wouter Bolsterlee Date: Fri, 9 Sep 2016 22:40:08 +0200 Subject: Add explicit autoload definitions to avoid implicit evil dependency A plain autoload cookie does not work correclty for functions defined with evil-define-command, since that depends on evil being loaded, which is not the case when the autoload file is process during Emacs startup. Fixes #82. --- evil-surround.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/evil-surround.el b/evil-surround.el index 10873c6..3fdfc8b 100755 --- a/evil-surround.el +++ b/evil-surround.el @@ -166,7 +166,7 @@ See also `evil-surround-outer-overlay'." (evil-expand-range range) range))) -;;;###autoload +;;;###autoload (autoload 'evil-surround-delete "evil-surround" nil t) (evil-define-command evil-surround-delete (char &optional outer inner) "Delete the surrounding delimiters represented by CHAR. Alternatively, the text to delete can be represented with @@ -190,7 +190,7 @@ between these overlays is what is deleted." (when outer (delete-overlay outer)) (when inner (delete-overlay inner))))))) -;;;###autoload +;;;###autoload (autoload 'evil-surround-change "evil-surround" nil t) (evil-define-command evil-surround-change (char &optional outer inner) "Change the surrounding delimiters represented by CHAR. Alternatively, the text to delete can be represented with the -- cgit v1.0