From: Po Lu Date: Fri, 13 May 2022 12:57:24 +0000 (+0800) Subject: Fix tooltip face overwriting dragged text strings during mouse DND X-Git-Tag: emacs-28.1.90~89 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=f044da7704;p=emacs.git Fix tooltip face overwriting dragged text strings during mouse DND * lisp/mouse.el (mouse-drag-and-drop-region): Copy `text-tooltip' before showing it. Do not merge to master. --- diff --git a/lisp/mouse.el b/lisp/mouse.el index 1b9542b9b82..e5ea5475f43 100644 --- a/lisp/mouse.el +++ b/lisp/mouse.el @@ -3049,7 +3049,7 @@ is copied instead of being cut." ;; Show a tooltip. (if mouse-drag-and-drop-region-show-tooltip - (tooltip-show text-tooltip) + (tooltip-show (copy-sequence text-tooltip)) (tooltip-hide)) ;; Show cursor and highlight the original region.