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 KJeGHubC+mHyhQEAgWs5BA (envelope-from ) for ; Wed, 02 Feb 2022 18:44:06 +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 sBfvG+bC+mG0bwEA9RJhRA (envelope-from ) for ; Wed, 02 Feb 2022 18:44:06 +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 1D52B41E44 for ; Wed, 2 Feb 2022 18:44:06 +0100 (CET) Received: from localhost ([::1]:56370 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nFJfo-0008AR-Oq for larch@yhetil.org; Wed, 02 Feb 2022 12:44:04 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42872) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFIpG-0006mm-R1 for emacs-orgmode@gnu.org; Wed, 02 Feb 2022 11:49:46 -0500 Received: from ciao.gmane.io ([116.202.254.214]:40486) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nFIow-0007Cg-4S for emacs-orgmode@gnu.org; Wed, 02 Feb 2022 11:49:45 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nFIou-00024E-4L for emacs-orgmode@gnu.org; Wed, 02 Feb 2022 17:49:24 +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: Wed, 2 Feb 2022 23:49:17 +0700 Message-ID: References: <1902025.jDVfpnRRgo@pluto> <3845668.FWhFyR7r9r@pluto> <3946497.mJunGHPiPz@pluto> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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: <3946497.mJunGHPiPz@pluto> 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.25, 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=1643823846; 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=Z5fPxF/2aNt9l0ZJEODMxlx45FqdG5Sbg1kLUp1GTGY=; b=SsKG6GmSEzqj2Lm8O0IQfxLnnXEJ7tI+dO3mnhgNx+jyrocIDwSgf41cZoaRjoYhu1P/He Lb0gGoYZXe5u7AmS8mTPUCf5CBtsWchGi3eaJngpdyr1VvVRroGRSjCpI2lhl69fQ/Fi2s j7wXnVkPMHzhxvRVmWfttyZMpwy+psgwrMBrZ10ZKUR70p29OGh/CaSJLXLE/mmGFYVh4K vYgUA7QYzMwd3wFFgTfp+LKZ6boyBTzmxHt2eFoe2D3K3SupJJzN354ddHFWnyPIVtvURS wHrOHqX9TS7zgSCiHiILIRk4m7niKANlQ8Qr98kGEF8bKPknju/NmsR53p8dWQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1643823846; a=rsa-sha256; cv=none; b=i+nDsmEpE0sRMcOMA2AhtvwNnmyHaEcRddtk8DM9bIHHpH+jZUE2GB4m6MSfTv+JCC5pns 49PxyLG1/klYROsYcHXlBWVC+xoJorcV2zoXV0v9RY/QhinvLO7pTrhqtkiVdPzvOSKfGy 3Y/LgmMjoxq5nE19PcM2SBEHjQ7sazSyqe3FD8H85CDd2yMkVmZ1YzLfqt3JgEqZserSQX OaOsZyNZJbQx/An8NyIotckTLsxDtCvESMAw+g+WcbCBznWkExLp4d6KA45Iz8jDM4Ny8j IZsNdT4Tn+/iCXz/8eU9Q8rVnVizbMN4dSqXTuSgxb/xXfmL7bJRVDP433oHlA== 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: 1D52B41E44 X-Spam-Score: -2.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: Ki9Z7zooXQRk On 01/02/2022 12:57, chris wrote: > On Monday, 31 January 2022 17:29:28 CET Max Nikulin wrote: >> 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. > > This quote above is not from me (Chris), I think it's from Ihor, I agree that I forgot to remove "chris writes:" line since I did not put anything from your messages. However I believed it is clear enough that with such style your quotes would have one more ">" character at beginning of lines. >> Chris, did you tune clipboard manager in KDE? This kind of software may >> cause quite peculiar behavior... > > So, on debian/sid/kde/wayland, I've clicked on "configure clipboard" in the > default plasma panel: > I can see "ignore selection" is selected. I don't like "primary selection", I > think it's messy. Does it mean that you did something in settings to get clipboard&selection behavior more close to your expectations? Since I have klipper disabled, I do not remember its defaults and effects of its settings. > Well, look at that: > https://bugs.kde.org/show_bug.cgi?id=441668 > "Recently middle-click pasting got implemented for the Wayland platform. > However, this feature could be regarded as an annoyance due to the risk of > inadvertent pasting.", etc. > > So "selection ignored by the clipboard" according to kwin/wayland seems to > mean "user can't see it when they look in the clipboard" > But it's fully working all right and you just can't disable it. Low quality touchpad that accidentally spits middle-click events should be a real pain. However I can not understand your phrase above. > On the one hand, if I do: > `~/path/emacsclient --create-frame --altern > ate-editor=""` > Then go to `*scratch*` > Then `(kill-new "kill-new from Emacs")` > Then `C-y` gives `kill-new from Emacs`, and, C-y queries desktop clipboard or/and selection (depending on `select-enable-clipboard' and `select-enable-primary' values), so it may affect result of the following commands. > $ wl-paste > kill-new from Emacs > $ wl-paste --primary > (kill-new "kill-new from Emacs") What is the source of '(kill-new "kill-new from Emacs")' text in PRIMARY selection? Did it survived since you selected it in the message to paste it to Emacs? > So on my system, > `emacsclient -e "(kill-new \"test523\")"` > And > `(kill-new "test523")` executed in a emacsclient frame, in `*scratch*`, with > `C-j`. > > They don't agree. Does it happen when klipper is not running? I do not know if it is possible to enable logging of clipboard and selection events to shed some light which application push content to them. Maybe application can be obtained from some "type" present in "wl-paste --list-types" output (and with --primary). Even emacsclient -e select-enable-primary emacsclient -e select-enable-clipboard may clarify things a bit. So either - clipboard manager does some fancy stuff (e.g. to make clipboard content available after application quit or to copy text from selection to clipboard or vice versa) and emacs is confused by such actions - or pgtk emacs builds have some clipboard problems on wayland. Till behavior of emacs+wayland+clipboard manager is clarified it is hard to make conclusions related to org-protocol behavior.