branch: master
commit 038486235cae5ea07e86fb3bd5388411797300f2
Author: Basil L. Contovounesios <[email protected]>
Commit: Oleh Krehel <[email protected]>

    ivy.el (ivy--minibuffer-setup): Use setq-local
    
    Fixes #1318
---
 ivy.el | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/ivy.el b/ivy.el
index 7172e5c..dee2a46 100644
--- a/ivy.el
+++ b/ivy.el
@@ -2340,11 +2340,11 @@ tries to ensure that it does not change depending on 
the number of candidates."
 
 (defun ivy--minibuffer-setup ()
   "Setup ivy completion in the minibuffer."
-  (set (make-local-variable 'completion-show-inline-help) nil)
-  (set (make-local-variable 'minibuffer-default-add-function)
-       (lambda ()
-         (list ivy--default)))
-  (set (make-local-variable 'inhibit-field-text-motion) nil)
+  (setq-local completion-show-inline-help nil)
+  (setq-local minibuffer-default-add-function
+              (lambda ()
+                (list ivy--default)))
+  (setq-local inhibit-field-text-motion nil)
   (when (display-graphic-p)
     (setq truncate-lines ivy-truncate-lines))
   (setq-local max-mini-window-height ivy-height)

Reply via email to