[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 54e3509771: Issue a message if getting a selection takes a long t
From: |
Lars Ingebrigtsen |
Subject: |
master 54e3509771: Issue a message if getting a selection takes a long time |
Date: |
Mon, 20 Jun 2022 11:34:49 -0400 (EDT) |
branch: master
commit 54e350977148df1c2e26d83492ee3c6668c047d1
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Issue a message if getting a selection takes a long time
* lisp/term/x-win.el (gui-backend-get-selection): If getting the
selection takes a long time, issue a message after one second
(bug#46935).
---
lisp/term/x-win.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index 31fc3ba534..6e083499df 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -1366,7 +1366,9 @@ This returns an error if any Emacs frames are X frames."
(cl-defmethod gui-backend-get-selection (selection-symbol target-type
&context (window-system x)
&optional time-stamp terminal)
- (x-get-selection-internal selection-symbol target-type time-stamp terminal))
+ (with-delayed-message (1 "Waiting for selection")
+ (x-get-selection-internal selection-symbol target-type
+ time-stamp terminal)))
;; Initiate drag and drop
(add-hook 'after-make-frame-functions 'x-dnd-init-frame)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 54e3509771: Issue a message if getting a selection takes a long time,
Lars Ingebrigtsen <=