]> git.eshelyaron.com Git - emacs.git/commitdiff
Make `M-x term' offer completion
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 4 Sep 2021 06:59:14 +0000 (08:59 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 4 Sep 2021 07:12:10 +0000 (09:12 +0200)
* lisp/term.el (term): Have completion in the prompt (bug#21296).

lisp/term.el

index b3870a814d213045122f0182f0ac7060e5e9c9fd..0bcd095283adbe05f61717e5376e28cbe198687a 100644 (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)