diff options
author | João Távora <joaotavora@gmail.com> | 2019-11-19 23:53:10 +0000 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2019-11-19 23:55:54 +0000 |
commit | aa79f4e8c635537c50a50db211542c0f41443ae2 (patch) | |
tree | 235700e1a0994503b0cd18fc9d548a5c683533ac /lisp/icomplete.el | |
parent | a76a1d0c0b5c63bbed4eeeb7aa87269621956559 (diff) | |
download | emacs-aa79f4e8c635537c50a50db211542c0f41443ae2.tar.gz |
* lisp/icomplete.el (icomplete-fido-kill): Unbreak yes-or-no-p usage
Discussed in the context of bug#19064, bug#17272.
Diffstat (limited to 'lisp/icomplete.el')
-rw-r--r-- | lisp/icomplete.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/icomplete.el b/lisp/icomplete.el index 8410ca5c3e1..16167ea21e1 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) |