(let* ((table (make-hash-table :test #'equal))
(beg-end (minibuffer--completion-boundaries))
(beg (car beg-end)) (end (cdr beg-end))
+ (current (buffer-substring beg end))
(start (minibuffer-prompt-end))
(input (buffer-substring start (point-max)))
(all (completion-all-completions
((symbolp cand) (symbol-name cand))
(t (car cand)))))
(not (gethash key table))))
- (concat "excluding matches for " (prin1-to-string input)))
+ (concat "excluding matches for " (prin1-to-string current)))
(minibuffer--add-completions-predicate
(lambda (cand &rest _)
(let ((key (cond
((symbolp cand) (symbol-name cand))
(t (car cand)))))
(gethash key table)))
- (concat "narrowing to " (prin1-to-string input))))))
+ (concat "narrowing to " (prin1-to-string current))))))
(defun minibuffer-widen-completions (&optional all)
"Remove restrictions on current minibuffer completions list.