# HG changeset patch # User Dan Nicolaescu # Date 1190012063 0 # Node ID b3e66fa9fc669e1665de9c41b54c3264e32c8c7b # Parent 2982779e4c52fcb33b9e507131167929f4c8aad6 Delete add-hook calls that were moved to xterm-mouse-mode. (xterm-mouse-mode): Disable resume-tty-functions, explain why it does not work. diff -r 2982779e4c52 -r b3e66fa9fc66 lisp/ChangeLog --- a/lisp/ChangeLog Mon Sep 17 06:34:16 2007 +0000 +++ b/lisp/ChangeLog Mon Sep 17 06:54:23 2007 +0000 @@ -2,6 +2,8 @@ * xt-mouse.el: Delete add-hook calls that were moved to xterm-mouse-mode. + (xterm-mouse-mode): Disable resume-tty-functions, explain why it + does not work. 2007-09-17 Richard Stallman diff -r 2982779e4c52 -r b3e66fa9fc66 lisp/xt-mouse.el --- a/lisp/xt-mouse.el Mon Sep 17 06:34:16 2007 +0000 +++ b/lisp/xt-mouse.el Mon Sep 17 06:54:23 2007 +0000 @@ -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)