unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Bug in 26.1 related to X clipboard and `yank'?
@ 2018-07-26 23:30 Joseph Mingrone
  2018-07-26 23:56 ` Brett Gilio
  0 siblings, 1 reply; 9+ messages in thread
From: Joseph Mingrone @ 2018-07-26 23:30 UTC (permalink / raw)
  To: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 695 bytes --]

Hello,

Here is a recipe that almost but not always reproduces the potential
bug.

;; Start a server and open a client frame
1. emacs -Q  --daemon
2. emacsclient -nc
;; Open a second Emacs (not client/daemon)
3. emacs -Q
4. From some application other than Emacs, copy text to the X clipboard.
5. Yank the text from the clipboard somewhere in the client frame (this works).
6. Add some text somewhere in the second Emacs frame and run `kill-ring-save' to put it on the X clipboard.
7. ** Ruining `yank' in the client frame does not yank the text on the X clipboard. **

I do not recall this being a problem in previous versions, but I cannot
say for certain.  Is this bug-report worthy?

Joseph

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Bug in 26.1 related to X clipboard and `yank'?
  2018-07-26 23:30 Bug in 26.1 related to X clipboard and `yank'? Joseph Mingrone
@ 2018-07-26 23:56 ` Brett Gilio
  2018-07-27  0:38   ` Joseph Mingrone
  0 siblings, 1 reply; 9+ messages in thread
From: Brett Gilio @ 2018-07-26 23:56 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: emacs-devel


Joseph Mingrone writes:

> Hello,
>
> Here is a recipe that almost but not always reproduces the 
> potential
> bug.
>
> ;; Start a server and open a client frame
> 1. emacs -Q  --daemon
> 2. emacsclient -nc
> ;; Open a second Emacs (not client/daemon)
> 3. emacs -Q
> 4. From some application other than Emacs, copy text to the X 
> clipboard.
> 5. Yank the text from the clipboard somewhere in the client 
> frame (this works).
> 6. Add some text somewhere in the second Emacs frame and run 
> `kill-ring-save' to put it on the X clipboard.
> 7. ** Ruining `yank' in the client frame does not yank the text 
> on the X clipboard. **
>
> I do not recall this being a problem in previous versions, but I 
> cannot
> say for certain.  Is this bug-report worthy?
>
> Joseph

Hi Joseph,

Are you getting any errors or messages after you yank the text 
with the
second client open?

-- 
Brett M. Gilio
Free Software Foundation, Member
https://parabola.nu | https://emacs.org



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Bug in 26.1 related to X clipboard and `yank'?
  2018-07-26 23:56 ` Brett Gilio
@ 2018-07-27  0:38   ` Joseph Mingrone
  2018-07-27  6:03     ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Joseph Mingrone @ 2018-07-27  0:38 UTC (permalink / raw)
  To: Brett Gilio; +Cc: emacs-devel

[-- Attachment #1: Type: text/plain, Size: 1289 bytes --]

Brett Gilio <brettg@posteo.net> writes:

> Joseph Mingrone writes:

>> Hello,

>> Here is a recipe that almost but not always reproduces the potential
>> bug.

>> ;; Start a server and open a client frame
>> 1. emacs -Q  --daemon
>> 2. emacsclient -nc
>> ;; Open a second Emacs (not client/daemon)
>> 3. emacs -Q
>> 4. From some application other than Emacs, copy text to the X clipboard.
>> 5. Yank the text from the clipboard somewhere in the client frame (this works).
>> 6. Add some text somewhere in the second Emacs frame and run `kill-ring-save' to put it on the X clipboard.
>> 7. ** Ruining `yank' in the client frame does not yank the text on the X clipboard. **

>> I do not recall this being a problem in previous versions, but I cannot
>> say for certain.  Is this bug-report worthy?

>> Joseph

> Hi Joseph,

> Are you getting any errors or messages after you yank the text with the
> second client open?

Hi Brett,

I should have mentioned that no errors are reported, but in 7. the text from 4. (and not 6.) is again yanked into the buffer.  I can also replace 7. with:

7a. Go to a terminal and run 'xclip -selection clipboard -o' to confirm that the text from 6. is on the clipboard.
7b. Run `clipboard-yank' and the text from 4. is again yanked into the buffer.

Joseph

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Bug in 26.1 related to X clipboard and `yank'?
  2018-07-27  0:38   ` Joseph Mingrone
@ 2018-07-27  6:03     ` Eli Zaretskii
  2018-07-27 18:34       ` Joseph Mingrone
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2018-07-27  6:03 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: brettg, emacs-devel

> From: Joseph Mingrone <jrm@ftfl.ca>
> Date: Thu, 26 Jul 2018 21:38:46 -0300
> Cc: emacs-devel@gnu.org
> 
> I should have mentioned that no errors are reported, but in 7. the text from 4. (and not 6.) is again yanked into the buffer.  I can also replace 7. with:
> 
> 7a. Go to a terminal and run 'xclip -selection clipboard -o' to confirm that the text from 6. is on the clipboard.

Does xclip tell you which application is the owner of the text in the
clipboard?



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Bug in 26.1 related to X clipboard and `yank'?
  2018-07-27  6:03     ` Eli Zaretskii
