GNU bug report logs - #41910
26.3; xclip (wl-copy/Wayland) doesn't copy from Emacs Client

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: emacs@HIDDEN; dated Wed, 17 Jun 2020 10:22:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 41910 <at> debbugs.gnu.org:


Received: (at 41910) by debbugs.gnu.org; 29 Jun 2020 19:40:41 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jun 29 15:40:41 2020
Received: from localhost ([127.0.0.1]:49524 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jpzdw-0006bI-AR
	for submit <at> debbugs.gnu.org; Mon, 29 Jun 2020 15:40:41 -0400
Received: from mail.serni.org ([94.130.182.25]:40486
 helo=mail.storiepvtride.it)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <emacs@HIDDEN>) id 1jpxdg-0003En-RD
 for 41910 <at> debbugs.gnu.org; Mon, 29 Jun 2020 13:32:18 -0400
Received: from [192.168.178.64] (ip5b40f6b4.dynamic.kabel-deutschland.de
 [91.64.246.180])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.storiepvtride.it (Postfix) with ESMTPSA id 2CB489EE7F
 for <41910 <at> debbugs.gnu.org>; Mon, 29 Jun 2020 19:32:15 +0200 (CEST)
From: emacs@HIDDEN
Subject: Re: bug#41910: 26.3; xclip (wl-copy/Wayland) doesn't copy from Emacs
 Client
To: 41910 <at> debbugs.gnu.org
References: <1f242539-c351-c170-f268-8f35586591cc@HIDDEN>
 <83a71122j8.fsf@HIDDEN>
Message-ID: <7efac41e-78e5-ca62-37bd-ff1fc20d8847@HIDDEN>
Date: Mon, 29 Jun 2020 19:32:14 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.9.0
MIME-Version: 1.0
In-Reply-To: <83a71122j8.fsf@HIDDEN>
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 41910
X-Mailman-Approved-At: Mon, 29 Jun 2020 15:40:38 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Am 17.06.20 um 16:24 schrieb Eli Zaretskii:
>> From: emacs@HIDDEN
>> Date: Wed, 17 Jun 2020 10:31:55 +0200
>>
>> I'm using xclip 1.10 under Wayland and I use `wl-clipboard` [0] to copy
>> and paste.
>>
>> When I connect a client to the Emacs daemon, I cannot copy text from a
>> buffer to outside Emacs (be it a GTK application or another shell). To
>> copy and paste text from a buffer:
>>
>> - I start selecting text with `C-space` then arrow keys to extend the
>> selection
>>
>> - I copy the selection with `C-w`
>>
>> - I paste the selection outside Emacs with whatever works (shift+ctrl+v,
>>
>> - shift+ins, ctrl+v, ecc.)
>>
>> If I start `emacs` directly the above workflow works just fine.
> 
> Please tell how you invoke emacsclient in those cases.
> 
> Also, if you disable xclip and don't use wl-clipboard, does the
> problem go away?
> 
> Thanks.
> 

Hello, thanks for the reply.

> Please tell how you invoke emacsclient in those cases.

I use this alias:

alias em='emacsclient -t'

> Also, if you disable xclip and don't use wl-clipboard, does the
> problem go away?

If I start emacs in Fundamental mode (emacs -q) which I believe should
disable any package, I observe:

- I cannot copy from Emacs and paste into a GTK application
- I can copy from a GTK application and paste into Emacs
- Yank and Kill-ring-save work inside Emacs

Hope it helps, sorry if my wording is not correct, feel free to ask more
details.

Regards,




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#41910; Package emacs. Full text available.

Message received at 41910 <at> debbugs.gnu.org:


Received: (at 41910) by debbugs.gnu.org; 17 Jun 2020 14:25:09 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 17 10:25:09 2020
Received: from localhost ([127.0.0.1]:51955 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jlZ01-0005WC-0O
	for submit <at> debbugs.gnu.org; Wed, 17 Jun 2020 10:25:09 -0400
Received: from eggs.gnu.org ([209.51.188.92]:51748)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1jlYzy-0005Va-M1
 for 41910 <at> debbugs.gnu.org; Wed, 17 Jun 2020 10:25:07 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e]:45717)
 by eggs.gnu.org with esmtp (Exim 4.90_1)
 (envelope-from <eliz@HIDDEN>)
 id 1jlYzs-0005jf-Ac; Wed, 17 Jun 2020 10:25:00 -0400
