(when (stringp pred) (setq pred (read pred)))
(minibuffer--add-completions-predicate pred (prin1-to-string pred)))
+(put 'minibuffer-add-completion-predicate 'minibuffer-action
+ (cons (lambda (p)
+ (with-current-buffer minibuffer--original-buffer
+ (minibuffer-add-completion-predicate p)))
+ "add"))
+
(defun minibuffer-narrow-completions-to-current (arg)
"Restrict completion candidates according to current minibuffer input.
ARG is the numeric prefix argument. When ARG is negative,