diff options
| author | Dan Nicolaescu | 2007-09-15 00:27:38 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2007-09-15 00:27:38 +0000 |
| commit | aaeefd66c584817a062e0f1f73db23bb0c4744a4 (patch) | |
| tree | 8d3cbcabf19229b28b1593f588312db4161f8699 /lisp/term | |
| parent | da600aad2b78301836086568c4cb16a907ccf00e (diff) | |
| download | emacs-aaeefd66c584817a062e0f1f73db23bb0c4744a4.tar.gz emacs-aaeefd66c584817a062e0f1f73db23bb0c4744a4.zip | |
* xt-mouse.el (xterm-mouse-mode): Add hooks here not at the top
level. Remove the hooks when turning off the mode.
* term/xterm.el: Require xt-mouse at compile time.
(terminal-init-xterm): Turn on xterm mouse tracking for this
terminal if xterm-mouse-mode is enabled.
Diffstat (limited to 'lisp/term')
| -rw-r--r-- | lisp/term/xterm.el | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el index 8e803a4534b..de206c159c7 100644 --- a/lisp/term/xterm.el +++ b/lisp/term/xterm.el | |||
| @@ -27,6 +27,8 @@ | |||
| 27 | 27 | ||
| 28 | ;;; Code: | 28 | ;;; Code: |
| 29 | 29 | ||
| 30 | (eval-when-compile (require 'xt-mouse)) | ||
| 31 | |||
| 30 | (defvar xterm-function-map | 32 | (defvar xterm-function-map |
| 31 | (let ((map (make-sparse-keymap))) | 33 | (let ((map (make-sparse-keymap))) |
| 32 | 34 | ||
| @@ -455,7 +457,11 @@ | |||
| 455 | (xterm-register-default-colors) | 457 | (xterm-register-default-colors) |
| 456 | ;; This recomputes all the default faces given the colors we've just set up. | 458 | ;; This recomputes all the default faces given the colors we've just set up. |
| 457 | (tty-set-up-initial-frame-faces) | 459 | (tty-set-up-initial-frame-faces) |
| 458 | 460 | ||
| 461 | (when xterm-mouse-mode | ||
| 462 | (turn-on-xterm-mouse-tracking-on-terminal | ||
| 463 | (frame-terminal (selected-frame)))) | ||
| 464 | |||
| 459 | ;; Try to turn on the modifyOtherKeys feature on modern xterms. | 465 | ;; Try to turn on the modifyOtherKeys feature on modern xterms. |
| 460 | ;; When it is turned on much more key bindings work: things like | 466 | ;; When it is turned on much more key bindings work: things like |
| 461 | ;; C-. C-, etc. | 467 | ;; C-. C-, etc. |