summaryrefslogtreecommitdiff
path: root/lisp/term/xterm.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2007-10-18 19:07:49 +0000
committerStefan Monnier <monnier@iro.umontreal.ca>2007-10-18 19:07:49 +0000
commit4387d9f4f93d1614c1718b797f0375e96f84c353 (patch)
treed3b32c65e3515308133b6f1644c83076a7d391ce /lisp/term/xterm.el
parentaf020a0464b03976a56041e25087f132e7d38160 (diff)
downloademacs-4387d9f4f93d1614c1718b797f0375e96f84c353.tar.gz
Don't require xt-mouse.
(terminal-init-xterm): Run terminal-init-xterm-hook rather than calling turn-on-xterm-mouse-tracking-on-terminal directly.
Diffstat (limited to 'lisp/term/xterm.el')
-rw-r--r--lisp/term/xterm.el12
1 files changed, 4 insertions, 8 deletions
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 @@
;;; Code:
-(eval-when-compile (require 'xt-mouse))
-
(defvar xterm-function-map
(let ((map (make-sparse-keymap)))
@@ -469,12 +467,8 @@
;; This recomputes all the default faces given the colors we've just set up.
(tty-set-up-initial-frame-faces)
- (when xterm-mouse-mode
- (turn-on-xterm-mouse-tracking-on-terminal
- (frame-terminal (selected-frame))))
-
;; Try to turn on the modifyOtherKeys feature on modern xterms.
- ;; When it is turned on much more key bindings work: things like
+ ;; When it is turned on many more key bindings work: things like
;; C-. C-, etc.
;; To do that we need to find out if the current terminal supports
;; modifyOtherKeys. At this time only xterm does.
@@ -506,7 +500,9 @@
;; need to deal with modify-other-keys.
(push (frame-terminal (selected-frame))
xterm-modify-other-keys-terminal-list)
- (xterm-turn-on-modify-other-keys)))))))
+ (xterm-turn-on-modify-other-keys))))))
+
+ (run-hooks 'terminal-init-xterm-hook))
;; Set up colors, for those versions of xterm that support it.
(defvar xterm-standard-colors