aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2007-10-18 19:07:49 +0000
committerStefan Monnier2007-10-18 19:07:49 +0000
commit4387d9f4f93d1614c1718b797f0375e96f84c353 (patch)
treed3b32c65e3515308133b6f1644c83076a7d391ce
parentaf020a0464b03976a56041e25087f132e7d38160 (diff)
downloademacs-4387d9f4f93d1614c1718b797f0375e96f84c353.tar.gz
emacs-4387d9f4f93d1614c1718b797f0375e96f84c353.zip
Don't require xt-mouse.
(terminal-init-xterm): Run terminal-init-xterm-hook rather than calling turn-on-xterm-mouse-tracking-on-terminal directly.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/term/xterm.el12
2 files changed, 8 insertions, 8 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 1714b9e850d..15309eac955 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,9 @@
12007-10-18 Stefan Monnier <monnier@iro.umontreal.ca> 12007-10-18 Stefan Monnier <monnier@iro.umontreal.ca>
2 2
3 * term/xterm.el: Don't require xt-mouse.
4 (terminal-init-xterm): Run terminal-init-xterm-hook rather than
5 calling turn-on-xterm-mouse-tracking-on-terminal directly.
6
3 * xt-mouse.el: Don't change the global function-key-map anny more. 7 * xt-mouse.el: Don't change the global function-key-map anny more.
4 (xterm-mouse-mode): Use terminal-init-xterm-hook. 8 (xterm-mouse-mode): Use terminal-init-xterm-hook.
5 Don't use after-make-frame-functions now that term/xterm.el calls 9 Don't use after-make-frame-functions now that term/xterm.el calls
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el
index 1c4b60706aa..a60aa90255f 100644
--- a/lisp/term/xterm.el
+++ b/lisp/term/xterm.el
@@ -27,8 +27,6 @@
27 27
28;;; Code: 28;;; Code:
29 29
30(eval-when-compile (require 'xt-mouse))
31
32(defvar xterm-function-map 30(defvar xterm-function-map
33 (let ((map (make-sparse-keymap))) 31 (let ((map (make-sparse-keymap)))
34 32
@@ -469,12 +467,8 @@
469 ;; This recomputes all the default faces given the colors we've just set up. 467 ;; This recomputes all the default faces given the colors we've just set up.
470 (tty-set-up-initial-frame-faces) 468 (tty-set-up-initial-frame-faces)
471 469
472 (when xterm-mouse-mode
473 (turn-on-xterm-mouse-tracking-on-terminal
474 (frame-terminal (selected-frame))))
475
476 ;; Try to turn on the modifyOtherKeys feature on modern xterms. 470 ;; Try to turn on the modifyOtherKeys feature on modern xterms.
477 ;; When it is turned on much more key bindings work: things like 471 ;; When it is turned on many more key bindings work: things like
478 ;; C-. C-, etc. 472 ;; C-. C-, etc.
479 ;; To do that we need to find out if the current terminal supports 473 ;; To do that we need to find out if the current terminal supports
480 ;; modifyOtherKeys. At this time only xterm does. 474 ;; modifyOtherKeys. At this time only xterm does.
@@ -506,7 +500,9 @@
506 ;; need to deal with modify-other-keys. 500 ;; need to deal with modify-other-keys.
507 (push (frame-terminal (selected-frame)) 501 (push (frame-terminal (selected-frame))
508 xterm-modify-other-keys-terminal-list) 502 xterm-modify-other-keys-terminal-list)
509 (xterm-turn-on-modify-other-keys))))))) 503 (xterm-turn-on-modify-other-keys))))))
504
505 (run-hooks 'terminal-init-xterm-hook))
510 506
511;; Set up colors, for those versions of xterm that support it. 507;; Set up colors, for those versions of xterm that support it.
512(defvar xterm-standard-colors 508(defvar xterm-standard-colors