Commit dc269e81 authored by Karl Heuer's avatar Karl Heuer
Browse files

Create mouse-drag-overlay as a dead overlay, instead

of having it live in the *scratch* buffer until first used.
parent 8095bf23
......@@ -371,7 +371,9 @@ Upon exit, point is at the far edge of the newly visible text."
(or (eq window (selected-window))
(goto-char opoint))))
;; Create an overlay and immediately delete it, to get "overlay in no buffer".
(defvar mouse-drag-overlay (make-overlay 1 1))
(delete-overlay mouse-drag-overlay)
(overlay-put mouse-drag-overlay 'face 'region)
(defvar mouse-selection-click-count 0)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment