From f044da7704edfc7e6cf32606328d0735b77e60d9 Mon Sep 17 00:00:00 2001 From: Po Lu Date: Fri, 13 May 2022 20:57:24 +0800 Subject: [PATCH] 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. --- lisp/mouse.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.39.2