Function: mouse-shift-adjust-mode

mouse-shift-adjust-mode is an interactive and byte-compiled function defined in mouse.el.gz.

Signature

(mouse-shift-adjust-mode &optional ARG)

Documentation

Toggle mouse shift adjustment mode.

When this mode is enabled, clicking the left mouse button with the <Shift> modifier (S-down-mouse-1) adjusts the already selected region using mouse-drag-region-shift-adjust.

This is a global minor mode. If called interactively, toggle the Mouse-Shift-Adjust mode mode. If the prefix argument is positive, enable the mode, and if it is zero or negative, disable the mode.

If called from Lisp, toggle the mode if ARG is toggle. Enable the mode if ARG is nil, omitted, or is a positive number. Disable the mode if ARG is a negative number.

To check whether the minor mode is enabled in the current buffer, evaluate (default-value \=mouse-shift-adjust-mode)'.

The mode's hook is called both when the mode is enabled and when it is disabled.

S-<down-mouse-1> mouse-drag-region-shift-adjust
S-<drag-mouse-1> mouse-set-region
S-<mouse-1> mouse-set-region

Probably introduced at or before Emacs version 31.1.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/mouse.el.gz
(define-minor-mode mouse-shift-adjust-mode
  "Toggle mouse shift adjustment mode.

When this mode is enabled, clicking the left mouse button
with the <Shift> modifier (`S-down-mouse-1') adjusts the
already selected region using `mouse-drag-region-shift-adjust'."
  :global t)