]> git.eshelyaron.com Git - emacs.git/commitdiff
Fix `dnd-indicate-insertion-point' on Mac OS
authorPo Lu <luangruo@yahoo.com>
Mon, 30 May 2022 08:03:11 +0000 (16:03 +0800)
committerPo Lu <luangruo@yahoo.com>
Mon, 30 May 2022 08:03:11 +0000 (16:03 +0800)
* lisp/term/ns-win.el (ns-handle-drag-motion): Remove debugging
code.

* src/nsterm.m ([EmacsView draggingUpdated:]): Redisplay here
instead.

lisp/term/ns-win.el
src/nsterm.m

index c2ce9fef1d40140af2d88286bae4861648cb87dd..d90146284f8d31957c37c30fe520913627107768 100644 (file)
@@ -916,8 +916,7 @@ See the documentation of `create-fontset-from-fontset-spec' for the format.")
   "Handle mouse movement on FRAME at X and Y during drag-and-drop.
 This moves point to the current mouse position if
  `dnd-indicate-insertion-point' is enabled."
-  (dnd-handle-movement (posn-at-x-y x y frame))
-  (print (redisplay t) 'external-debugging-output))
+  (dnd-handle-movement (posn-at-x-y x y frame)))
 
 (provide 'ns-win)
 (provide 'term/ns-win)
index b5d5ab334da34374e497282f818ea01dac6e046b..3d2b4116cab49718786cfe41490d8cde30ab50d8 100644 (file)
@@ -8647,6 +8647,8 @@ ns_create_font_panel_buttons (id target, SEL select, SEL cancel_action)
 
   safe_call (4, Vns_drag_motion_function, frame,
             make_fixnum (x), make_fixnum (y));
+
+  redisplay ();
 #endif
 
   return NSDragOperationGeneric;