]> git.eshelyaron.com Git - emacs.git/commitdiff
(term-send-raw): Deactivate the mark first (Bug#2449).
authorChong Yidong <cyd@stupidchicken.com>
Sun, 8 Mar 2009 19:33:06 +0000 (19:33 +0000)
committerChong Yidong <cyd@stupidchicken.com>
Sun, 8 Mar 2009 19:33:06 +0000 (19:33 +0000)
lisp/term.el

index e9ece6203bcc628dd065aeec28ad2088bbee4553..3d21d8b6fc03588b75fda3ccc330068a15ed68ba 100644 (file)
@@ -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)))