]> git.eshelyaron.com Git - emacs.git/commitdiff
(xterm-mouse-translate, xterm-mouse-event):
authorRichard M. Stallman <rms@gnu.org>
Tue, 2 Jan 1996 16:35:13 +0000 (16:35 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 2 Jan 1996 16:35:13 +0000 (16:35 +0000)
Variable `last' renamed to `xterm-mouse-last'.
(xterm-mouse-last): Add defvar.

lisp/xt-mouse.el

index f7f0aaa4633964b9d6d5ef6f5a497efa6999f7a2..07211b08af330e4428fa9a966262b220f25735c2 100644 (file)
 
 (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)
                    (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)