emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/xt-mouse.el,v


From: Dan Nicolaescu
Subject: [Emacs-diffs] Changes to emacs/lisp/xt-mouse.el,v
Date: Mon, 17 Sep 2007 06:54:25 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Dan Nicolaescu <dann>   07/09/17 06:54:25

Index: xt-mouse.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/xt-mouse.el,v
retrieving revision 1.48
retrieving revision 1.49
diff -u -b -r1.48 -r1.49
--- xt-mouse.el 17 Sep 2007 06:34:16 -0000      1.48
+++ xt-mouse.el 17 Sep 2007 06:54:23 -0000      1.49
@@ -214,8 +214,15 @@
        (add-hook 'delete-frame-functions 'xterm-mouse-handle-delete-frame)
        
        ;; Restore normal mouse behaviour outside Emacs.
-       (add-hook 'suspend-tty-functions 
-                 'turn-off-xterm-mouse-tracking-on-terminal)
+       
+       ;; Temporarily disable this hook, it does not work, when
+       ;; `suspend-tty' calls `suspend-tty-functions' the tty->output
+       ;; is already set to 0 so the 'send-string-to-terminal' call
+       ;; in `turn-off-xterm-mouse-tracking-on-terminal' will result
+       ;; in a crash.
+        ;; (add-hook 'suspend-tty-functions
+       ;;   'turn-off-xterm-mouse-tracking-on-terminal)
+
        (add-hook 'resume-tty-functions 
                  'turn-on-xterm-mouse-tracking-on-terminal)
        (add-hook 'suspend-hook 'turn-off-xterm-mouse-tracking)
@@ -227,8 +234,8 @@
     (remove-hook 'after-make-frame-functions 
                 'turn-on-xterm-mouse-tracking-on-terminal)
     (remove-hook 'delete-frame-functions 'xterm-mouse-handle-delete-frame)
-    (remove-hook 'suspend-tty-functions 
-                'turn-off-xterm-mouse-tracking-on-terminal)
+    ;; (remove-hook 'suspend-tty-functions 
+    ;;          'turn-off-xterm-mouse-tracking-on-terminal)
     (remove-hook 'resume-tty-functions 
                 'turn-on-xterm-mouse-tracking-on-terminal)
     (remove-hook 'suspend-hook 'turn-off-xterm-mouse-tracking)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]