Function: mouse-start-secondary

mouse-start-secondary is an interactive and byte-compiled function defined in mouse.el.gz.

Signature

(mouse-start-secondary CLICK)

Documentation

Set one end of the secondary selection to the position clicked on.

Use M-<mouse-3> (mouse-secondary-save-then-kill) to set the other end and complete the secondary selection.

View in manual

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mouse.el.gz
(defun mouse-start-secondary (click)
  "Set one end of the secondary selection to the position clicked on.
Use \\[mouse-secondary-save-then-kill] to set the other end
and complete the secondary selection."
  (interactive "e")
  (mouse-minibuffer-check click)
  (let ((posn (event-start click)))
    (with-current-buffer (window-buffer (posn-window posn))
      ;; Cancel any preexisting secondary selection.
      (delete-overlay mouse-secondary-overlay)
      (if (numberp (posn-point posn))
	  (progn
	    (or mouse-secondary-start
		(setq mouse-secondary-start (make-marker)))
	    (move-marker mouse-secondary-start (posn-point posn)))))))