From: Lars Ingebrigtsen Date: Thu, 4 Nov 2021 18:02:23 +0000 (+0100) Subject: Don't have `M-x term' call `term-mode' twice X-Git-Tag: emacs-29.0.90~3671^2~249 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bf47bc8b94de258bb88535c3b4e4318b4fdf417f;p=emacs.git Don't have `M-x term' call `term-mode' twice * lisp/term.el (term): Don't call `term-mode' twice (bug#51589). --- diff --git a/lisp/term.el b/lisp/term.el index 530b93484ed..698bef08b2d 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -1531,7 +1531,6 @@ commands to use in that buffer. (getenv "ESHELL") shell-file-name)))) (set-buffer (make-term "terminal" program)) - (term-mode) (term-char-mode) (switch-to-buffer "*terminal*"))