summaryrefslogtreecommitdiff
path: root/lisp/term.el
diff options
context:
space:
mode:
authorLars Ingebrigtsen <larsi@gnus.org>2021-09-04 08:59:14 +0200
committerLars Ingebrigtsen <larsi@gnus.org>2021-09-04 09:12:10 +0200
commitc6b1f8daa74b2a7061ba8a378c92bdab870c25f4 (patch)
tree62c65db2c71e1211c605ea3583f2d6650a3ed13d /lisp/term.el
parentca7e76c6f98cb09a686bcda7890ca10fd374fb4f (diff)
downloademacs-c6b1f8daa74b2a7061ba8a378c92bdab870c25f4.tar.gz
Make `M-x term' offer completion
* lisp/term.el (term): Have completion in the prompt (bug#21296).
Diffstat (limited to 'lisp/term.el')
-rw-r--r--lisp/term.el8
1 files 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.
\\<term-raw-map>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)