emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/evil-surround 9a7ab545dd 085/175: Add explicit autoload de


From: ELPA Syncer
Subject: [nongnu] elpa/evil-surround 9a7ab545dd 085/175: Add explicit autoload definitions to avoid implicit evil dependency
Date: Mon, 9 Oct 2023 13:01:05 -0400 (EDT)

branch: elpa/evil-surround
commit 9a7ab545dd2d10be5ed8abfc2d77b03fc05518e2
Author: Wouter Bolsterlee <wouter@bolsterl.ee>
Commit: Wouter Bolsterlee <wouter@bolsterl.ee>

    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 10873c6536..3fdfc8bb33 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]