unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#6845: 24.0.50; Mouse-2 behavior inconsistant in ansi-term mode
@ 2010-08-11 15:23 Matthieu Moy
  2011-08-21 17:57 ` Chong Yidong
  0 siblings, 1 reply; 2+ messages in thread
From: Matthieu Moy @ 2010-08-11 15:23 UTC (permalink / raw)
  To: 6845

Hi,

In most buffers, mouse-2 now pastes the content of the X primary
selection. In ansi-term buffers, where mouse-2 is bound to
term-mouse-paste, it pastes the content of the kill ring instead.

This is very confusing, since it means that a click on the same button
of the mouse will paste different result in different buffers.

It also means the usual "select to copy, middle-click to paste"
behavior usual to unix users doesn't work as it is in term mode.

Steps to reproduce:

emacs -Q
M-x ansi-term RET RET
kill a piece of text (C-k or so)
select a piece of text
mouse-2 in ansi-term buffer
mouse-2 in any other buffer

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#6845: 24.0.50; Mouse-2 behavior inconsistant in ansi-term mode
  2010-08-11 15:23 bug#6845: 24.0.50; Mouse-2 behavior inconsistant in ansi-term mode Matthieu Moy
@ 2011-08-21 17:57 ` Chong Yidong
  0 siblings, 0 replies; 2+ messages in thread
From: Chong Yidong @ 2011-08-21 17:57 UTC (permalink / raw)
  To: Matthieu Moy; +Cc: Dan Nicolaescu, 6845

Matthieu Moy <Matthieu.Moy@grenoble-inp.fr> writes:

> In most buffers, mouse-2 now pastes the content of the X primary
> selection. In ansi-term buffers, where mouse-2 is bound to
> term-mouse-paste, it pastes the content of the kill ring instead.
>
> This is very confusing, since it means that a click on the same button
> of the mouse will paste different result in different buffers.
>
> It also means the usual "select to copy, middle-click to paste"
> behavior usual to unix users doesn't work as it is in term mode.

This sounds like a problem indeed.  I changed term-mouse-paste to yank
the primary selection.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-21 17:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-08-11 15:23 bug#6845: 24.0.50; Mouse-2 behavior inconsistant in ansi-term mode Matthieu Moy
2011-08-21 17:57 ` Chong Yidong

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).