changeset 11453:5ed0795c4155

Create mouse-drag-overlay as a dead overlay, instead of having it live in the *scratch* buffer until first used.
author Karl Heuer <kwzh@gnu.org>
date Fri, 14 Apr 1995 22:39:19 +0000
parents a24224fc5a92
children d9ec5322d181
files lisp/mouse.el
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/mouse.el	Fri Apr 14 22:16:50 1995 +0000
+++ b/lisp/mouse.el	Fri Apr 14 22:39:19 1995 +0000
@@ -371,7 +371,9 @@
     (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)