emacs-devel
[Top][All Lists]
Advanced

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

Re: master 54e3509771: Issue a message if getting a selection takes a lo


From: Po Lu
Subject: Re: master 54e3509771: Issue a message if getting a selection takes a long time
Date: Tue, 21 Jun 2022 09:21:29 +0800
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux)

Lars Ingebrigtsen <larsi@gnus.org> writes:

> 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)))

I'll make `x_get_foreign_selection' do that instead, since many pieces
of X-specific code call that.


reply via email to

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