emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-28 f044da7704: Fix tooltip face overwriting dragged text strings d


From: Po Lu
Subject: emacs-28 f044da7704: Fix tooltip face overwriting dragged text strings during mouse DND
Date: Fri, 13 May 2022 08:57:44 -0400 (EDT)

branch: emacs-28
commit f044da7704edfc7e6cf32606328d0735b77e60d9
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    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 1b9542b9b8..e5ea5475f4 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]