]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/term/xterm.el (xterm--version-handler): Work around for OSX
authorStefan Monnier <monnier@iro.umontreal.ca>
Fri, 13 Jun 2014 15:06:29 +0000 (11:06 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 13 Jun 2014 15:06:29 +0000 (11:06 -0400)
Terminal.app.

Fixes: debbugs:17607
lisp/ChangeLog
lisp/term/xterm.el

index ca2781b40f22cdf9aac36fa7bd37e811d7d57230..1ecc6a140abc625fdabe7bc9555eb092093828eb 100644 (file)
@@ -1,3 +1,8 @@
+2014-06-13  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * term/xterm.el (xterm--version-handler): Work around for OSX
+       Terminal.app (bug#17607).
+
 2014-06-08  Glenn Morris  <rgm@gnu.org>
 
        * startup.el (initial-buffer-choice): Doc fix.
index 52487f3bdedb49ba05e2c552aac1adcb9518b9f0..5d4112b24fdbd0757e3d83f616413659b9782a27 100644 (file)
@@ -509,6 +509,10 @@ The relevant features are:
           ;; Gnome terminal 3.6.1 reports 1;3406;0
           ;; Gnome terminal 2.32.1 reports 1;2802;0
           (setq version 200))
+        (when (equal (match-string 1 str) "83")
+          ;; OSX's Terminal.app (version 2.3 (309), which returns 83;40003;0)
+          ;; seems to also lack support for some of these (bug#17607).
+          (setq version 240))
         ;; If version is 242 or higher, assume the xterm supports
         ;; reporting the background color (TODO: maybe earlier
         ;; versions do too...)