Commit aa79f4e8 authored by João Távora's avatar João Távora

* lisp/icomplete.el (icomplete-fido-kill): Unbreak yes-or-no-p usage

Discussed in the context of bug#19064, bug#17272.
parent a76a1d0c
Pipeline #4104 failed with stage
in 72 minutes and 7 seconds
...@@ -253,7 +253,11 @@ require user confirmation." ...@@ -253,7 +253,11 @@ require user confirmation."
(path (expand-file-name thing dir))) (path (expand-file-name thing dir)))
(when (yes-or-no-p (concat "Delete file " path "? ")) (when (yes-or-no-p (concat "Delete file " path "? "))
(delete-file path) t))))))) (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 (completion--cache-all-sorted-completions
(icomplete--field-beg) (icomplete--field-beg)
(icomplete--field-end) (icomplete--field-end)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment