diff options
author | João Távora <joaotavora@gmail.com> | 2020-09-06 18:17:13 +0100 |
---|---|---|
committer | João Távora <joaotavora@gmail.com> | 2020-09-08 09:47:34 +0100 |
commit | 627e9c191ea57fa7ba69f30a98207c782b84bcdd (patch) | |
tree | 1b3b3876f99d2d23357009271a41c60d73d775b1 /lisp/minibuffer.el | |
parent | 6ce08a165cb11b8d62738c85fc2c7af8c022f6d5 (diff) | |
download | emacs-627e9c191ea57fa7ba69f30a98207c782b84bcdd.tar.gz |
Revert two commits for bug#19032
This reverts:
- commit 585fe00557489e49188b6a301f001ef01ff15dcb, which is titled
"Fix up previous icomplete-show-matches-on-no-input change"
- commit 1b8d369c381b5a63e40529d0d95dfa75d94b8e09, which is titled
"Change icomplete-show-matches-on-no-input behavior".
A simpler, less intrusive fix follows shortly after this commit.
Diffstat (limited to 'lisp/minibuffer.el')
-rw-r--r-- | lisp/minibuffer.el | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 864726e3cc0..6deb1eb0778 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -1119,7 +1119,6 @@ completion candidates than this number." (defvar-local completion-all-sorted-completions nil) (defvar-local completion--all-sorted-completions-location nil) (defvar completion-cycling nil) ;Function that takes down the cycling map. -(defvar completion-content-when-empty nil) (defvar completion-fail-discreetly nil "If non-nil, stay quiet when there is no match.") @@ -1504,13 +1503,8 @@ If `minibuffer-completion-confirm' is `confirm-after-completion', COMPLETION-FUNCTION is called if the current buffer's content does not appear to be a match." (cond - ;; Allow user to specify null string. In the case that - ;; `completion-content-when-empty' is set, use that instead. - ((= beg end) - (when completion-content-when-empty - (completion--replace beg end completion-content-when-empty)) - (funcall exit-function)) - + ;; Allow user to specify null string + ((= beg end) (funcall exit-function)) ((test-completion (buffer-substring beg end) minibuffer-completion-table minibuffer-completion-predicate) |