From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#65892: 30.0.50; yank-media fails for clipboard selection that are wiped after being accessed Date: Tue, 25 Jun 2024 11:45:34 +0800 Message-ID: <87le2ty9b5.fsf@yahoo.com> References: <87a5trjprx.fsf@gmail.com> <875xtzro7j.fsf@gmail.com> <86v81ybksc.fsf@gnu.org> <87frt2qwri.fsf@gmail.com> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8448"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: Eli Zaretskii , 65892@debbugs.gnu.org To: Visuwesh Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jun 25 05:47:17 2024 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sLx9J-00024c-2G for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jun 2024 05:47:17 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sLx95-0004YU-AI; Mon, 24 Jun 2024 23:47:03 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sLx93-0004YL-JP for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 23:47:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sLx92-00035i-Dd for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 23:47:00 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sLx93-0008Jy-Q0 for bug-gnu-emacs@gnu.org; Mon, 24 Jun 2024 23:47:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jun 2024 03:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65892 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 65892-submit@debbugs.gnu.org id=B65892.171928717331920 (code B ref 65892); Tue, 25 Jun 2024 03:47:01 +0000 Original-Received: (at 65892) by debbugs.gnu.org; 25 Jun 2024 03:46:13 +0000 Original-Received: from localhost ([127.0.0.1]:35943 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLx8G-0008Im-Vi for submit@debbugs.gnu.org; Mon, 24 Jun 2024 23:46:13 -0400 Original-Received: from sonic307-10.consmr.mail.ne1.yahoo.com ([66.163.190.33]:40705) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sLx8A-0008I2-Ke for 65892@debbugs.gnu.org; Mon, 24 Jun 2024 23:46:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1719287158; bh=3iJLvGYo+vOk0227lsuJ6M1uHNes0fJOcf9FDkwu9Ug=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=k7vPljkIrQQv1DxQZE3M6ikHKbVWwpPSWfPSEpPUgYaBx7nIXNJboBd52+FhQV+Zioifa1aK+yTPd4HVkS3n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0sGlqkFKOYZeeX.CYGmZiBkYjG5IapWhrJYmcdYRDSf2SQVi1yuc12JqtaV3zysZM 6qtI2X5do8yhzdZNKSmMGM8mf6rUgDISvtSBj4hYVWUqOcvVIP2iFLCiyH.ncXlvQDgZUZNYGM7p mNOAuay6.cBgLF1EKqX17Tuk7iybkYuS5YFLlj0SCpVth7_rTs9DN7eVyWh1LXJsD1N28XK_R1WG tKLr2H_HaEAgU9fNomzU2HJoNfWGFjGR13IrehFdXhQYnfPqHXruyt6ilyEU7vvRJiTPbcAXWSUf QNQD4qHRq4mLUNrHxxlezzvUKi2cNKkbkdnQHr4AwA4zX4BhO67wcnNVD2f9hE5J8AkaxYFBWINc hg.iJUuvky98XpFOa7nEHW3Zeo.OnqW_4R8AOOSW2tQ6ca64SYYgTbXMjprr6R06.7t2wB4jEug_ ZRoTjx.SoJtDsoVZ2Bvh_RXhPwzxOJWE68u599KTmY8m3ipf3j9.FkqRURvj3.ZZW6ZnJ_KcTDp9 qaST2FIDYnzWgwWwKdmLSD4NkOfHVO26XmwkwbNVWy X-Sonic-MF: X-Sonic-ID: 8bb9052a-c7dd-4690-b2ed-0ef26b9acc41 Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic307.consmr.mail.ne1.yahoo.com with HTTP; Tue, 25 Jun 2024 03:45:58 +0000 Original-Received: by hermes--production-sg3-7b469d9f6-2fcg5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 29080730593ebaffb3f73c6646433075; Tue, 25 Jun 2024 03:45:54 +0000 (UTC) In-Reply-To: <87frt2qwri.fsf@gmail.com> (Visuwesh's message of "Mon, 24 Jun 2024 19:16:09 +0530") X-Mailer: WebService/1.1.22407 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:287870 Archived-At: Visuwesh writes: > [=E0=AE=A4=E0=AE=BF=E0=AE=99=E0=AF=8D=E0=AE=95=E0=AE=B3=E0=AF=8D =E0=AE= =9C=E0=AF=82=E0=AE=A9=E0=AF=8D 24, 2024] Eli Zaretskii wrote: > >>> From: Visuwesh >>> Date: Mon, 24 Jun 2024 09:23:20 +0530 >>>=20 >>> I apologise for neglecting to speak out loud before the emacs-30 branch >>> cut. Is there a chance to get this patch in emacs-30? I am using this >>> patch ever since I sent it to debbugs and I do not face any issue wrt >>> the pcmanfm issue shown here and other applications which do not wipe >>> the clipboard. It would be nice to have it in emacs-30 especially with >>> org-mode gaining yank-media support for files copied/cut from a file >>> manager. >> >> I can be convinced to make such changes on the release branch only if >> all they do is make a function whose return value was not interesting >> to return a useful value. But the patch does more than that: it >> introduces pcase-dolist and replaces some FOO with (car FOO) in at >> least 3 occasions.=20=20 > > Thanks for the review and consideration, Eli. The patch only touched > the return value of a helper function. > >> Such changes make me uncomfortable, especially given that this is a >> case where Emacs needs to jump through hoops to work around >> misfeatures of some 3rd-party utility. > > I suspect similar behaviour will be shown by other file managers. > >> Can you rewrite the patch so that it will be clear at a glance that it >> cannot possibly cause any harm because it just causes the same code >> return a value? If you can, we have a chance of installing this on >> the emacs-30 branch. > > I hope the attached patch makes the intent clear. I added a doc-string > to the internal function too, and removed pcase-dolist and extra car to > make the code simpler. > >> And, btw, I wonder whether enough people use pcmanfm for us to bother >> about this issue. > > AFAIK, pcmanfm is fairly popular among the window manager users crowd > due to its light-weight. I suspect another implication of this is that pcmanfm is actively developed, so is there any chance of your filing a request with their developers that they not disclaim ownership of selections after responding to a request? It is a very peculiar action for any X client, and surely it's not only Emacs that is or will be affected.