Subject: Re: bug#17026: 24.4+1-5 x-get-selection: Timed out waiting for reply from selection owner

From: "Jan D." <[email-masked]>
Date: Sun, 22 Mar 2015 14:39:42 +0100

Hi.

> 20 mar 2015 kl. 14:06 skrev Mariusz Gronczewski <[email-masked]>:
> 
> Seems like easiest way to reproduce it is to run any command that touches primary selection, for example:
> 
> (shell-command "xclip -o -selection XA_PRIMARY”)

This is not the same.  This hangs because of a deadlock.  Shell runs synchronous, and hangs until the command output has been read.  But when emacs does that, it can’t respond to the request from xclip.
It also only hangs if Emacs owns the primary selection, not if another process does.

> 
> freezes whole emacs until Ctrl+G but with XA_CLIPBOARD it works as intended

It is because there is a clipboard handler running, i.e. Emacs does not answer to xclip in this case.

	Jan D.