]> git.eshelyaron.com Git - emacs.git/commitdiff
; Make Eshell completion test more robust
authorEshel Yaron <me@eshelyaron.com>
Sat, 20 Jan 2024 12:27:08 +0000 (13:27 +0100)
committerEshel Yaron <me@eshelyaron.com>
Sat, 20 Jan 2024 12:27:08 +0000 (13:27 +0100)
test/lisp/eshell/em-cmpl-tests.el

index f778816c4e11511172e0fc47e2cbaa83c5a4f26d..6f75084858172ab8af91cb75d9b54bcdcfe57211 100644 (file)
@@ -183,8 +183,10 @@ ACTUAL and EXPECTED should both be lists of strings."
      (should-not (get-buffer-window "*Completions*"))
      ;; Now try completing again.
      (let ((minibuffer-message-timeout 0)
-           (inhibit-message t))
-       (completion-at-point))
+           (inhibit-message t)
+           (last-command 'completion-at-point)
+           (completion-auto-help t))
+       (call-interactively #'completion-at-point))
      ;; This time, we should display the completions buffer.
      (should (get-buffer-window "*Completions*")))))