From e531f97247bc7f28d20cd9d4f468aa062924e117 Mon Sep 17 00:00:00 2001 From: "Ryan C. Thompson" Date: Wed, 26 Jul 2017 11:09:42 -0700 Subject: [PATCH 1/2] Fix a bug in completion-table-with-predicate If strict was nil and pred2 was nil, then it acted like strict was non-nil. --- lisp/minibuffer.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index e5b1029c01..bb8cf21ad2 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -392,7 +392,7 @@ (defun completion-table-with-predicate (table pred1 strict string pred2 action) (and (funcall pred1 x) (funcall pred2 x))))) ;; If completion failed and we're not applying pred1 strictly, try ;; again without pred1. - (and (not strict) pred1 pred2 + (and (not strict) pred1 (complete-with-action action table string pred2)))))) (defun completion-table-in-turn (&rest tables) -- 2.11.1