From: Lars Ingebrigtsen Date: Sat, 5 Sep 2020 21:11:43 +0000 (+0200) Subject: Fix up previous icomplete-show-matches-on-no-input change X-Git-Tag: emacs-28.0.90~6229 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=585fe00557489e49188b6a301f001ef01ff15dcb;p=emacs.git Fix up previous icomplete-show-matches-on-no-input change * lisp/icomplete.el (icomplete-completions): Ensure that the default value is cleared (bug#43120). --- diff --git a/lisp/icomplete.el b/lisp/icomplete.el index 8a68df876c1..ba266cfbfe9 100644 --- a/lisp/icomplete.el +++ b/lisp/icomplete.el @@ -715,7 +715,7 @@ matches exist." (setq prospects (nreverse prospects)) ;; Return the first match if the user hits enter. (when icomplete-show-matches-on-no-input - (setq completion-content-when-empty (car prospects))) + (setq-local completion-content-when-empty (car prospects))) ;; Decorate first of the prospects. (when prospects (let ((first (copy-sequence (pop prospects))))