]> code.delx.au - gnu-emacs/blobdiff - lisp/repeat.el
(gdb-mouse-toggle-breakpoint-margin)
[gnu-emacs] / lisp / repeat.el
index edebbe24a840eb32a01dc7e83dec3e2dc971452d..9abe15c7253ebb1f6d2e9a980a729e187441e6e6 100644 (file)
@@ -335,7 +335,12 @@ recently executed command not bound to an input event\"."
        (setq real-last-command 'repeat)
        (setq repeat-undo-count 1)
        (unwind-protect
-           (while (eq (read-event) repeat-repeat-char)
+           (while (let ((evt (read-event))) ;FIXME: read-key maybe?
+                     ;; For clicks, we need to strip the meta-data to
+                     ;; check the underlying event name.
+                     (eq (or (car-safe evt) evt)
+                         (or (car-safe repeat-repeat-char)
+                             repeat-repeat-char)))
              (repeat repeat-arg))
          ;; Make sure `repeat-undo-count' is reset.
          (setq repeat-undo-count nil))