[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#21609: bug#24837: bug#21609: bug#24837: 26.0.50; term.el: In char mo
bug#21609: bug#24837: bug#21609: bug#24837: 26.0.50; term.el: In char mode, displayed and executed commands can differ
Mon, 4 Sep 2017 23:59:08 +1200
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
On 04/09/17 21:55, Phil Sainty wrote:
> We could automatically switch to term-line-mode upon mouse clicks,
Actually, that's probably a non-starter -- if you paste via the mouse
whilst in char mode, it is reasonable (and perhaps necessary) that the
paste will execute in char mode.
However the simpler approach of using the following for both pre-command
and post-command hooks whilst in char mode doesn't seem awful:
(unless (mouse-event-p last-command-event)
Mouse events aren't inhibited, but as soon as the keyboard is involved
we jump to where we're supposed to be.
Potentially that's a reasonable compromise.