From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii 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 15:59:31 +0300 Message-ID: <86sex19o0c.fsf@gnu.org> References: <87a5trjprx.fsf@gmail.com> <875xtzro7j.fsf@gmail.com> <86v81ybksc.fsf@gnu.org> <87frt2qwri.fsf@gmail.com> <87le2ty9b5.fsf@yahoo.com> <87bk3pr63w.fsf@gmail.com> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7663"; mail-complaints-to="usenet@ciao.gmane.io" Cc: luangruo@yahoo.com, 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 15:00:13 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 1sM5mP-0001mC-BP for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 25 Jun 2024 15:00:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sM5mG-000409-1W; Tue, 25 Jun 2024 09:00:04 -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 1sM5mD-0003yq-CS for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 09:00: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 1sM5mD-0005Pg-3U for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 09:00:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sM5mE-0005iA-Lx for bug-gnu-emacs@gnu.org; Tue, 25 Jun 2024 09:00:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 25 Jun 2024 13:00:02 +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.171932038421894 (code B ref 65892); Tue, 25 Jun 2024 13:00:02 +0000 Original-Received: (at 65892) by debbugs.gnu.org; 25 Jun 2024 12:59:44 +0000 Original-Received: from localhost ([127.0.0.1]:36458 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sM5lw-0005h4-1d for submit@debbugs.gnu.org; Tue, 25 Jun 2024 08:59:44 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:49848) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sM5lt-0005gr-IS for 65892@debbugs.gnu.org; Tue, 25 Jun 2024 08:59:42 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sM5lm-0005L1-JQ; Tue, 25 Jun 2024 08:59:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=F1hA4xul57P4QlgI97OMxwWJUzMQeTIxRBjEzFIyT2c=; b=O0t2PjJxzMaO 0pTp/KaWz4/Ps5biNMT3a8z3ASB6xxmgxsrLC1lAmVDUww/dTwxj82oGmANEw9TL+1yIa6vOKQFhA wR/ST19ftS26aqZ7fkmwMQIbdAndRKTPLqjIQeVzWFGTYL6f4yXWLrtf56xJg4/8KmZhJkFYNoBVr jM9OHEBinSTHg0FFa6HM2gJ5gNQALTlnwPIqDHrQM9b6MqlKsCzm29D7JkgQwMyfX61j5iglgcR44 2BBhHY6oJB4Gpcf2lV2LNNYhlay4l3l6EMXy81Dq1fuI/lEKcyy8rgRBos64WZWAKNHaGuKwlhZK+ PqYVJvgrZq3ysj/Bf87YrA==; In-Reply-To: <87bk3pr63w.fsf@gmail.com> (message from Visuwesh on Tue, 25 Jun 2024 10:06:35 +0530) 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:287886 Archived-At: > From: Visuwesh > Cc: Eli Zaretskii , 65892@debbugs.gnu.org > Date: Tue, 25 Jun 2024 10:06:35 +0530 > > BTW, I would be happy if I can do the above copying/cutting files from > _dired_ without resorting to xclip(1) to set non-STRING targets. I > tried to do it with the facilities offered by Emacs but failed to set > _only_ the required target without other things like STRING. The same > happened when I tried to copy an image to the clipboard. I would be > happy to open a bug report or some such if you're interested. Isn't this the expected behavior? The application that sets the clipboard data has no idea what the consumer might need or would want to do with the data. It could past the image, or it could take the image's meta-data (STRING) and do something with it. Or it could take the image's file name and copy the file somewhere. Or something else. This is why it is customary to put all the relevant data types in the clipboard, so that the consumers could take whatever they need.