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:
parent
8095bf233d
commit
dc269e81ca
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user