@ 2018-07-27 18:34       ` Joseph Mingrone
  2018-07-27 21:00         ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Joseph Mingrone @ 2018-07-27 18:34 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: brettg, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 690 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Joseph Mingrone <jrm@ftfl.ca>
>> Date: Thu, 26 Jul 2018 21:38:46 -0300
>> Cc: emacs-devel@gnu.org

>> I should have mentioned that no errors are reported, but in 7. the text from 4. (and not 6.) is again yanked into the buffer.  I can also replace 7. with:

>> 7a. Go to a terminal and run 'xclip -selection clipboard -o' to confirm that the text from 6. is on the clipboard.

> Does xclip tell you which application is the owner of the text in the
> clipboard?

It doesn't.

I tried the same recipe, but with a recent build from the master branch (9593108) instead of 26.1.  The `yank' in the last step does yank the text on the X clipboard.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Bug in 26.1 related to X clipboard and `yank'?
  2018-07-27 18:34       ` Joseph Mingrone
@ 2018-07-27 21:00         ` Eli Zaretskii
  2018-07-27 21:19           ` Joseph Mingrone
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2018-07-27 21:00 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: brettg, emacs-devel

> From: Joseph Mingrone <jrm@ftfl.ca>
> Cc: brettg@posteo.net,  emacs-devel@gnu.org
> Date: Fri, 27 Jul 2018 15:34:10 -0300
> 
> I tried the same recipe, but with a recent build from the master branch (9593108) instead of 26.1.  The `yank' in the last step does yank the text on the X clipboard.

Then I guess the bug is somehow fixed on master?



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Bug in 26.1 related to X clipboard and `yank'?
  2018-07-27 21:00         ` Eli Zaretskii
@ 2018-07-27 21:19           ` Joseph Mingrone
  2018-07-27 21:27             ` Eli Zaretskii
  0 siblings, 1 reply; 9+ messages in thread
From: Joseph Mingrone @ 2018-07-27 21:19 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: brettg, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 552 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Joseph Mingrone <jrm@ftfl.ca>
>> Cc: brettg@posteo.net,  emacs-devel@gnu.org
>> Date: Fri, 27 Jul 2018 15:34:10 -0300

>> I tried the same recipe, but with a recent build from the master branch (9593108) instead of 26.1.  The `yank' in the last step does yank the text on the X clipboard.

> Then I guess the bug is somehow fixed on master?

It seems so.  After about 20 minutes of searching the commit logs of the master and emacs-26 branches, no obvious commit that fixes the problem stands out though.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Bug in 26.1 related to X clipboard and `yank'?
  2018-07-27 21:19           ` Joseph Mingrone
@ 2018-07-27 21:27             ` Eli Zaretskii
  2018-07-27 21:34               ` Joseph Mingrone
  0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2018-07-27 21:27 UTC (permalink / raw)
  To: Joseph Mingrone; +Cc: brettg, emacs-devel

> From: Joseph Mingrone <jrm@ftfl.ca>
> Date: Fri, 27 Jul 2018 18:19:01 -0300
> Cc: brettg@posteo.net, emacs-devel@gnu.org
> 
> > Then I guess the bug is somehow fixed on master?
> 
> It seems so.  After about 20 minutes of searching the commit logs of the master and emacs-26 branches, no obvious commit that fixes the problem stands out though.

You could try bisecting.  Not sure it's worth the hassle, though.



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: Bug in 26.1 related to X clipboard and `yank'?
  2018-07-27 21:27             ` Eli Zaretskii
@ 2018-07-27 21:34               ` Joseph Mingrone
  0 siblings, 0 replies; 9+ messages in thread
From: Joseph Mingrone @ 2018-07-27 21:34 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: brettg, emacs-devel

[-- Attachment #1: Type: text/plain, Size: 674 bytes --]

Eli Zaretskii <eliz@gnu.org> writes:

>> From: Joseph Mingrone <jrm@ftfl.ca>
>> Date: Fri, 27 Jul 2018 18:19:01 -0300
>> Cc: brettg@posteo.net, emacs-devel@gnu.org

>> > Then I guess the bug is somehow fixed on master?

>> It seems so.  After about 20 minutes of searching the commit logs of the master and emacs-26 branches, no obvious commit that fixes the problem stands out though.

> You could try bisecting.  Not sure it's worth the hassle, though.

The master branch takes (me) about 15 minutes to build [1], so bisecting could take some time.

[1] http://pkg.awarnach.mathstat.dal.ca/data/11amd64-default/2018-07-27_14h37m35s/logs/emacs-devel-27.0.50.20180715,2.log

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 962 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2018-07-27 21:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-26 23:30 Bug in 26.1 related to X clipboard and `yank'? Joseph Mingrone
2018-07-26 23:56 ` Brett Gilio
2018-07-27  0:38   ` Joseph Mingrone
2018-07-27  6:03     ` Eli Zaretskii
2018-07-27 18:34       ` Joseph Mingrone
2018-07-27 21:00         ` Eli Zaretskii
2018-07-27 21:19           ` Joseph Mingrone
2018-07-27 21:27             ` Eli Zaretskii
2018-07-27 21:34               ` Joseph Mingrone

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