From: Chong Yidong Date: Sun, 8 Mar 2009 19:33:06 +0000 (+0000) Subject: (term-send-raw): Deactivate the mark first (Bug#2449). X-Git-Tag: emacs-pretest-23.0.92~307 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c5f894821d04f6fbaf3b8c62308692439ec598d3;p=emacs.git (term-send-raw): Deactivate the mark first (Bug#2449). --- 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)))