Function: kmacro-end-call-mouse

kmacro-end-call-mouse is an autoloaded, interactive and byte-compiled function defined in kmacro.el.gz.

Signature

(kmacro-end-call-mouse EVENT)

Documentation

Move point to the position clicked with the mouse and call last kbd macro.

If kbd macro currently being defined end it before activating it.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/kmacro.el.gz
;;;###autoload
(defun kmacro-end-call-mouse (event)
  "Move point to the position clicked with the mouse and call last kbd macro.
If kbd macro currently being defined end it before activating it."
  (interactive "e")
  (when defining-kbd-macro
    (end-kbd-macro)
    (when (and last-kbd-macro (= (length last-kbd-macro) 0))
      (setq last-kbd-macro nil)
      (message "Ignore empty macro")
      ;; Don't call `kmacro-ring-empty-p' to avoid its messages.
      (while (and (null last-kbd-macro) kmacro-ring)
        (kmacro-pop-ring1))))
  (mouse-set-point event)
  (kmacro-call-macro nil t))