# HG changeset patch # User Chong Yidong # Date 1236540786 0 # Node ID 1d22159e6128a966361942f004c061bc3a4e6d2c # Parent 1feaf8f29db11dd132aa5c1eac1cc0e85d8fa111 (term-send-raw): Deactivate the mark first (Bug#2449). diff -r 1feaf8f29db1 -r 1d22159e6128 lisp/term.el --- a/lisp/term.el Sun Mar 08 19:32:55 2009 +0000 +++ b/lisp/term.el Sun Mar 08 19:33:06 2009 +0000 @@ -1182,7 +1182,8 @@ "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)))