bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#2449: 23.0.90; Disabling transient-mark-mode doesn't work well in an


From: Chong Yidong
Subject: bug#2449: 23.0.90; Disabling transient-mark-mode doesn't work well in ansi-term
Date: Fri, 06 Mar 2009 23:18:22 -0500

> M-x transient-mark-mode RET (to disable it)
> M-x ansi-term RET RET
> ls (at the shell prompt)
> select text in the *ansi-term* buffer with the mouse.
> ls
>
> Expected behavior: the selection disapears.
>
> Obtained behavior: the selection follows the cursor, at the prompt.

I think term-send-raw should deactivate the mark.  Dan, what do you
think?

*** trunk/lisp/term.el.~1.112.~ 2009-02-19 20:32:53.000000000 -0500
--- trunk/lisp/term.el  2009-03-06 23:14:00.000000000 -0500
***************
*** 1182,1187 ****
--- 1182,1188 ----
    "Send the last character typed through the terminal-emulator
  without any interpretation."
    (interactive)
+   (deactivate-mark)
   ;; Convert `return' to C-m, etc.
    (when (and (symbolp last-input-event)
             (get last-input-event 'ascii-character))

Diff finished.  Fri Mar  6 23:14:01 2009






reply via email to

[Prev in Thread] Current Thread [Next in Thread]