From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: apiraino via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#39103: 26.3; xclip.el 1.9 doesnt copy&paste under Wayland Date: Sun, 12 Jan 2020 17:50:42 +0000 Message-ID: Reply-To: apiraino , apiraino Mime-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg=pgp-sha256; boundary="---------------------f550c8aa943761bb8937421c314dd58b"; charset=UTF-8 Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="235736"; mail-complaints-to="usenet@blaine.gmane.org" To: 39103@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Jan 12 18:53:55 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iqhQK-000r5b-Ry for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jan 2020 18:53:16 +0100 Original-Received: from localhost ([::1]:40616 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqhQJ-0002ei-EO for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Jan 2020 12:53:15 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49433) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqhQ8-0002bC-7C for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 12:53:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqhQ6-00057H-P9 for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 12:53:04 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:51933) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iqhQ6-00056s-L9 for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 12:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1iqhQ6-00039y-Js for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 12:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: apiraino Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Jan 2020 17:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 39103 X-GNU-PR-Package: emacs X-Debbugs-Original-To: "bug-gnu-emacs@gnu.org" Original-Received: via spool by submit@debbugs.gnu.org id=B.157885153612058 (code B ref -1); Sun, 12 Jan 2020 17:53:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 12 Jan 2020 17:52:16 +0000 Original-Received: from localhost ([127.0.0.1]:57903 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqhPL-00038P-Tl for submit@debbugs.gnu.org; Sun, 12 Jan 2020 12:52:16 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:52023) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iqhO2-000368-J0 for submit@debbugs.gnu.org; Sun, 12 Jan 2020 12:50:55 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45696) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iqhO0-0002SI-N8 for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 12:50:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iqhNy-0006oB-Uw for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 12:50:52 -0500 Original-Received: from mail2.protonmail.ch ([185.70.40.22]:12850) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iqhNy-0006d3-9W for bug-gnu-emacs@gnu.org; Sun, 12 Jan 2020 12:50:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=default; t=1578851447; bh=rBaqZ2sM5jYF6ojP8T0SUWyIFf3YuTrqnFr80PoaqQ0=; h=Date:To:From:Reply-To:Subject:Feedback-ID:From; b=R27I0UOl+fwuNRLRGRJLdKksVq7fu4XzFQS0M56pv4i2DIMq6fCzq4BWHnrjp8D0/ mBhVr3LddCJ+ngLbcUekCRVZHbNX9SeuO6SIPMBADKRurvkj9tokNLh4Rl6yzUcE1N xln7aYC+6jKyBUBAGNJ7gz/aJB6Mdw43ClVDmfE8= Feedback-ID: TIeXX94fLLr7uT3x0PZF1rIEMzasi1ImZki4DvKPbUjVFrNtdMfnnT3Efgi9s9YOTN5p1zMSg1jcXc7_a_sEnw==:Ext:ProtonMail X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Mailman-Approved-At: Sun, 12 Jan 2020 12:52:14 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:174515 Archived-At: This is an OpenPGP/MIME signed message (RFC 4880 and 3156) -----------------------f550c8aa943761bb8937421c314dd58b Content-Type: multipart/mixed;boundary=---------------------d53705e604e3808c85ec736ddd53a450 -----------------------d53705e604e3808c85ec736ddd53a450 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain;charset=utf-8 user-error: Beginning of history; no preceding item [2 times] completing-read-default: Command attempted to use minibuffer while in mini= buffer [3 times] completing-read-default: Command attempted to use minibuffer while in mini= buffer user-error: End of history; no default available Features: I'm using xclip.el version 1.9 (installed from ELPA) and I was fine with = X11. I've recently switched to Sway (a window manager for Wayland) and xcl= ip.el should support copy and paste out of the box, after configuring it t= o use wl-clipbaord. However I can't paste text snippets out of Emacs, I think because I can't= set primary mode for wl-copy and wl-paste. Any suggestion on how to confi= gure or fix xclip.el to do that? Here's what I do - Open a file into a buffer - Select a region and copy it with "M w" to copy it - Try to paste in another application that runs under Wayland of Xwayland= (such as Firefox) From the cli, everything's fine: $ wl-copy -p heyhey $ wl-paste -p heyhey Also, inside Emacs copy&paste works fine. This is my current xclip.el config Hide Xclip Method: [Value Menu] Wayland: wl-copy [ State ]: SAVED and set. Hide Xclip Mode: [Toggle] on (non-nil) [ State ]: CHANGED outside Customize. Hide Xclip Program: wl-copy [ State ]: STANDARD. Hide Xclip Select Enable Clipboard: [Toggle] on (non-nil) [ State ]: STANDARD. 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: For information about GNU Emacs and the GNU system, type C-h C-a. Making completion list... Making completion list... Configured using: 'configure --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.3/site-lisp= :/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/sha= re/emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --build x86_64-linux-gnu --prefix=3D/usr --sharedstatedir=3D/var/lib --libexecdir=3D/usr/lib --localstatedir=3D/var/lib --infodir=3D/usr/share/info --mandir=3D/usr/share/man --enable-libsystemd --with-pop=3Dyes --enable-locallisppath=3D/etc/emacs:/usr/local/share/emacs/26.3/site-lisp= :/usr/local/share/emacs/site-lisp:/usr/share/emacs/26.3/site-lisp:/usr/sha= re/emacs/site-lisp --with-sound=3Dalsa --without-gconf --with-mailutils --with-x=3Dno --without-gsettings 'CFLAGS=3D-g -O2 -fdebug-prefix-map=3D/build/emacs-wvqver/emacs-26.3+1=3D. -fstack-protect= or-strong -Wformat -Werror=3Dformat-security -Wall' 'CPPFLAGS=3D-Wdate-time -D_FORTIFY_SOURCE=3D2' 'LDFLAGS=3D-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: tooltip-mode: t global-eldoc-mode: t eldoc-mode: t electric-indent-mode: t menu-bar-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 Load-path shadows: None found. (shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail tool-bar rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail regexp-opt rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils term/xterm xterm time-date elec-pair 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 95566 6808) (symbols 48 19452 1) (miscs 40 41 96) (strings 32 27841 958) (string-bytes 1 740354) (vectors 16 11870) (vector-slots 8 448930 6250) (floats 8 49 569) (intervals 56 301 13) (buffers 992 12)) Date: Sun, 12 Jan 2020 18:46:21 +0100 Message-ID: <87y2uch8k2.fsf@localhost.i-did-not-set--mail-host-address--so= -tickle-me> -----------------------d53705e604e3808c85ec736ddd53a450-- -----------------------f550c8aa943761bb8937421c314dd58b Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: ProtonMail wsFcBAEBCAAGBQJeG1xmAAoJEFHApg3ZpgbLp1gQAMGQdu/vBurWo1OmUjV/ G/rX1YsUwaY7FZB1J1qVsS+/E/s03WYsx9+yemymAkunitRfFDL4gRKrxpQp QPCa2xAOpFa/Jj4ObwsX0D9jdMZWcV9VkjOITAOG+8ocRw+d3ksQVE/Hu5fs Lmy617iJpt/Wz1IE0O2NqfAg67PdSOn2TEcVRVoZlSmFZ4pXyxOQ0R05heY0 Pz85hrzJUWP1KgWJRc0TxZD1gku6U2lowC8eGXcm6bdwe54VGxaOUiaFBefo ZvEQStRXZTti4TJTaPzPz72bDQL+P3NX5xCeGxnUKgtLe5WkGrmhNuY9sYgC VWcfVU059mFSLq+BvtH8dyMI4+nyPCz/5WWxDyFYRId90s4THhBqt3Z83wv1 dFRdH84AaNkN266nMUy2tsb/pz7qon9/GTTiLIlXgcsro8KxYiQ1y8pSJRft QSEpFB5VZ97AiwkpX/TqgAofHjVvt2OjjgW9rX/nQugztaik9A7PC+LfKGob Qe/JBA7gV0eKHMPqP0RMjUGrZY4DxrzOby3pqcBtdF9qLHutUr86Zy3fGQZm 4hrW0h0flKZEJ+dryHKssKZGqyR5FC5yoLlStGG/BfYj6mLGHRpDptWXmVyO h806lQzNH40OybEUwU9YPvxOV2K7wBt4Iwm7nnVXv3l8kbNWrkd+hnT+aP4f IHhw =zAYm -----END PGP SIGNATURE----- -----------------------f550c8aa943761bb8937421c314dd58b--