From c6b1f8daa74b2a7061ba8a378c92bdab870c25f4 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Sat, 4 Sep 2021 08:59:14 +0200 Subject: [PATCH] Make `M-x term' offer completion * lisp/term.el (term): Have completion in the prompt (bug#21296). --- lisp/term.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lisp/term.el b/lisp/term.el index b3870a814d2..0bcd095283a 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -1429,10 +1429,10 @@ The buffer is in Term mode; see `term-mode' for the commands to use in that buffer. \\Type \\[switch-to-buffer] to switch to another buffer." - (interactive (list (read-from-minibuffer "Run program: " - (or explicit-shell-file-name - (getenv "ESHELL") - shell-file-name)))) + (interactive (list (read-shell-command "Run program: " + (or explicit-shell-file-name + (getenv "ESHELL") + shell-file-name)))) (set-buffer (make-term "terminal" program)) (term-mode) (term-char-mode) -- 2.39.2