diff options
author | Jared Finder <jared@finder.org> | 2025-01-01 22:36:25 -0800 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2025-01-04 15:14:36 +0200 |
commit | ba6429081a8560979136cf6fa40ff3f3c4859a53 (patch) | |
tree | 7b07bc4252226c0afe3c7558b7537ff08abf5f4d /lisp/emacs-lisp/regexp-opt.el | |
parent | b63ba892f9b28062a4ece9db7e4abd79a88ceea6 (diff) | |
download | emacs-ba6429081a8560979136cf6fa40ff3f3c4859a53.tar.gz emacs-ba6429081a8560979136cf6fa40ff3f3c4859a53.tar.bz2 emacs-ba6429081a8560979136cf6fa40ff3f3c4859a53.zip |
Don't always enable xterm-mouse-mode (bug#74833)
Many terminals set the environment variable TERM to "xterm" even when they
don't support all functionality in xterm. This means that enabling
xterm-mouse-mode can break critical editing workflows like copy/paste. This
adds checks for the specific terminal Emacs is run in and only enables
xterm-mouse-mode on terminals knows to support all critical editing workflows.
* etc/NEWS: Update announcement
* lisp/term/xterm.el (xterm--auto-xt-mouse-allowed-names)
(xterm--auto-xt-mouse-allowed-types): New variables to control
what terminals automatically enable xterm-mouse-mode.
(xterm--report-background-handler, xterm--version-handler): Use
xterm--read-string.
(xterm--read-string, xterm--query-name-and-version): New
function.
(xterm--init): Check what terminal is running and if
xterm-mouse-mode was manually called.
* lisp/xt-mouse.el (xterm-mouse-mode-called): New variable.
(xterm-mouse-mode): Set xterm-mouse-mode-called. Mention
automatic call by xterm--init. Delete outdated comment text.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
0 files changed, 0 insertions, 0 deletions