From c5f894821d04f6fbaf3b8c62308692439ec598d3 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Sun, 8 Mar 2009 19:33:06 +0000 Subject: [PATCH] (term-send-raw): Deactivate the mark first (Bug#2449). --- lisp/term.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/term.el b/lisp/term.el index e9ece6203bc..3d21d8b6fc0 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -1182,7 +1182,8 @@ Entry to this mode runs the hooks on `term-mode-hook'." "Send the last character typed through the terminal-emulator without any interpretation." (interactive) - ;; Convert `return' to C-m, etc. + (deactivate-mark) + ;; Convert `return' to C-m, etc. (when (and (symbolp last-input-event) (get last-input-event 'ascii-character)) (setq last-input-event (get last-input-event 'ascii-character))) -- 2.39.5