Received: from [176.228.60.248] (port=1142 helo=home-c4e4a596f7)
 by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256)
 (Exim 4.82) (envelope-from <eliz@HIDDEN>)
 id 1jlYzr-0006P2-LI; Wed, 17 Jun 2020 10:25:00 -0400
Date: Wed, 17 Jun 2020 17:24:43 +0300
Message-Id: <83a71122j8.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: emacs@HIDDEN
In-Reply-To: <1f242539-c351-c170-f268-8f35586591cc@HIDDEN>
 (emacs@HIDDEN)
Subject: Re: bug#41910: 26.3;
 xclip (wl-copy/Wayland) doesn't copy from Emacs Client
References: <1f242539-c351-c170-f268-8f35586591cc@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 41910
Cc: 41910 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: emacs@HIDDEN
> Date: Wed, 17 Jun 2020 10:31:55 +0200
> 
> I'm using xclip 1.10 under Wayland and I use `wl-clipboard` [0] to copy
> and paste.
> 
> When I connect a client to the Emacs daemon, I cannot copy text from a
> buffer to outside Emacs (be it a GTK application or another shell). To
> copy and paste text from a buffer:
> 
> - I start selecting text with `C-space` then arrow keys to extend the
> selection
> 
> - I copy the selection with `C-w`
> 
> - I paste the selection outside Emacs with whatever works (shift+ctrl+v,
> 
> - shift+ins, ctrl+v, ecc.)
> 
> If I start `emacs` directly the above workflow works just fine.

Please tell how you invoke emacsclient in those cases.

Also, if you disable xclip and don't use wl-clipboard, does the
problem go away?

Thanks.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#41910; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 17 Jun 2020 10:21:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 17 06:21:57 2020
Received: from localhost ([127.0.0.1]:50441 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1jlVCe-0000lh-7c
	for submit <at> debbugs.gnu.org; Wed, 17 Jun 2020 06:21:57 -0400
Received: from lists.gnu.org ([209.51.188.17]:36210)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <emacs@HIDDEN>) id 1jlTUJ-0004TP-T8
 for submit <at> debbugs.gnu.org; Wed, 17 Jun 2020 04:32:05 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:55904)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <emacs@HIDDEN>)
 id 1jlTUJ-00067Z-Lm
 for bug-gnu-emacs@HIDDEN; Wed, 17 Jun 2020 04:32:03 -0400
Received: from mail.serni.org ([94.130.182.25]:34928
 helo=mail.storiepvtride.it)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <emacs@HIDDEN>)
 id 1jlTUG-00059F-Na
 for bug-gnu-emacs@HIDDEN; Wed, 17 Jun 2020 04:32:03 -0400
Received: from [192.168.178.64] (ip5b40f6b4.dynamic.kabel-deutschland.de
 [91.64.246.180])
 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
 (No client certificate requested)
 by mail.storiepvtride.it (Postfix) with ESMTPSA id 0F328A013C
 for <bug-gnu-emacs@HIDDEN>; Wed, 17 Jun 2020 10:31:56 +0200 (CEST)
To: bug-gnu-emacs@HIDDEN
From: emacs@HIDDEN
Subject: 26.3; xclip (wl-copy/Wayland) doesn't copy from Emacs Client
Message-ID: <1f242539-c351-c170-f268-8f35586591cc@HIDDEN>
Date: Wed, 17 Jun 2020 10:31:55 +0200
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
 Thunderbird/68.9.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 7bit
Received-SPF: pass client-ip=94.130.182.25;
 envelope-from=emacs@HIDDEN; helo=mail.storiepvtride.it
