diff options
author | Daniel Colascione <dancol@dancol.org> | 2018-06-09 13:14:11 -0700 |
---|---|---|
committer | Daniel Colascione <dancol@dancol.org> | 2018-06-09 13:18:17 -0700 |
commit | a66a3b7f51792aa2a91c16ed9121d7e9efea4536 (patch) | |
tree | c79ee642c09cb0f964167d034374e28b991a85b3 /lisp/emacs-lisp/helper.el | |
parent | 66ad98685afa9ee3bc1ec2aeb116f41a2a7875b3 (diff) | |
download | emacs-a66a3b7f51792aa2a91c16ed9121d7e9efea4536.tar.gz emacs-a66a3b7f51792aa2a91c16ed9121d7e9efea4536.tar.bz2 emacs-a66a3b7f51792aa2a91c16ed9121d7e9efea4536.zip |
Improve robustness xterm event processing
We used to treat the start of a focus-in, focus-out, and the start of
a paste sequence as normal events bound in global-map, but this
approach produces problems when we recognize events in the middle of
actions that don't immediately dispatch to the command loop.
Now we handle these events internally inside read-key, translating the
focus events to nothing and paste-start into an xterm-paste event that
neatly encapsulates the entire paste sequence.
* lisp/term/xterm.el:
(xterm-paste): Accept an event argument; insert text from event.
(xterm-translate-focus-in,xterm-translate-focus-out)
(xterm-translate-bracketed-paste): New functions.
(xterm-handle-focus-in,xterm-handle-focus-out): Remove.
(xterm-rxvt-function-map): Bind new translation functions.
Diffstat (limited to 'lisp/emacs-lisp/helper.el')
0 files changed, 0 insertions, 0 deletions