Variable: dnd-scroll-margin

dnd-scroll-margin is a customizable variable defined in dnd.el.gz.

Value

nil

Documentation

The scroll margin inside a window underneath the cursor during drag-and-drop.

If the mouse moves this many lines close to the top or bottom of a window while dragging text, then that window will be scrolled down and up respectively.

This variable was added, or its default value changed, in Emacs 29.1.

View in manual

Probably introduced at or before Emacs version 29.1.

Source Code

;; Defined in /usr/src/emacs/lisp/dnd.el.gz
(defcustom dnd-scroll-margin nil
  "The scroll margin inside a window underneath the cursor during drag-and-drop.
If the mouse moves this many lines close to the top or bottom of
a window while dragging text, then that window will be scrolled
down and up respectively."
  :type '(choice (const :tag "Don't scroll during mouse movement")
                 (integer :tag "This many lines from window top or bottom"))
  :version "29.1"
  :group 'dnd)