X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/17 04:31:56
X-ACL-Warn: Detected OS   = Linux 2.2.x-3.x [generic] [fuzzy]
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=_AUTOLEARN
X-Spam_action: no action
X-Spam-Score: -1.3 (-)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Wed, 17 Jun 2020 06:21:54 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -2.3 (--)

Hello,

I'm using xclip 1.10 under Wayland and I use `wl-clipboard` [0] to copy

and paste.



When I connect a client to the Emacs daemon, I cannot copy text from a

buffer to outside Emacs (be it a GTK application or another shell). To

copy and paste text from a buffer:



- I start selecting text with `C-space` then arrow keys to extend the
selection

- I copy the selection with `C-w`

- I paste the selection outside Emacs with whatever works (shift+ctrl+v,

- shift+ins, ctrl+v, ecc.)



If I start `emacs` directly the above workflow works just fine.



I've hacked a bit `xclip.el`, seems that these commits [1] and [2] are

related to the issue. If I revert to using `process-file`, I can copy
again also from

an attached Emacs client.



Regards,



[0] https://github.com/bugaevc/wl-clipboard

[1]

https://git.savannah.gnu.org/gitweb/?p=emacs/elpa.git;a=commitdiff;h=dd10f4a8ccef4aa316afc31ed2549573a974b546;hp=5436d2486e475fc91f16682697a692e21387e22d

[2]
https://git.savannah.gnu.org/gitweb/?p=emacs/elpa.git;a=commitdiff;h=98405112baa5ce2a118d1c65184c005d8ddaa1a9;hp=a465911fa8abb9cd0050c7469a9c3aa2a3407ef3



In GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu)

 of 2019-09-23, modified by Debian built on lgw01-amd64-032

System Description:	Ubuntu 19.10



Recent messages:

Mark set

next-line: End of buffer

Mark set [6 times]

Saving file /home/user/tmp/test.txt...

Wrote /home/user/tmp/test.txt

Mark set

previous-line: Beginning of buffer [11 times]

Mark set

When done with this frame, type C-x 5 0

Making completion list...



Configured using:

 'configure --build x86_64-linux-gnu --prefix=/usr

 --sharedstatedir=/var/lib --libexecdir=/usr/lib

 --localstatedir=/var/lib --infodir=/usr/share/info

 --mandir=/usr/share/man --enable-libsystemd --with-pop=yes

 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp

 --with-sound=alsa --without-gconf --with-mailutils --build

 x86_64-linux-gnu --prefix=/usr --sharedstatedir=/var/lib

 --libexecdir=/usr/lib --localstatedir=/var/lib

 --infodir=/usr/share/info --mandir=/usr/share/man --enable-libsystemd

 --with-pop=yes

 --enable-locallisppath=/etc/emacs:/usr/local/share/emacs/26.3/site-lisp:/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/share/emacs/site-lisp

 --with-sound=alsa --without-gconf --with-mailutils --with-x=no

 --without-gsettings 'CFLAGS=-g -O2

 -fdebug-prefix-map=/build/emacs-wvqver/emacs-26.3+1=.
-fstack-protector-strong

 -Wformat -Werror=format-security -Wall' 'CPPFLAGS=-Wdate-time

 -D_FORTIFY_SOURCE=2' 'LDFLAGS=-Wl,-Bsymbolic-functions -Wl,-z,relro''



Configured features:

JPEG SOUND GPM DBUS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 ZLIB XIM

THREADS LIBSYSTEMD LCMS2



Important settings:

  value of $LC_MONETARY: de_DE.UTF-8

  value of $LC_NUMERIC: de_DE.UTF-8

  value of $LC_TIME: de_DE.UTF-8

  value of $LANG: en_US.UTF-8

  locale-coding-system: utf-8-unix



Major mode: Lisp Interaction



