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

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

[elpa] externals/ivy-hydra 6ab24b6 249/395: * ivy.el: Use with-eval-afte


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra 6ab24b6 249/395: * ivy.el: Use with-eval-after-load
Date: Thu, 25 Feb 2021 08:32:13 -0500 (EST)

branch: externals/ivy-hydra
commit 6ab24b6b977126b4c104a3ae145659bbabf313e4
Author: Basil L. Contovounesios <contovob@tcd.ie>
Commit: Basil L. Contovounesios <contovob@tcd.ie>

    * ivy.el: Use with-eval-after-load
    
    The macro was added in Emacs 24.4 and has the benefit of not hiding
    its body from the byte-compiler.
---
 ivy.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/ivy.el b/ivy.el
index 1664796..006be02 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1777,8 +1777,8 @@ This string is inserted into the minibuffer."
           (const :tag "De Bruijn" de-bruijn)
           (const :tag "Words" words)))
 
-(eval-after-load 'avy
-  '(add-to-list 'avy-styles-alist `(ivy-avy . ,ivy-avy-style)))
+(with-eval-after-load 'avy
+  (add-to-list 'avy-styles-alist `(ivy-avy . ,ivy-avy-style)))
 
 (defun ivy--avy-candidates ()
   (let (candidates)
@@ -3529,8 +3529,8 @@ height < `ivy-height', auto-shrink the minibuffer."
 
 (defvar ivy--flx-cache nil)
 
-(eval-after-load 'flx
-  '(setq ivy--flx-cache (flx-make-string-cache)))
+(with-eval-after-load 'flx
+  (setq ivy--flx-cache (flx-make-string-cache)))
 
 (defun ivy-toggle-case-fold ()
   "Toggle `case-fold-search' for Ivy operations.



reply via email to

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