From 9db51acaf1991e638e07fc6a624265d4d64b74ae Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Sun, 12 Jun 2011 12:56:41 -0700 Subject: [PATCH] * term/xterm.el (terminal-init-xterm): `version' may be nil. (Bug#8838) --- lisp/ChangeLog | 4 ++++ lisp/term/xterm.el | 2 ++ 2 files changed, 6 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a72f2a89d99..23d6b097504 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,7 @@ +2011-06-12 Glenn Morris + + * term/xterm.el (terminal-init-xterm): `version' may be nil. (Bug#8838) + 2011-06-12 Martin Rudalics * window.el (window-safely-shrinkable-p): Restore function which diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el index c2b870bd535..e345b4dda8f 100644 --- a/lisp/term/xterm.el +++ b/lisp/term/xterm.el @@ -539,6 +539,7 @@ features. Set to nil to skip the checks." ;; versions do too...) (when (or (memq 'reportBackground given-capabilities) (and (memq 'reportBackground tocheck-capabilities) + version (>= version 242))) (send-string-to-terminal "\e]11;?\e\\") (when (equal (read-event nil nil 2) ?\e) @@ -559,6 +560,7 @@ features. Set to nil to skip the checks." ;; support. (when (or (memq 'modifyOtherKeys given-capabilities) (and (memq 'modifyOtherKeys tocheck-capabilities) + version (>= version 216))) (terminal-init-xterm-modify-other-keys)) -- 2.39.2