]> git.eshelyaron.com Git - emacs.git/commitdiff
(t-mouse-make-event): Pass on mev's more informative
authorNick Roberts <nickrob@snap.net.nz>
Sun, 22 Apr 2007 09:08:14 +0000 (09:08 +0000)
committerNick Roberts <nickrob@snap.net.nz>
Sun, 22 Apr 2007 09:08:14 +0000 (09:08 +0000)
error message.

lisp/t-mouse.el

index eca2ce2b9fe10ddeb750092ce87f8a46ae189c2f..15521decd909f0df530c6c1d53bfa95d074f3626 100644 (file)
@@ -166,6 +166,8 @@ Also trim the accumulator by all the data used to build the event."
     (if (or (eq (car ob-pos) 'STILL) (eq (car ob-pos) '***) (not ob-pos))
        nil
       (setq ob (car ob-pos))
+      (if (string-match "mev:$" (prin1-to-string ob))
+         (error "Can't open mouse connection"))
       (setq t-mouse-filter-accumulator
             (substring t-mouse-filter-accumulator (cdr ob-pos)))