emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c6b1f8d 2/3: Make `M-x term' offer completion


From: Lars Ingebrigtsen
Subject: master c6b1f8d 2/3: Make `M-x term' offer completion
Date: Sat, 4 Sep 2021 03:12:16 -0400 (EDT)

branch: master
commit c6b1f8daa74b2a7061ba8a378c92bdab870c25f4
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 b3870a8..0bcd095 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]