Minor modes in effect:

  show-paren-mode: t

  global-whitespace-newline-mode: t

  global-whitespace-mode: t

  global-hl-todo-mode: t

  hl-todo-mode: t

  editorconfig-mode: t

  xclip-mode: t

  smartparens-global-mode: t

  smartparens-mode: t

  global-git-gutter-mode: t

  shell-dirtrack-mode: t

  tooltip-mode: t

  global-eldoc-mode: t

  eldoc-mode: t

  electric-indent-mode: t

  file-name-shadow-mode: t

  global-font-lock-mode: t

  font-lock-mode: t

  auto-composition-mode: t

  auto-encryption-mode: t

  auto-compression-mode: t

  line-number-mode: t

  transient-mark-mode: t

  abbrev-mode: t



Load-path shadows:

/usr/share/emacs/site-lisp/llvm-7/llvm-mode hides
/usr/share/emacs/site-lisp/llvm-8/llvm-mode

/usr/share/emacs/site-lisp/llvm-7/emacs hides
/usr/share/emacs/site-lisp/llvm-8/emacs

/usr/share/emacs/site-lisp/llvm-7/tablegen-mode hides
/usr/share/emacs/site-lisp/llvm-8/tablegen-mode

/usr/share/emacs/site-lisp/llvm-7/llvm-mode hides
/usr/share/emacs/site-lisp/llvm-9/llvm-mode

/usr/share/emacs/site-lisp/llvm-7/emacs hides
/usr/share/emacs/site-lisp/llvm-9/emacs

/usr/share/emacs/site-lisp/llvm-7/tablegen-mode hides
/usr/share/emacs/site-lisp/llvm-9/tablegen-mode



Features:

(shadow sort mail-extr emacsbug message rmc puny dired dired-loaddefs

rfc822 mml mml-sec epa derived epg gnus-util rmail rmail-loaddefs

mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils

mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr

mail-utils editorconfig-core editorconfig-core-handle

editorconfig-fnmatch term/xterm xterm server elec-pair disp-table ox-md

zenburn-theme paren whitespace cus-start cus-load hl-todo move-text

editorconfig ox-wk ox-odt rng-loc rng-uri rng-parse rng-match rng-dt

rng-util rng-pttrn nxml-parse nxml-ns nxml-enc xmltok nxml-util ox-latex

ox-icalendar ox-html table ox-ascii ox-publish ox org-element avl-tree

generator org org-macro org-footnote org-pcomplete org-list org-faces

org-entities time-date noutline outline easy-mmode org-version

ob-emacs-lisp ob ob-tangle org-src ob-ref ob-lob ob-table ob-keys

ob-comint org-loaddefs find-func cal-menu calendar cal-loaddefs ob-exp

ob-core org-compat ob-eval org-macs xclip py-autopep8 jedi jedi-core

python-environment epc ctable cl concurrent deferred subr-x

auto-complete popup smartparens dash git-gutter crux tramp tramp-compat

tramp-loaddefs trampver ucs-normalize shell pcomplete comint regexp-opt

ansi-color ring parse-time format-spec advice thingatpt edmacro kmacro

cl-extra help-mode use-package-ensure use-package-core finder-inf info

tool-bar package easymenu epg-config url-handlers url-parse auth-source

cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache url-vars

seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib mule-util

tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type

tabulated-list replace newcomment text-mode elisp-mode lisp-mode

prog-mode register page menu-bar rfn-eshadow isearch timer select mouse

jit-lock font-lock syntax facemenu font-core term/tty-colors frame

cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai

tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian

slovak czech european ethiopic indian cyrillic chinese composite

charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev

obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face

macroexp files text-properties overlay sha1 md5 base64 format env

code-pages mule custom widget hashtable-print-readable backquote threads

dbusbind inotify lcms2 multi-tty make-network-process emacs)



Memory information:

((conses 16 540732 24083)

 (symbols 48 40235 1)

 (miscs 40 83 222)

 (strings 32 141099 2555)

 (string-bytes 1 3882664)

 (vectors 16 59331)

 (vector-slots 8 987380 18416)

 (floats 8 164 838)

 (intervals 56 386 0)

 (buffers 992 13))




Acknowledgement sent to emacs@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#41910; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 29 Jun 2020 19:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.