1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-25 10:47:00 +00:00

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

of having it live in the *scratch* buffer until first used.
This commit is contained in:
Karl Heuer 1995-04-14 22:39:19 +00:00
parent 8095bf233d
commit dc269e81ca

View File

@ -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)