diff options
| author | Glenn Morris | 2011-06-12 13:15:02 -0700 |
|---|---|---|
| committer | Glenn Morris | 2011-06-12 13:15:02 -0700 |
| commit | 422e69f6b6ba3247ccf2d9c2228286943b44387c (patch) | |
| tree | 2267fa7fc0208cd5205b44f1c6270c3ca661dd49 | |
| parent | 7cb363eba045bddc743a0b9ea8113a844fe11cf2 (diff) | |
| download | emacs-422e69f6b6ba3247ccf2d9c2228286943b44387c.tar.gz emacs-422e69f6b6ba3247ccf2d9c2228286943b44387c.zip | |
* term/xterm.el (terminal-init-xterm): More simplifications.
| -rw-r--r-- | lisp/term/xterm.el | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el index b0fe443ca59..187d8ea0550 100644 --- a/lisp/term/xterm.el +++ b/lisp/term/xterm.el | |||
| @@ -488,7 +488,7 @@ features. Set to nil to skip the checks." | |||
| 488 | (when xterm-extra-capabilities | 488 | (when xterm-extra-capabilities |
| 489 | (let ((coding-system-for-read 'binary) | 489 | (let ((coding-system-for-read 'binary) |
| 490 | (chr nil) | 490 | (chr nil) |
| 491 | (str nil) | 491 | (str "") |
| 492 | (background-regex | 492 | (background-regex |
| 493 | "11;rgb:\\([a-f0-9]+\\)/\\([a-f0-9]+\\)/\\([a-f0-9]+\\)") | 493 | "11;rgb:\\([a-f0-9]+\\)/\\([a-f0-9]+\\)/\\([a-f0-9]+\\)") |
| 494 | (recompute-faces nil) | 494 | (recompute-faces nil) |
| @@ -525,10 +525,7 @@ features. Set to nil to skip the checks." | |||
| 525 | (while (not (equal (setq chr (read-event nil nil 2)) ?c)) | 525 | (while (not (equal (setq chr (read-event nil nil 2)) ?c)) |
| 526 | (setq str (concat str (string chr)))) | 526 | (setq str (concat str (string chr)))) |
| 527 | (if (string-match ">0;\\([0-9]+\\);0" str) | 527 | (if (string-match ">0;\\([0-9]+\\);0" str) |
| 528 | (setq version | 528 | (setq version (string-to-number (match-string 1 str))))) |
| 529 | (string-to-number | ||
| 530 | (substring str (match-beginning 1) (match-end 1)))))) | ||
| 531 | |||
| 532 | ;; 2. If reportBackground is known to be supported, or the | 529 | ;; 2. If reportBackground is known to be supported, or the |
| 533 | ;; version is 242 or higher, assume the xterm supports | 530 | ;; version is 242 or higher, assume the xterm supports |
| 534 | ;; reporting the background color (TODO: maybe earlier | 531 | ;; reporting the background color (TODO: maybe earlier |
| @@ -552,8 +549,7 @@ features. Set to nil to skip the checks." | |||
| 552 | 549 | ||
| 553 | ;; 3. If modifyOtherKeys is known to be supported or the | 550 | ;; 3. If modifyOtherKeys is known to be supported or the |
| 554 | ;; version is 216 (the version when modifyOtherKeys was | 551 | ;; version is 216 (the version when modifyOtherKeys was |
| 555 | ;; introduced) or higher, initialize the modifyOtherKeys | 552 | ;; introduced) or higher, initialize the modifyOtherKeys support. |
| 556 | ;; support. | ||
| 557 | (if (or (memq 'modifyOtherKeys given-capabilities) | 553 | (if (or (memq 'modifyOtherKeys given-capabilities) |
| 558 | (and (memq 'modifyOtherKeys tocheck-capabilities) | 554 | (and (memq 'modifyOtherKeys tocheck-capabilities) |
| 559 | version | 555 | version |