From: Eli Zaretskii Date: Mon, 30 Nov 2020 18:44:11 +0000 (+0200) Subject: Don't show in 'view-lossage' responses to xterm feature queries X-Git-Tag: emacs-27.1.90~25 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=3e6525d69f0de68fe2305f8e2102c8a5ce42f671;p=emacs.git Don't show in 'view-lossage' responses to xterm feature queries * lisp/term/xterm.el (xterm--read-event-for-query): Prevent recording the characters read as the xterm response to a query, so as not to show them in 'view-lossage'. (Bug#44908) --- diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el index 1a727e3933e..709410064b1 100644 --- a/lisp/term/xterm.el +++ b/lisp/term/xterm.el @@ -767,7 +767,8 @@ Can be nil to mean \"no timeout\".") By not redisplaying right away for xterm queries, we can avoid unsightly flashing during initialization. Give up and redisplay anyway if we've been waiting a little while." - (let ((start-time (current-time))) + (let ((start-time (current-time)) + (inhibit--record-char t)) (or (let ((inhibit-redisplay t)) (read-event nil nil xterm-query-redisplay-timeout)) (read-event nil nil