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

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

[elpa] externals/ivy-hydra a877961 330/395: ivy.el (ivy-call): Don't mod


From: Basil L. Contovounesios
Subject: [elpa] externals/ivy-hydra a877961 330/395: ivy.el (ivy-call): Don't modify default-directory
Date: Thu, 25 Feb 2021 08:32:31 -0500 (EST)

branch: externals/ivy-hydra
commit a877961ecc72753c36654da1c9bf444677f0f02d
Author: Oleh Krehel <ohwoeowho@gmail.com>
Commit: Oleh Krehel <ohwoeowho@gmail.com>

    ivy.el (ivy-call): Don't modify default-directory
    
    This code was introduced to fix `cd' (#2549), since it was broken by
    `default-directory' let-binding in #2375.
    
    But there's no clear use or test case demonstrated in #2375 for the
    let-binding. So let's revert the code for now, until it's clear what
    it was trying to do.
    
    Fixes #2610
---
 ivy.el | 1 -
 1 file changed, 1 deletion(-)

diff --git a/ivy.el b/ivy.el
index 237c1e4..426409f 100644
--- a/ivy.el
+++ b/ivy.el
@@ -1478,7 +1478,6 @@ See variable `ivy-recursive-restore' for further 
information."
             (prog1 (unwind-protect
                        (if ivy-marked-candidates
                            (ivy--call-marked action)
-                         (setq default-directory (ivy-state-directory 
ivy-last))
                          (funcall action x))
                      (ivy-recursive-restore))
               (unless (or (eq ivy-exit 'done)



reply via email to

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