1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-30 12:21:25 -08:00

Make `M-x term' offer completion

* lisp/term.el (term): Have completion in the prompt (bug#21296).
This commit is contained in:
Lars Ingebrigtsen 2021-09-04 08:59:14 +02:00
parent ca7e76c6f9
commit c6b1f8daa7

View file

@ -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)