aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1991-06-28 17:24:57 +0000
committerJim Blandy1991-06-28 17:24:57 +0000
commit84545e78c3c53148d033d00386d9c1f4ff50f03c (patch)
treed78c7ad78af31531d2583e7d8e07e61f3acdf1cf
parent3cfe6dfda983d901b4d0f0e52e5034e1c57ecc8f (diff)
downloademacs-84545e78c3c53148d033d00386d9c1f4ff50f03c.tar.gz
emacs-84545e78c3c53148d033d00386d9c1f4ff50f03c.zip
*** empty log message ***
-rw-r--r--lisp/mouse.el44
-rw-r--r--lisp/term/x-win.el3
2 files changed, 24 insertions, 23 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index 5ca1c02c252..533731290ef 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -304,30 +304,30 @@ The text before the mouse position, on the same line, is used as the prefix."
304 (define-key map mouse-button-middle 'mouse-scroll-right-full)) 304 (define-key map mouse-button-middle 'mouse-scroll-right-full))
305 305
306 306
307;;;;
308;;;; Here are experimental things being tested. Mouse events
309;;;; are of the form:
310;;;; ((x y) window screen-part key-sequence timestamp)
307;; 311;;
308;; Here are experimental things being tested. Mouse events 312;;;;
309;; are of the form: 313;;;; Dynamically track mouse coordinates
310;; ((x y) window screen-part key-sequence timestamp) 314;;;;
311
312;;
313;; Dynamically track mouse coordinates
314;; 315;;
315 316;;(defun track-mouse (event)
316(defun track-mouse (event) 317;; "Track the coordinates, absolute and relative, of the mouse."
317 "Track the coordinates, absolute and relative, of the mouse." 318;; (interactive "@e")
318 (interactive "@e") 319;; (while mouse-grabbed
319 (while mouse-grabbed 320;; (let* ((pos (read-mouse-position (selected-screen)))
320 (let* ((pos (read-mouse-position (selected-screen))) 321;; (abs-x (car pos))
321 (abs-x (car pos)) 322;; (abs-y (cdr pos))
322 (abs-y (cdr pos)) 323;; (relative-coordinate (coordinates-in-window-p
323 (relative-coordinate (coordinates-in-window-p 324;; (list (car pos) (cdr pos))
324 (list (car pos) (cdr pos)) 325;; (selected-window))))
325 (selected-window)))) 326;; (if (consp relative-coordinate)
326 (if (consp relative-coordinate) 327;; (message "mouse: [%d %d], (%d %d)" abs-x abs-y
327 (message "mouse: [%d %d], (%d %d)" abs-x abs-y 328;; (car relative-coordinate)
328 (car relative-coordinate) 329;; (car (cdr relative-coordinate)))
329 (car (cdr relative-coordinate))) 330;; (message "mouse: [%d %d]" abs-x abs-y)))))
330 (message "mouse: [%d %d]" abs-x abs-y)))))
331 331
332;; 332;;
333;; Dynamically put a box around the line indicated by point 333;; Dynamically put a box around the line indicated by point
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index 974019b8aac..833ccf15800 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -213,7 +213,8 @@ are left in ARGS."
213 (foreground-color "foreground" "black") 213 (foreground-color "foreground" "black")
214 (mouse-color "mouse" "black") 214 (mouse-color "mouse" "black")
215 (cursor-color "cursor" "black") 215 (cursor-color "cursor" "black")
216 (border-color "border" "black")))) 216 (border-color "border" "black")))
217 (setq x-screen-defaults screen-default-alist))
217 218
218 219
219;; This is the function which creates the first X window. It is called 220;; This is the function which creates the first X window. It is called