]> git.eshelyaron.com Git - emacs.git/commitdiff
Adapt test in minibuffer-tests.el
authorMichael Albinus <michael.albinus@gmx.de>
Sat, 19 Aug 2023 08:11:32 +0000 (10:11 +0200)
committerMichael Albinus <michael.albinus@gmx.de>
Sat, 19 Aug 2023 08:11:32 +0000 (10:11 +0200)
* test/lisp/minibuffer-tests.el (test-completion-all-sorted-completions):
Simplify function declaration.

test/lisp/minibuffer-tests.el

index a67fc5557722cbba692c27df18f5cda465a5ae19..ff58d35eb3e77b2285db303818fc487ae36ba3f5 100644 (file)
 (defun test-completion-all-sorted-completions (base def history-var history-list)
   (with-temp-buffer
     (insert base)
-    (cl-letf (((symbol-function #'minibufferp) (lambda (&rest _) t)))
+    (cl-letf (((symbol-function #'minibufferp) #'always))
       (let ((completion-styles '(basic))
             (completion-category-defaults nil)
             (completion-category-overrides nil)