emacs-diffs
[Top][All Lists]
Advanced

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

master 90f3da0ccd: Fix quitting in one go out of `mouse-drag-and-drop-re


From: Po Lu
Subject: master 90f3da0ccd: Fix quitting in one go out of `mouse-drag-and-drop-region'
Date: Wed, 8 Jun 2022 01:04:51 -0400 (EDT)

branch: master
commit 90f3da0ccdb4c58265e9f8c3d9465198d8a2092a
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>

    Fix quitting in one go out of `mouse-drag-and-drop-region'
    
    * src/xterm.c (x_dnd_begin_drag_and_drop): Make sure
    handle_interrupt is called inside the nested event loop upon a
    quit event.
---
 src/xterm.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/xterm.c b/src/xterm.c
index f42f7cb1eb..444adcf94f 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -11116,6 +11116,12 @@ x_dnd_begin_drag_and_drop (struct frame *f, Time time, 
Atom xaction,
              if (x_dnd_motif_setup_p)
                XDeleteProperty (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
                                 FRAME_DISPLAY_INFO (f)->Xatom_XdndSelection);
+
+             /* Call kbd_buffer_store event, which calls
+                handle_interrupt and sets `last-event-frame' along
+                with various other things.  */
+             kbd_buffer_store_event (&hold_quit);
+             /* Now quit anyway.  */
              quit ();
            }
 



reply via email to

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