emacs-diffs
[Top][All Lists]
Advanced

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

master aa79f4e: * lisp/icomplete.el (icomplete-fido-kill): Unbreak yes-o


From: Joo Tvora
Subject: master aa79f4e: * lisp/icomplete.el (icomplete-fido-kill): Unbreak yes-or-no-p usage
Date: Tue, 19 Nov 2019 18:58:17 -0500 (EST)

branch: master
commit aa79f4e8c635537c50a50db211542c0f41443ae2
Author: João Távora <address@hidden>
Commit: João Távora <address@hidden>

    * lisp/icomplete.el (icomplete-fido-kill): Unbreak yes-or-no-p usage
    
    Discussed in the context of bug#19064, bug#17272.
---
 lisp/icomplete.el | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/lisp/icomplete.el b/lisp/icomplete.el
index 8410ca5..16167ea 100644
--- a/lisp/icomplete.el
+++ b/lisp/icomplete.el
@@ -253,7 +253,11 @@ require user confirmation."
                           (path (expand-file-name thing dir)))
                      (when (yes-or-no-p (concat "Delete file " path "? "))
                        (delete-file path) t)))))))
-        (when (funcall action)
+        (when (let (;; Allow `yes-or-no-p' to work and don't let it
+                    ;; `icomplete-exhibit' anything.
+                    (enable-recursive-minibuffers t)
+                    (icomplete-mode nil))
+                (funcall action))
           (completion--cache-all-sorted-completions
            (icomplete--field-beg)
            (icomplete--field-end)



reply via email to

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