]> code.delx.au - gnu-emacs/blobdiff - lisp/repeat.el
Replace some inappropriate uses of toggle-read-only. (Bug#7292)
[gnu-emacs] / lisp / repeat.el
index edebbe24a840eb32a01dc7e83dec3e2dc971452d..b82522ef8553b296f1de4b5d8bf6ff4d70c368e2 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-key)))
+                     ;; 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))