From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 0GSmAWER+GE/0gAAgWs5BA (envelope-from ) for ; Mon, 31 Jan 2022 17:42:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IImjOmAR+GF5WgAA9RJhRA (envelope-from ) for ; Mon, 31 Jan 2022 17:42:08 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6C28714A2C for ; Mon, 31 Jan 2022 17:42:08 +0100 (CET) Received: from localhost ([::1]:59900 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nEZkl-0005k4-HG for larch@yhetil.org; Mon, 31 Jan 2022 11:42:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEZYf-0007x4-K0 for emacs-orgmode@gnu.org; Mon, 31 Jan 2022 11:29:38 -0500 Received: from ciao.gmane.io ([116.202.254.214]:50654) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nEZYd-0000sG-Vx for emacs-orgmode@gnu.org; Mon, 31 Jan 2022 11:29:37 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nEZYc-0006QC-Bd for emacs-orgmode@gnu.org; Mon, 31 Jan 2022 17:29:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: emacs-orgmode@gnu.org From: Max Nikulin Subject: Re: cut and paste not working after xdg-open "org-protocol://store-link?url=URL&title=TITLE" Date: Mon, 31 Jan 2022 23:29:28 +0700 Message-ID: References: <1902025.jDVfpnRRgo@pluto> <3701125.3ICyicTkgz@pluto> <871r0px5cu.fsf@localhost> <1761146.GlYOGd2maZ@pluto> <87sft4g0zp.fsf@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 Content-Language: en-US In-Reply-To: <87sft4g0zp.fsf@localhost> Received-SPF: pass client-ip=116.202.254.214; envelope-from=geo-emacs-orgmode@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: 28 X-Spam_score: 2.8 X-Spam_bar: ++ X-Spam_report: (2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FORGED_MUA_MOZILLA=2.309, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.248, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1643647328; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=x3+K1gKWvSLR4tPf9daYtkGamtCy7AHZINT6LmSaNKY=; b=XbVkD1OSp9T5j1HsP1Nba5BoiAq7+ZDFBqbMpW5IjY0Ja/2kL3Y1LEEB4zEwFaTuPyy45f ES//tjdMlcFYOj4mqeKrAVPcjcshwYPpI1PC9v9OBo3A555E7YDPPpc6C3dOj03DJ9oCP7 QDIpPNzQF0HA8xXgJvjySxqS827EnFlLyhXZRP1Mw+EwqL3zstk275nE/ZP0lZmb2XCpHf VRm87t2rgTEeNGefinbucjyMIieyOwrhTFjjX29qBvSmT2U4+vSmBw0xxGNd5Bs1Ts1NlO ZEBhvsyrFPug3OrmTKEUwBC9MqgVB8akIjdyHlBWTTDCWx9eeHZU8noicKvhbw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643647328; a=rsa-sha256; cv=none; b=PnH0cjwNUWeX4qhYGVI95Ir730SywNeGwt2RGKdATqCr6q+kJQTT+Lpn7Fkdb1KU86fCKj aeSaokau0x3FgYxKNv8HsLI4X03HWjDiiiTods4JHydRt7yxqPTxgI6HI6nMIsYyndURZ+ rd9OySmMjSc8+yvJ5EqDB2fjxNQEBW1tSiwSh1YaMrqUskumIPyRc0TsWMYH9xe55cMYp7 3FpHpGknl/NwgkJJc3bC623sgWS6cTjMop1bjq63+GsIpltsJZh4aaaIrZJZONSrvqWji7 Ys9fPn3jE8yxuQ7WN5Po/Xwh/QnlPHsQ0z0m1g3LE+LSHmSut7/jIHdWXJ8qDQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -2.53 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 6C28714A2C X-Spam-Score: -2.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: wUvPiD22LP6x On 31/01/2022 08:14, Ihor Radchenko wrote: > chris writes: > > I am not using Wayland. However, if I just do (kill-new "test") in X and > my select-enable-primary is nil (default) - "test" will not go to my X > clipboard. It is the default behaviour of Emacs in X that has nothing to > do with Org mode. Ihor, please, do not add more confusion to this obscure issue. `select-enable-primary' controls PRIMARY selection, not CLIPBOARD. `select-enable-clipboard' is an independent variable. Chris, did you tune clipboard manager in KDE? This kind of software may cause quite peculiar behavior... So, do not confuse PRIMARY selection and CLIPBOARD. Unlike MS Windows, X11 has several selection (and legacy cut buffers). I do not know the full story, but it seems that wayland developers decided that it is more secure to have just clipboard, but they did not sustain pressure of users who really like that "hard to discover feature": just select some text with mouse without additional hotkeys and paste it using middle click. Ububntu-21.10 impish, gnome, wayland, Emacs-27.1. I am aware that KDE may have rather different implementation related to wayland protocol and something may change in Emacs since the released version. I just have VM with such configuration. New session, empty selection and clipboard: $ wl-paste --list-types No selection $ wl-paste --primary --list-types No selection Select a word in terminal using mouse: $ wl-paste --primary --list-types text/plain text/plain;charset=utf-8 STRING TEXT COMPOUND_TEXT UTF8_STRING $ wl-paste --list-types No selection [Ctrl+Shift+V] to copy selection to clipboard $ wl-paste --primary --list-types text/plain text/plain;charset=utf-8 STRING TEXT COMPOUND_TEXT UTF8_STRING $ wl-paste --list-types text/plain text/plain;charset=utf-8 STRING TEXT COMPOUND_TEXT UTF8_STRING Let's copy some text from Firefox and then select another text but do not copy it: $ wl-paste Copy from Firefox $ wl-paste --primary Just select in Firefox So paste and insert using middle click are not synchronized now. Execute the following in Emacs: (kill-new "kill-new from Emacs") CLIPBOARD is changed, PRIMARY selection is not, it can be tuned in Emacs settings. I like the default ones. $ wl-paste kill-new from Emacs $ wl-paste --primary Just select in Firefox