# HG changeset patch # User Richard M. Stallman # Date 820600513 0 # Node ID 3a5b5eeba5b50563c3d42df25388875d7d326213 # Parent 30b732ff2de2fabdb9ecb71b27e0c03f3b1429f6 (xterm-mouse-translate, xterm-mouse-event): Variable `last' renamed to `xterm-mouse-last'. (xterm-mouse-last): Add defvar. diff -r 30b732ff2de2 -r 3a5b5eeba5b5 lisp/xt-mouse.el --- a/lisp/xt-mouse.el Tue Jan 02 08:57:04 1996 +0000 +++ b/lisp/xt-mouse.el Tue Jan 02 16:35:13 1996 +0000 @@ -38,12 +38,14 @@ (define-key function-key-map "\e[M" 'xterm-mouse-translate) +(defvar xterm-mouse-last) + (defun xterm-mouse-translate (event) ;; Read a click and release event from XTerm. (save-excursion (save-window-excursion (deactivate-mark) - (let* ((last) + (let* ((xterm-mouse-last) (down (xterm-mouse-event)) (down-command (nth 0 down)) (down-data (nth 1 down)) @@ -73,7 +75,7 @@ ;; Generate a drag event. (if (symbolp down-where) 0 - (list (intern (concat "drag-mouse-" (+ 1 last))) + (list (intern (concat "drag-mouse-" (+ 1 xterm-mouse-last))) down-data click-data)) ))) (if (and (symbolp down-where) @@ -115,8 +117,8 @@ (point)) where)) (mouse (intern (if (eq type 3) - (concat "mouse-" (+ 1 last)) - (setq last type) + (concat "mouse-" (+ 1 xterm-mouse-last)) + (setq xterm-mouse-last type) (concat "down-mouse-" (+ 1 type)))))) (setq xterm-mouse-x x xterm-mouse-y y)