unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: emacs-devel@gnu.org
Cc: Lars Ingebrigtsen <larsi@gnus.org>
Subject: Re: master 54e3509771: Issue a message if getting a selection takes a long time
Date: Tue, 21 Jun 2022 09:21:29 +0800	[thread overview]
Message-ID: <87h74elskm.fsf@yahoo.com> (raw)
In-Reply-To: <20220620153449.62763C00BAF@vcs2.savannah.gnu.org> (Lars Ingebrigtsen's message of "Mon, 20 Jun 2022 11:34:49 -0400 (EDT)")

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	other threads:[~2022-06-21  1:21 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20220620153449.62763C00BAF@vcs2.savannah.gnu.org>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87h74elskm.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).