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:
parent
ca7e76c6f9
commit
c6b1f8daa7
1 changed files with 4 additions and 4 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue