GNU logs - #72254, boring messages


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 23 Jul 2024 11:04:01 +0000
Resent-Message-ID: <handler.72254.B.17217326241475 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: report 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: 72254 <at> debbugs.gnu.org
X-Debbugs-Original-To: bug-gnu-emacs@HIDDEN
Received: via spool by submit <at> debbugs.gnu.org id=B.17217326241475
          (code B ref -1); Tue, 23 Jul 2024 11:04:01 +0000
Received: (at submit) by debbugs.gnu.org; 23 Jul 2024 11:03:44 +0000
Received: from localhost ([127.0.0.1]:59293 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWDJ1-0000Nj-LJ
	for submit <at> debbugs.gnu.org; Tue, 23 Jul 2024 07:03:44 -0400
Received: from lists.gnu.org ([209.51.188.17]:54340)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <seb@HIDDEN>) id 1sWDIz-0000NZ-6f
 for submit <at> debbugs.gnu.org; Tue, 23 Jul 2024 07:03:42 -0400
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 <seb@HIDDEN>) id 1sWDIu-0000co-5q
 for bug-gnu-emacs@HIDDEN; Tue, 23 Jul 2024 07:03:36 -0400
Received: from 96-100-31-185.ftth.cust.kwaoo.net ([185.31.100.96] helo=k-7.ch)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <seb@HIDDEN>) id 1sWDIs-0003WI-C9
 for bug-gnu-emacs@HIDDEN; Tue, 23 Jul 2024 07:03:35 -0400
Received: from van (_gateway [192.168.1.1]) (Authenticated sender: seb)
 by k-7.ch (Postfix) with ESMTPSA id E120EE810D
 for <bug-gnu-emacs@HIDDEN>; Tue, 23 Jul 2024 12:57:36 +0200 (CEST)
From: =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>
User-Agent: mu4e 1.12.1; emacs 29.4
Date: Tue, 23 Jul 2024 12:57:36 +0200
Message-ID: <87y15sqstb.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-=";
 micalg=pgp-sha256; protocol="application/pgp-signature"
Received-SPF: pass client-ip=185.31.100.96; envelope-from=seb@HIDDEN;
 helo=k-7.ch
X-Spam_score_int: -8
X-Spam_score: -0.9
X-Spam_bar: /
X-Spam_report: (-0.9 / 5.0 requ) BAYES_00=-1.9, RDNS_DYNAMIC=0.982,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001,
 TVD_RCVD_IP=0.001 autolearn=no autolearn_force=no
X-Spam_action: no action
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

--=-=-=
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

Hello,

I got a bug when I try to yank a screenshot made with Gnome-shell into
an org-mode buffer.

From=20the reply I get on the Org-mode mailing list, the bug come from
Emacs itself.


What I do:

* From the system menu of Gnome-shell, I choose the action to take a
  screenshot

* I took a screenshot from a selected zone, confirm the screenshot and
  got a notification message telling me "You can past the screenshot
  from the clipboard"

* On an Org-mode document, I place the point where I want to past the
  screenshot and call the Emacs function "yank-media"


What I get:

* In the mini-buffer, I get the error message:
  "Wrong type argument: sequencep, image/png"

* If I go into the "*Messages*" buffer, the full error message is:
  "seq-do: Wrong type argument: sequencep, image/png"

* If I enable debug-on-error, here is the full backtrace:

Debugger entered--Lisp error: (wrong-type-argument sequencep image/png)
  mapc(#f(compiled-function (elt) #<bytecode 0x1ebc9d0d6093f55d>) image/png)
  seq-do(#f(compiled-function (elt) #<bytecode 0x1ebc9d0d6093f55d>) image/p=
ng)
  #f(compiled-function #'sequence #<bytecode 0x19945316743f723a>)(#f(compil=
ed-function (elt) #<bytecode 0x94038afefa059ab>) image/png)
  apply(#f(compiled-function #'sequence #<bytecode 0x19945316743f723a>) #f(=
compiled-function (elt) #<bytecode 0x94038afefa059ab>) image/png nil)
  seq-map(#f(compiled-function (elt) #<bytecode 0x94038afefa059ab>) image/p=
ng)
  seq-filter(#f(compiled-function (type) #<bytecode 0x17bbb7cb3b4b0c6d>) im=
age/png)
  yank-media--find-matching-media("x/special-\\(?:gnome|KDE|mate\\)-files")
  yank-media()
  funcall-interactively(yank-media)
  command-execute(yank-media record)
  execute-extended-command(nil "yank-media" "yank")
  funcall-interactively(execute-extended-command nil "yank-media" "yank")
  command-execute(execute-extended-command)


What I expected:

* The image present in the clipboard is attached to the org-mode heading
  and a link to this attachment is created under the point


Versions:

* Org-mode: 9.7.2

* Emacs: 29.4

* Gnome-shell: 46.3.1


Best regards

=2D------
Gendre S=C3=A9bastien

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQI/BAEBCAApFiEEaA9vw9ypVj1kP0tAtYb3x3I54p4FAmafjKALHHNlYkBrLTcu
Y2gACgkQtYb3x3I54p6miw//VeURAKE0nmfSDNtXiL+pPdYcvepb0SvhnlEhFWfg
QQG7FhiL2nMN6QtWXOyTg7MThVsiQfKzY2VF721Pdz69HBdZRpZDEY6GZssXNb/6
YhS/olx674XEkVVHFghMyhg+Td2Rrd05BgB5MSv2Cz4yVVwe9/o/G66SfxZELoYW
REr1NzyvsR5uUL+2iEHqltZJ7aOFhL0dNfamazYP+ZWJeZJr4LJG6knIXBYTDE4T
Ad7mtA8lwlrj55GBIk0MIMCqatRzrVvDpEgRflQs1n5aAIb5CRBL46AHyOkoHSNf
ng5F3lqj/OFEn6zPZdIEYEPBEwNSkl/0SgDY2TsVO3ejY4Ez7ikU2v8D92RN93JH
y8sQT13VMVcf5O4O7WyTsqCypS1z3/zEk3vhPAksNGFNsYFhKMX4YbrQSv7WvT5s
8oi8XgMPDJnboBvkBNQrhtq8If1ce9Qgjano1y3gJ70mDOnIdXz1GgpnHlDkDa1U
MkqPIfATeWhN0IrRLX/mkuGI6DDV/BserLJwovTmP2mUFDM+II6nnFsR55Uyt5+C
+INhissk4zlSbioowSP+bSIvJDotp/6DDMdYm8fWuiqRsy4GLGvIbPxYclsaclkj
OtEMKG1jenvi7QMsNj5KINqUpG5MlwvS9Rb73DdzYfI+bFzptvh/fNiTCOiHBml3
9s0=
=Urqu
-----END PGP SIGNATURE-----
--=-=-=--




Message sent:


Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-Mailer: MIME-tools 5.505 (Entity 5.505)
Content-Type: text/plain; charset=utf-8
X-Loop: help-debbugs@HIDDEN
From: help-debbugs@HIDDEN (GNU bug Tracking System)
To: =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>
Subject: bug#72254: Acknowledgement (29.4; Cannot yank media when image
 come from Gnome-shell screenshot)
Message-ID: <handler.72254.B.17217326241475.ack <at> debbugs.gnu.org>
References: <87y15sqstb.fsf@HIDDEN>
X-Gnu-PR-Message: ack 72254
X-Gnu-PR-Package: emacs
Reply-To: 72254 <at> debbugs.gnu.org
Date: Tue, 23 Jul 2024 11:04:02 +0000

Thank you for filing a new bug report with debbugs.gnu.org.

This is an automatically generated reply to let you know your message
has been received.

Your message is being forwarded to the package maintainers and other
interested parties for their attention; they will reply in due course.

Your message has been sent to the package maintainer(s):
 bug-gnu-emacs@HIDDEN

If you wish to submit further information on this problem, please
send it to 72254 <at> debbugs.gnu.org.

Please do not send mail to help-debbugs@HIDDEN unless you wish
to report a problem with the Bug-tracking system.

--=20
72254: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D72254
GNU Bug Tracking System
Contact help-debbugs@HIDDEN with problems


Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 23 Jul 2024 11:23:01 +0000
Resent-Message-ID: <handler.72254.B72254.17217337663306 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>
Cc: 72254 <at> debbugs.gnu.org
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.17217337663306
          (code B ref 72254); Tue, 23 Jul 2024 11:23:01 +0000
Received: (at 72254) by debbugs.gnu.org; 23 Jul 2024 11:22:46 +0000
Received: from localhost ([127.0.0.1]:59329 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWDbR-0000rG-P7
	for submit <at> debbugs.gnu.org; Tue, 23 Jul 2024 07:22:46 -0400
Received: from mail-wm1-f50.google.com ([209.85.128.50]:56597)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1sWDbP-0000r8-EM
 for 72254 <at> debbugs.gnu.org; Tue, 23 Jul 2024 07:22:44 -0400
Received: by mail-wm1-f50.google.com with SMTP id
 5b1f17b1804b1-4266b1f1b21so39985715e9.1
 for <72254 <at> debbugs.gnu.org>; Tue, 23 Jul 2024 04:22:38 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721733698; x=1722338498; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=QT9NgNS11fMtPwY6/4l4vdyrzEwz9Q7e+Pzo8pw9YKA=;
 b=HeR75X1e+d9AgEEsKMBuJoFm7NmSOHgqF2iwfDM9k4d8/B2WPRRfZf/CihAtyWi/V7
 jbQYbGPuV1PmFu/UeQHuvqdspt/M1AIQWnEHpee/2ms1TNX+DLbwPXDsDB++O+eLEUku
 BtyDMcJA/9cuXq0wCSNft1uc0HhMOo5wNIoJsKi7WjT5zbyv4KcppoBwCN1doyfotVeI
 k8Y+uawyKJLFTO5voNA4beBo/nBodSrMHtsaV8KzQaxRp2Z0rWCGk+6qNd/4jf/v68NX
 fEnkUfLY/PZGCaeNLihmzObUOXKa9kpmUeULqhpwNNldoAtgSSFuZmy4pliS3U6gy1Oi
 PLeg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721733698; x=1722338498;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=QT9NgNS11fMtPwY6/4l4vdyrzEwz9Q7e+Pzo8pw9YKA=;
 b=A2r/J/TH1YJzp94muexmHUR4S++OZj/h4CQ1s7TgW1dKJNS/o/ng2Si1/39EMWNCyx
 yXf4oP47ysMJgWT1KSQowJ3qvYH3yx4YveQ6zaa8Hrj+F8P8kbvb4vHtKUcnCjsHAs5P
 gfjl0K2FwWT0vg+OdGriQ+ykCUDoAwd3bWlBcJfLyOvX0WWAw1lcTo3gJQc2IZsHu8hR
 sZEnMWEo64ZCB2r1BtLN5yPh7VknXg+/VIAEPqiNYMLRhdh1amdu8J4F71My+JI/Fwkg
 zd8fsSOwSlqiwR74WhncMavYMFKRrxU04lG2BxOzn7wVa1bLGzbogGo6WpNUTbwqmDSj
 Rh7A==
X-Gm-Message-State: AOJu0Yw9U/ORi9uy9nvX6c4Xqe/ImIouxW+c1kyEAp4uD8JUnTcnIvPX
 9CoUlXNWsq0IQlpXQKdu+QIPcSjWNbcpnuKnowRD4PJSMjc3+f+NHLFpcg==
X-Google-Smtp-Source: AGHT+IFo9f9G9D+xKkT3KZ+s4U65d3G9q8+fdearbq07st8bYR99AP3e7pjL1scacKV9M29hndN6HQ==
X-Received: by 2002:a05:600c:4f96:b0:426:5b22:4d61 with SMTP id
 5b1f17b1804b1-427dc52547emr72075855e9.22.1721733697637; 
 Tue, 23 Jul 2024 04:21:37 -0700 (PDT)
Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-427d2a8d930sm197466965e9.32.2024.07.23.04.21.36
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Jul 2024 04:21:37 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87y15sqstb.fsf@HIDDEN> ("=?UTF-8?Q?S=C3=A9bastien?=
 Gendre"'s message of "Tue, 23 Jul 2024 12:57:36 +0200")
References: <87y15sqstb.fsf@HIDDEN>
Date: Tue, 23 Jul 2024 13:21:36 +0200
Message-ID: <87wmlc9wvz.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Tue, 23 Jul 2024 12:57:36 +0200, S=C3=A9bastien Gendre <seb@HIDDEN=
> said:

    S=C3=A9bastien> Hello,
    S=C3=A9bastien> I got a bug when I try to yank a screenshot made with G=
nome-shell into
    S=C3=A9bastien> an org-mode buffer.

    S=C3=A9bastien> From the reply I get on the Org-mode mailing list, the =
bug come from
    S=C3=A9bastien> Emacs itself.


    S=C3=A9bastien> What I do:

    S=C3=A9bastien> * From the system menu of Gnome-shell, I choose the act=
ion to take a
    S=C3=A9bastien>   screenshot

    S=C3=A9bastien> * I took a screenshot from a selected zone, confirm the=
 screenshot and
    S=C3=A9bastien>   got a notification message telling me "You can past t=
he screenshot
    S=C3=A9bastien>   from the clipboard"

    S=C3=A9bastien> * On an Org-mode document, I place the point where I wa=
nt to past the
    S=C3=A9bastien>   screenshot and call the Emacs function "yank-media"

If instead of running `yank-media' at this point, what happens if you
evaluate:

   (gui-get-selection 'CLIPBOARD 'TARGETS)

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Eli Zaretskii <eliz@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 23 Jul 2024 11:53:01 +0000
Resent-Message-ID: <handler.72254.B72254.172173554517165 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Robert Pluim <rpluim@HIDDEN>
Cc: 72254 <at> debbugs.gnu.org, seb@HIDDEN
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.172173554517165
          (code B ref 72254); Tue, 23 Jul 2024 11:53:01 +0000
Received: (at 72254) by debbugs.gnu.org; 23 Jul 2024 11:52:25 +0000
Received: from localhost ([127.0.0.1]:59379 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWE49-0004Sm-3O
	for submit <at> debbugs.gnu.org; Tue, 23 Jul 2024 07:52:25 -0400
Received: from eggs.gnu.org ([209.51.188.92]:36906)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1sWE45-0004SX-6I
 for 72254 <at> debbugs.gnu.org; Tue, 23 Jul 2024 07:52:23 -0400
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 <eliz@HIDDEN>)
 id 1sWE3u-0006VZ-Nb; Tue, 23 Jul 2024 07:52:10 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From:
 Date; bh=qT3MZ94fH1h+X9tv+jf9jfoBK01cncFuc3ClrZ1zBfE=; b=Q3XW20BZClzWeb2AwkET
 ljR7Yb5CdjoEsz7eMkA0Ao/+SIh6V4HMqKH1MDX7EGaSkS49C9fSAq8m75+gk6aZ8hA5Q29lIswVU
 j3CU6yeyLbR9F+CQW9bYh7/6kOjLDNSwRTYlNJbc7T88kErmNWFdud10sudFn+gSGykKIrqxG0qp/
 FqwM/jWz4VdEgF2Na2eqH1f1CkCc8TAtjunGSrH9qcul1SqKZoBLhJLUakFjLQ+Nx/SSzJl5iftRg
 qbJ8pjIS8aQ1OzINpEZ0u0xOBaAZ8cPDtkQcPeBs/+qocXVvFhpp38qHauFWe1kaFiygwps3dBzOc
 kRxIaYq1Di9QYw==;
Date: Tue, 23 Jul 2024 14:52:07 +0300
Message-Id: <864j8g9vh4.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
In-Reply-To: <87wmlc9wvz.fsf@HIDDEN> (message from Robert Pluim on Tue, 23
 Jul 2024 13:21:36 +0200)
References: <87y15sqstb.fsf@HIDDEN> <87wmlc9wvz.fsf@HIDDEN>
MIME-version: 1.0
Content-type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Spam-Score: -2.3 (--)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 72254 <at> debbugs.gnu.org
> From: Robert Pluim <rpluim@HIDDEN>
> Date: Tue, 23 Jul 2024 13:21:36 +0200
> 
> >>>>> On Tue, 23 Jul 2024 12:57:36 +0200, Sébastien Gendre <seb@HIDDEN> said:
> 
>     Sébastien> Hello,
>     Sébastien> I got a bug when I try to yank a screenshot made with Gnome-shell into
>     Sébastien> an org-mode buffer.
> 
>     Sébastien> From the reply I get on the Org-mode mailing list, the bug come from
>     Sébastien> Emacs itself.
> 
> 
>     Sébastien> What I do:
> 
>     Sébastien> * From the system menu of Gnome-shell, I choose the action to take a
>     Sébastien>   screenshot
> 
>     Sébastien> * I took a screenshot from a selected zone, confirm the screenshot and
>     Sébastien>   got a notification message telling me "You can past the screenshot
>     Sébastien>   from the clipboard"
> 
>     Sébastien> * On an Org-mode document, I place the point where I want to past the
>     Sébastien>   screenshot and call the Emacs function "yank-media"
> 
> If instead of running `yank-media' at this point, what happens if you
> evaluate:
> 
>    (gui-get-selection 'CLIPBOARD 'TARGETS)

In addition, please show the value of yank-media--registered-handlers
at this point.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 23 Jul 2024 12:28:01 +0000
Resent-Message-ID: <handler.72254.B72254.172173767320659 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 72254 <at> debbugs.gnu.org
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.172173767320659
          (code B ref 72254); Tue, 23 Jul 2024 12:28:01 +0000
Received: (at 72254) by debbugs.gnu.org; 23 Jul 2024 12:27:53 +0000
Received: from localhost ([127.0.0.1]:59422 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWEcS-0005N9-I7
	for submit <at> debbugs.gnu.org; Tue, 23 Jul 2024 08:27:52 -0400
Received: from mail-wm1-f54.google.com ([209.85.128.54]:58487)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1sWEcQ-0005Mv-Lp
 for 72254 <at> debbugs.gnu.org; Tue, 23 Jul 2024 08:27:51 -0400
Received: by mail-wm1-f54.google.com with SMTP id
 5b1f17b1804b1-427cede1e86so39143885e9.0
 for <72254 <at> debbugs.gnu.org>; Tue, 23 Jul 2024 05:27:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721737600; x=1722342400; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=9vdjc3+agyIIEmin3vxDaaBNxBAeW+ZxbtZ761jvp+M=;
 b=AL2iesBgpf4kuil/MiRDIllNnPt0wbQBwamPkHoD2oewerksVYrJafFlqdbSKECXNw
 14XQZiZYsMyYVWtfKPpl2KwkMyPh/K+edyV3c9u3Q4udEFIL0R1VeKfyjugRpAzs+mqg
 ziJDG5tPE5ijxvOFMDlZUjgdylK0C/nzSOy/E6OcxOCyb5xXtiJcqcjT+/mtOqWEt0K8
 cXGLYyRSRwIoL8MaCH0LUC/NXj4Is9tL1og3gTAhhY7nAsy4cS/daBk7YrTD4lQEhKav
 5KXLNrkXGw2gRoGmj6TisS8yKbLNfs6GUfxlRoAocdG5Huyc7A965jCgaizGAGFNAC+B
 GSZw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721737600; x=1722342400;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=9vdjc3+agyIIEmin3vxDaaBNxBAeW+ZxbtZ761jvp+M=;
 b=L+wqnz+PelqJpqWJiUkBM2gOom9I6hauaNuAdNyAekZRxIPFI0ATUgssJ5SUtj2LEf
 GZyCTY5YQEIRVdG2WNaNGdqi9jboYOVvWjuqmo/L6+dHKlVVedyV/OEXB5JnN3E/Ix45
 IQZWW//KnjJ+4Ju5/kvu9J8M4oBo4usVzPcBYHIXY8gtUvWfnmL76uu+DztvVu3700Lk
 SS5p/PhhutEH888IxPVBnNQMozxNBZ9o/lLjckrWBbuCMxm2oBPLs057O0jUdOjqahX1
 W4gHEcARAXI6ST1SfwN2vyP6aGgF29D3fhC/jKL6jMaqW07ZiiDOfEpm5O5WEeOEA3X6
 wP8w==
X-Gm-Message-State: AOJu0YxB6s43iZynzIztUgTN2mfSpb7kAu3cGvLDzvrMmKXpUoy2Xfyo
 SUaLe8dthYsgP0aR46TBPqA2N9y4iggjD25Syryge1cvTLe4w1bt
X-Google-Smtp-Source: AGHT+IGtNyF+apVk5uJBJ2pgATQHrl4hFzlXldWTgn3ofQx90jjfokn0Xm7JTGKKZwFAcvw96TDNOA==
X-Received: by 2002:a5d:6dc8:0:b0:368:7f59:a9f2 with SMTP id
 ffacd0b85a97d-369bae23a52mr6544331f8f.10.1721737600091; 
 Tue, 23 Jul 2024 05:26:40 -0700 (PDT)
Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-368786847e6sm11431534f8f.18.2024.07.23.05.26.39
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Jul 2024 05:26:39 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87plr4qpqy.fsf@HIDDEN> ("=?UTF-8?Q?S=C3=A9bastien?=
 Gendre"'s message of "Tue, 23 Jul 2024 14:03:49 +0200")
References: <87y15sqstb.fsf@HIDDEN> <87wmlc9wvz.fsf@HIDDEN>
 <87plr4qpqy.fsf@HIDDEN>
Date: Tue, 23 Jul 2024 14:26:38 +0200
Message-ID: <87o76o9tvl.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Tue, 23 Jul 2024 14:03:49 +0200, S=C3=A9bastien Gendre <seb@HIDDEN=
> said:

    S=C3=A9bastien> Robert Pluim <rpluim@HIDDEN> writes:
    >> If instead of running `yank-media' at this point, what happens if you
    >> evaluate:
    >>=20
    >> (gui-get-selection 'CLIPBOARD 'TARGETS)

    S=C3=A9bastien> If I evaluate this, I get the result:

    S=C3=A9bastien> image/png

Hmm, that=CA=BCs supposed to be a vector, not a symbol. Could you try the
following patch and see if it improves things?

diff --git a/lisp/term/x-win.el b/lisp/term/x-win.el
index ced2750202b..cc952672580 100644
--- a/lisp/term/x-win.el
+++ b/lisp/term/x-win.el
@@ -1370,6 +1370,16 @@ gui-backend-get-selection
   (x-get-selection-internal selection-symbol target-type
                             time-stamp terminal))
=20
+(cl-defmethod gui-backend-get-selection ((selection-symbol (eql 'CLIPBOARD=
))
+                                         (target-type (eql 'TARGETS))
+                                         &context (window-system x)
+                                         &optional time-stamp terminal)
+  (let ((sel (x-get-selection-internal selection-symbol target-type
+                                       time-stamp terminal)))
+    (if (vectorp sel)
+        sel
+      (vector sel))))
+
 ;; Initiate drag and drop
 (add-hook 'after-make-frame-functions 'x-dnd-init-frame)
 (define-key special-event-map [drag-n-drop] 'x-dnd-handle-drag-n-drop-even=
t)


Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 23 Jul 2024 12:52:02 +0000
Resent-Message-ID: <handler.72254.B72254.17217391111237 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 72254 <at> debbugs.gnu.org
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.17217391111237
          (code B ref 72254); Tue, 23 Jul 2024 12:52:02 +0000
Received: (at 72254) by debbugs.gnu.org; 23 Jul 2024 12:51:51 +0000
Received: from localhost ([127.0.0.1]:59451 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWEzf-0000Jt-0Y
	for submit <at> debbugs.gnu.org; Tue, 23 Jul 2024 08:51:51 -0400
Received: from mail-oi1-f175.google.com ([209.85.167.175]:60792)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1sWEzb-0000JY-Tf
 for 72254 <at> debbugs.gnu.org; Tue, 23 Jul 2024 08:51:49 -0400
Received: by mail-oi1-f175.google.com with SMTP id
 5614622812f47-3d9e13ef9aaso3336638b6e.1
 for <72254 <at> debbugs.gnu.org>; Tue, 23 Jul 2024 05:51:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721739037; x=1722343837; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=fcMoVV2G//yxje/X+3LRFG9xJAf5Z7E/S7sXwXetzcs=;
 b=Cq58izSx48zKV7z+LHRJWObfZZaSeldVGQTiF1us/WFwfPIDWPiU27y7RShAxGrB+b
 9o+BqiaEeGV947b8n8cQRESL7vqAGuRKghhzSFKbvUaUDeiUkCZm073UeVzIeaTTVaia
 EGnxDrv0ZDvW9d65zRNqLcj7qshPPUgPhJ8fVM6VyvI0xgBtAkA7QknCFzZEHytTBCeD
 Ke+MdnSchHbzDSgcJuPwzDWc2u/KMqkj+1CFJDRd7YD2+V1TaM4UWDAhZ5mSBNVzdm2e
 uptEvMfkKnoGZRjtahXf/L2sMh9x/fgw0bvGiDq3pF9aolBObW6NxBuzxDTllD3YQ4Kz
 berw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721739037; x=1722343837;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=fcMoVV2G//yxje/X+3LRFG9xJAf5Z7E/S7sXwXetzcs=;
 b=qvI9u59y8r+9KgNRBG5y8FdOKXrGg8haM9CGH+I+4OGExae3czAEamMUZyQLv0qNWX
 3zScXrjR4W8+7IbmjNSx8hWKX6FdcSlqIb4c8R2qfl7qz+JBo7bUcLyUL9clX+uQf8sW
 cIF4Nv2gUCPGFAdtk3cHR0/4180MlFvs4h3fJox7NqH0hKSH6SaeC3BTxyDe4QoMqbkj
 guqD/TCqqAjlWBHlXtyUKouCo3vme3Awfxm5EflgeI85x7b3KSPt/EbTNxBOYMXlARQY
 0n1DKPTvMgd/yx6rr3kkPK69Y+9Bgyq6nML5sLrE7Kv5VzTwLWcDunoFpO+BuBub9EEp
 hsPQ==
X-Gm-Message-State: AOJu0Yx2F6MitJ4uo31NIL6K6MeQu+ejHjvVTPEpw9U6lU6y96amjpl0
 wwevEzw2tQcQxm7O/Rdbjctai64Yl579qa/+c08wmgZ0xpn++yWe
X-Google-Smtp-Source: AGHT+IEaC3AYlZWBrIt8daljAhcawIWN1WQHC+fz4JjzsdzCV8bo04WIt6H9d6xCvG31WdSUBvHAbA==
X-Received: by 2002:a05:6808:14d0:b0:3d5:6446:3407 with SMTP id
 5614622812f47-3dae9858c84mr10776526b6e.47.1721739037293; 
 Tue, 23 Jul 2024 05:50:37 -0700 (PDT)
Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id
 d75a77b69052e-44f9cdcfdc3sm43230911cf.96.2024.07.23.05.50.36
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Jul 2024 05:50:36 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87ed7kqoe4.fsf@HIDDEN> ("=?UTF-8?Q?S=C3=A9bastien?=
 Gendre"'s message of "Tue, 23 Jul 2024 14:33:07 +0200")
References: <87y15sqstb.fsf@HIDDEN> <87wmlc9wvz.fsf@HIDDEN>
 <87plr4qpqy.fsf@HIDDEN> <87o76o9tvl.fsf@HIDDEN>
 <87ed7kqoe4.fsf@HIDDEN>
Date: Tue, 23 Jul 2024 14:50:34 +0200
Message-ID: <87ed7k9srp.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Tue, 23 Jul 2024 14:33:07 +0200, S=C3=A9bastien Gendre <seb@HIDDEN=
> said:

    S=C3=A9bastien> I have evaluate the added method, but when I evaluate (=
gui-get-selection
    S=C3=A9bastien> 'CLIPBOARD 'TARGETS) I still get the result:

How did you evaluate the `cl-defmethod'? I tested with 'C-x C-e' after
the form.

Maybe visiting yank-media.el and doing 'M-x eval-buffer' will help.

    S=C3=A9bastien> image/png

    S=C3=A9bastien> And when I run the command yank-media, I have this trac=
eback:

    S=C3=A9bastien> Debugger entered--Lisp error: (wrong-type-argument sequ=
encep image/png)
    S=C3=A9bastien>   mapc(#f(compiled-function (elt) #<bytecode 0x1ebc9d0d=
6093f55d>) image/png)
    S=C3=A9bastien>   seq-do(#f(compiled-function (elt) #<bytecode 0x1ebc9d=
0d6093f55d>) image/png)
    S=C3=A9bastien>   #f(compiled-function #'sequence #<bytecode 0x19945316=
743f723a>)(#f(compiled-function (elt) #<bytecode 0x94038b48f0aa5ab>) image/=
png)
    S=C3=A9bastien>   apply(#f(compiled-function #'sequence #<bytecode
    0x19945316743f723a> ) #f(compiled-function (elt) #<bytecode
    0x94038b48f0aa5ab> ) image/png nil)
    S=C3=A9bastien>   seq-map(#f(compiled-function (elt) #<bytecode 0x94038=
b48f0aa5ab>) image/png)
    S=C3=A9bastien>   seq-filter(#f(compiled-function (type) #<bytecode 0x1=
7bbb7cb3b4b0c6d>) image/png)
    S=C3=A9bastien>   yank-media--find-matching-media("x/special-\\(?:gnome=
|KDE|mate\\)-files")
    S=C3=A9bastien>   yank-media()
    S=C3=A9bastien>   funcall-interactively(yank-media)
    S=C3=A9bastien>   command-execute(yank-media record)
    S=C3=A9bastien>   execute-extended-command(nil "yank-media" "yank")
    S=C3=A9bastien>   funcall-interactively(execute-extended-command nil "y=
ank-media" "yank")
    S=C3=A9bastien>   command-execute(execute-extended-command)

Yes, it=CA=BCs still using the old `gui-get-selection'.

Maye you need to rebuild emacs with the patch.

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 23 Jul 2024 13:12:01 +0000
Resent-Message-ID: <handler.72254.B72254.17217402993307 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 72254 <at> debbugs.gnu.org
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.17217402993307
          (code B ref 72254); Tue, 23 Jul 2024 13:12:01 +0000
Received: (at 72254) by debbugs.gnu.org; 23 Jul 2024 13:11:39 +0000
Received: from localhost ([127.0.0.1]:59498 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWFIp-0000rH-9q
	for submit <at> debbugs.gnu.org; Tue, 23 Jul 2024 09:11:39 -0400
Received: from mail-wm1-f49.google.com ([209.85.128.49]:47163)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1sWFIm-0000r3-MB
 for 72254 <at> debbugs.gnu.org; Tue, 23 Jul 2024 09:11:37 -0400
Received: by mail-wm1-f49.google.com with SMTP id
 5b1f17b1804b1-4277a5ed48bso41277085e9.2
 for <72254 <at> debbugs.gnu.org>; Tue, 23 Jul 2024 06:11:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721740226; x=1722345026; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=5EeFydGcD4sEKtl5UXP8T7NqsatJvbcRKNQpF7Kac7c=;
 b=H1Usglu/1MuyBTnjfN8/Yqz3DukVLnBq/pXKK7NE8ivI8YP4LZkEAe9nYQTSzYt61R
 agC/3bcHoW79JP+2898vh922rEb3uPfjXGsuCzgom4AWKF5qL1xYhm8lgeb9Jo4WLSbb
 4YIg4K2fXUlNvnPTeVXM3XvCIA7rHQNVal3rYmrPoLMUCoV+/Z3KgGq9BF5iTseBUK8+
 qi7C408GVniC5hLrHZJcqq4ZJ44Ao2R3tbxJypuGjQ7P8+iol5WvcVU9uXVuFbHuqrD/
 5tx+OZcoxuJLLU3CyEl9NYJEO3ziAq2Kwl45MgmTopVBlinP1d+4FXDHlykypJVOU5TT
 06PQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721740226; x=1722345026;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=5EeFydGcD4sEKtl5UXP8T7NqsatJvbcRKNQpF7Kac7c=;
 b=JfW+1pWulNjAlI8EZwIcNt2MEXja4RqLZISI9CH5NIkXl7qdPjJfAcrEZP1qrrwA4G
 gIGy4QY2D225fwNzrShpZ8zwuFLpiyCs92guhQKFdW82lI8nTWAYx5VX20oLkrjxdmV0
 It0w5+juPO0RF/8ZoOoMVcl0HeddqYoQ5L44zKd+nfFvTkrg0vfRLW3pXxrGXXyKxc4h
 WJeMpE7oSNM/PTKXxu9VgPtdwYOKmoLu7N9K2W9dsWRpffPqwD7xEbdVR09f5UFMj+4w
 vLXp6i94jGT2Crnnx4tR4UuKEph4tsYsShHAL57bAaitcBYBKF/o1ZDMuYf6setkZuNa
 /FiQ==
X-Gm-Message-State: AOJu0Yz5kgs/HlBmRl7KM0cVzPAzebl2Wlz5030yJhFppkZbvOyO8gd+
 6MXp6Mmc4zY0i8YUbMGz/q8a3VLkFQHVDhhb1++d6YvmP1Lq75ye
X-Google-Smtp-Source: AGHT+IGN1B7X48b9o0VLCbjbHS3V3O+S4rqh9tVkdewaFwAaMiIIhPt2g3CIoK0Mb96yZPjZb5huSA==
X-Received: by 2002:a05:600c:5008:b0:426:6ed2:6130 with SMTP id
 5b1f17b1804b1-427ecff3ee6mr19327385e9.14.1721740225956; 
 Tue, 23 Jul 2024 06:10:25 -0700 (PDT)
Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-427d2a5c564sm198122155e9.14.2024.07.23.06.10.25
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Jul 2024 06:10:25 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87ttggp8e0.fsf@HIDDEN> ("=?UTF-8?Q?S=C3=A9bastien?=
 Gendre"'s message of "Tue, 23 Jul 2024 15:04:07 +0200")
References: <87y15sqstb.fsf@HIDDEN> <87wmlc9wvz.fsf@HIDDEN>
 <87plr4qpqy.fsf@HIDDEN> <87o76o9tvl.fsf@HIDDEN>
 <87ed7kqoe4.fsf@HIDDEN> <87ed7k9srp.fsf@HIDDEN>
 <87ttggp8e0.fsf@HIDDEN>
Date: Tue, 23 Jul 2024 15:10:24 +0200
Message-ID: <87a5i89run.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Tue, 23 Jul 2024 15:04:07 +0200, S=C3=A9bastien Gendre <seb@HIDDEN=
> said:

    S=C3=A9bastien> Robert Pluim <rpluim@HIDDEN> writes:
    >> How did you evaluate the `cl-defmethod'? I tested with 'C-x C-e' aft=
er
    >> the form.
    >>=20
    >> Maybe visiting yank-media.el and doing 'M-x eval-buffer' will help.

    S=C3=A9bastien> If I visit yank-media.el and eval the buffer, calling (=
gui-get-selection
    S=C3=A9bastien> 'CLIPBOARD 'TARGETS) inside my org-mode buffer after do=
ing a screenshot
    S=C3=A9bastien> give me the same result.

    S=C3=A9bastien> I evaluated the `cl-defmethod` by coping it inside the =
*Scratch* buffer
    S=C3=A9bastien> and evaluate it with key binding `C-x C-e`.

That=CA=BCs exactly what I do, so I don=CA=BCt understand why it=CA=BCs not=
 working
for you. What about if you replace the body of the `cl-defmethod' with
something like

(message "Hello world!")

and evaluate it, does that make any difference?

    S=C3=A9bastien> I have installed Emacs on my system with the distributi=
on package
    S=C3=A9bastien> manager. So, modifying lisp/term/x-win.el.gz will resul=
t in conflict
    S=C3=A9bastien> with the package manager.

    S=C3=A9bastien> Robert Pluim <rpluim@HIDDEN> writes:
    >> Maye you need to rebuild emacs with the patch.

    S=C3=A9bastien> I have never built Emacs from the sources code. I=C2=A0=
ignore the compilation
    S=C3=A9bastien> flags used by my distribution.

OK. We=CA=BCll work on that later if we have to.

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 23 Jul 2024 14:51:01 +0000
Resent-Message-ID: <handler.72254.B72254.172174621225247 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 72254 <at> debbugs.gnu.org
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.172174621225247
          (code B ref 72254); Tue, 23 Jul 2024 14:51:01 +0000
Received: (at 72254) by debbugs.gnu.org; 23 Jul 2024 14:50:12 +0000
Received: from localhost ([127.0.0.1]:60498 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWGqC-0006Z9-42
	for submit <at> debbugs.gnu.org; Tue, 23 Jul 2024 10:50:12 -0400
Received: from mail-wr1-f52.google.com ([209.85.221.52]:44082)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1sWGqA-0006Yu-Ta
 for 72254 <at> debbugs.gnu.org; Tue, 23 Jul 2024 10:50:11 -0400
Received: by mail-wr1-f52.google.com with SMTP id
 ffacd0b85a97d-36844375001so3176609f8f.0
 for <72254 <at> debbugs.gnu.org>; Tue, 23 Jul 2024 07:50:06 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721746140; x=1722350940; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=N8kV+S8XzTkQGEPgCM8a1W13znqcxqB9sCMR3+Adnhs=;
 b=UEN4UgrWAbAIccolZnYusg/ZXTQHCd25YSTdGHSFAdPasQZoge9TLhirwRhdc+cueF
 Sdtj87KhghqMkojtv40O3fobPVzcAaUKNLGEkpkWnsV58TEPhOuwKCVO4M3uTVqQCIEB
 hPW2ixgROmGg42SKJ+/Brmw+UA3ZzClnXIg/UGfbZIXwaF/H2k1clv5jB3afkAqwzeZD
 c1vQ3N893l7KVCsSrH5IKJ16PwkK7F3sERSuMM6qxUYKPE8ve+hmspFuOWYT/t5zyG63
 Ap4/rg4NSWMD48z2LiqWxxDYisrZG3F+RbUJwrNye05ysVbaKUHOZDe+f8cmwKjb7Tmb
 OnWw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721746140; x=1722350940;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=N8kV+S8XzTkQGEPgCM8a1W13znqcxqB9sCMR3+Adnhs=;
 b=aAVcRwRNZUrjkMqHvAb9m0n4n6Os/oAQSXYe2BB2gh86e2vkEcoZ8I3hm2iGZmJuq8
 PJePxscu5OiuRosWgwf0vJdPron08RYblUau7pkQXEIxnVSRDUAEzkZaHnnWISyJJ7Z7
 GYpkoMH8QyJRB1dssEpqsNI5ev69eL9EAbf1yX6nwOnbt7WTUOdDp76xnxG7Bf+VQd4k
 lG58WrJTBFLLklFEB9ZlxTRi4t53TRUomP9XZROVB/cVuMIRzdsTgSTt2P+w7oSD3Pfr
 qWwNZx8v4uWU5Ox7OuikzptTBK0rfHEeRj6e46AX+peKFc/j7fnaRxTl2oDtrBVFHED5
 HEgw==
X-Gm-Message-State: AOJu0YzlbLUZurnkkgadgc0RB6rVhb9ZnmmBS7c+3CeKT8z3bcVcFEOb
 ACg6tpUZGlWnLCro9PnTD2042XZW3QiT46GFjkJxiB3MaLgQ7aug
X-Google-Smtp-Source: AGHT+IE5sqzd/9LBX8BUEmTqMAI9BZumqu6qQXkkldij7fQ6fQY/Szn1EgFDfl4aqQWQBNNfB3vcEg==
X-Received: by 2002:a5d:64cf:0:b0:362:80af:1adc with SMTP id
 ffacd0b85a97d-369bb2a1d3fmr8392528f8f.53.1721746140328; 
 Tue, 23 Jul 2024 07:49:00 -0700 (PDT)
Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-3687868ac48sm11785062f8f.29.2024.07.23.07.48.59
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Jul 2024 07:48:59 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87le1sp7ts.fsf@HIDDEN> ("=?UTF-8?Q?S=C3=A9bastien?=
 Gendre"'s message of "Tue, 23 Jul 2024 15:16:15 +0200")
References: <87y15sqstb.fsf@HIDDEN> <87wmlc9wvz.fsf@HIDDEN>
 <87plr4qpqy.fsf@HIDDEN> <87o76o9tvl.fsf@HIDDEN>
 <87ed7kqoe4.fsf@HIDDEN> <87ed7k9srp.fsf@HIDDEN>
 <87ttggp8e0.fsf@HIDDEN> <87a5i89run.fsf@HIDDEN>
 <87le1sp7ts.fsf@HIDDEN>
Date: Tue, 23 Jul 2024 16:48:59 +0200
Message-ID: <875xsw9nac.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Tue, 23 Jul 2024 15:16:15 +0200, S=C3=A9bastien Gendre <seb@HIDDEN=
> said:

    S=C3=A9bastien> If I evaluate this:

    S=C3=A9bastien> (cl-defmethod gui-backend-get-selection ((selection-sym=
bol (eql 'CLIPBOARD))
    S=C3=A9bastien>                                          (target-type (=
eql 'TARGETS))
    S=C3=A9bastien>                                          &context (wind=
ow-system x)
    S=C3=A9bastien>                                          &optional time=
-stamp terminal)
    S=C3=A9bastien>   (message "Hello World!"))


    S=C3=A9bastien> And then take an screenshot and evaluate (gui-get-selec=
tion 'CLIPBOARD
    S=C3=A9bastien> 'TARGETS) from an org-mode buffer, I still get the same=
 result: image/png

OK. Which Linux distribution is this?

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Visuwesh <visuweshm@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 23 Jul 2024 16:36:01 +0000
Resent-Message-ID: <handler.72254.B72254.172175254414147 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Robert Pluim <rpluim@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 72254 <at> debbugs.gnu.org, =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.172175254414147
          (code B ref 72254); Tue, 23 Jul 2024 16:36:01 +0000
Received: (at 72254) by debbugs.gnu.org; 23 Jul 2024 16:35:44 +0000
Received: from localhost ([127.0.0.1]:60612 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWIUJ-0003g7-Vd
	for submit <at> debbugs.gnu.org; Tue, 23 Jul 2024 12:35:44 -0400
Received: from mail-pl1-f194.google.com ([209.85.214.194]:41997)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <visuweshm@HIDDEN>) id 1sWIUG-0003fp-LB
 for 72254 <at> debbugs.gnu.org; Tue, 23 Jul 2024 12:35:42 -0400
Received: by mail-pl1-f194.google.com with SMTP id
 d9443c01a7336-1fc56fd4de1so146395ad.0
 for <72254 <at> debbugs.gnu.org>; Tue, 23 Jul 2024 09:35:35 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721752470; x=1722357270; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date
 :message-id:reply-to;
 bh=fD1cT/idW4beVZsvq+pg2PLvlvQsr0Uf9Q+12nZ2fvY=;
 b=mm2HVfTlqQaI6GLoaSYE8QGBqrttPrOwNuBrJNcY6epc4jpxSa9Kw0Z9L7k6n8pSOW
 zSjQeA8De8Y37gd7BOKSB/61VhgxpbMkZAy2PzstknrnJst3YKHEgHheW56CAr2Xd3f+
 HuJg/Ljl9KnnP07x6z9G7WN9p2gHwT1tD9A5b+0zsj5TDy/Tpd0DdU48+8EPT8BAtwiK
 8LmRrVeikwuCe88xPpNxkICEqEDzLAfnHDYE0+5KAFxKrvZjhcAXhNQzIOE3tEZ5VywD
 oLvTfinnLI7dMKJekhOYzJuFyL96e6ezZb4JaqSmUwDK8VtZQ7MwQHjxFZZP4435Cx54
 Xxxw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721752470; x=1722357270;
 h=content-transfer-encoding:mime-version:user-agent:message-id:date
 :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from
 :to:cc:subject:date:message-id:reply-to;
 bh=fD1cT/idW4beVZsvq+pg2PLvlvQsr0Uf9Q+12nZ2fvY=;
 b=X2dZ105BsjcWNLiZt6GCPUuWls+N6Iule9ecmV4oAykeYrDjFD8qChiQsIAyvxcHMI
 dbi//Cpf0DmDCnvSk2WbR6syPbPvA/IXeQOI7BTEQ8I+LU+syifqs50UiM/aA2xkLhqT
 1rYd1LRF+WPxmfQ3s2apU0ENnqQethu8Xe4BXvTRGJzUpI3IBG2KzWv4EC+TlAv6bwln
 f3Yxj28xj3ru7cZFegCI+05wcLSe84WjKkET1HMPJBFsKgBnjVP4e+ABc4M+diNEAVgf
 sues2lKeG4eHUGL/YXtZlXJHYQWygDlI9DUzddKAt+Clnmm2U4KPweIXGrTwZ4Ek48+z
 znYw==
X-Forwarded-Encrypted: i=1;
 AJvYcCXOjTmVtgqzCHkH/xbkyYqva99QEejAqYME37Y3R/X2wFUJygnUJKDCmRhGw4NXVxDKGsWVBMsJcG1t6uky2+Aaa/IcVoE=
X-Gm-Message-State: AOJu0YxD+2oQ1Luu29XzPWiuwgOuk00NcJRwFiVx735QLtXAcci4ByEe
 CDIDwvm9Z0/nJm9H7PHo/A5FeroEJPYYb/AdwI2Cj4lq6Q35u8LH
X-Google-Smtp-Source: AGHT+IHsUkLEUeabEzivRY7TxjEvkB7gNHY3v6XZpnWFqh5qtOBY7aWXABkZtduM9RfhXQHxScVQ2A==
X-Received: by 2002:a17:902:c948:b0:1fa:97ec:3a4 with SMTP id
 d9443c01a7336-1fdb950bf00mr39236555ad.8.1721752469944; 
 Tue, 23 Jul 2024 09:34:29 -0700 (PDT)
Received: from localhost ([49.204.114.228]) by smtp.gmail.com with ESMTPSA id
 d9443c01a7336-1fd6f453e5fsm77211105ad.230.2024.07.23.09.34.29
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Jul 2024 09:34:29 -0700 (PDT)
From: Visuwesh <visuweshm@HIDDEN>
In-Reply-To: <875xsw9nac.fsf@HIDDEN> (Robert Pluim's message of "Tue, 23
 Jul 2024 16:48:59 +0200")
References: <87y15sqstb.fsf@HIDDEN> <87wmlc9wvz.fsf@HIDDEN>
 <87plr4qpqy.fsf@HIDDEN> <87o76o9tvl.fsf@HIDDEN> <87ed7kqoe4.fsf@HIDDEN>
 <87ed7k9srp.fsf@HIDDEN> <87ttggp8e0.fsf@HIDDEN>
 <87a5i89run.fsf@HIDDEN> <87le1sp7ts.fsf@HIDDEN>
 <875xsw9nac.fsf@HIDDEN>
Date: Tue, 23 Jul 2024 22:04:27 +0530
Message-ID: <87ikww3w4s.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

[=E0=AE=9A=E0=AF=86=E0=AE=B5=E0=AF=8D=E0=AE=B5=E0=AE=BE=E0=AE=AF=E0=AF=8D =
=E0=AE=9C=E0=AF=82=E0=AE=B2=E0=AF=88 23, 2024] Robert Pluim wrote:

>>>>>> On Tue, 23 Jul 2024 15:16:15 +0200, S=C3=A9bastien Gendre <seb@HIDDEN=
h> said:
>
>     S=C3=A9bastien> If I evaluate this:
>
>     S=C3=A9bastien> (cl-defmethod gui-backend-get-selection ((selection-s=
ymbol (eql 'CLIPBOARD))
>     S=C3=A9bastien>                                          (target-type=
 (eql 'TARGETS))
>     S=C3=A9bastien>                                          &context (wi=
ndow-system x)
>     S=C3=A9bastien>                                          &optional ti=
me-stamp terminal)
>     S=C3=A9bastien>   (message "Hello World!"))
>
>
>     S=C3=A9bastien> And then take an screenshot and evaluate (gui-get-sel=
ection 'CLIPBOARD
>     S=C3=A9bastien> 'TARGETS) from an org-mode buffer, I still get the sa=
me result: image/png
>
> OK. Which Linux distribution is this?
>
> Robert

Hearing that OP uses GNOME, are we sure OP is not running the PGTK port?
If that is the case, AFAIU context will not be x?

FWIW, I tried copying an image to clipboard and the gui-get-selection
above returns [TARGETS image/png] in a PGTK build of the emacs-30
branch.




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Tue, 23 Jul 2024 17:02:02 +0000
Resent-Message-ID: <handler.72254.B72254.172175410516616 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 72254 <at> debbugs.gnu.org, Visuwesh <visuweshm@HIDDEN>
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.172175410516616
          (code B ref 72254); Tue, 23 Jul 2024 17:02:02 +0000
Received: (at 72254) by debbugs.gnu.org; 23 Jul 2024 17:01:45 +0000
Received: from localhost ([127.0.0.1]:60633 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWItV-0004Jw-AC
	for submit <at> debbugs.gnu.org; Tue, 23 Jul 2024 13:01:45 -0400
Received: from mail-wm1-f44.google.com ([209.85.128.44]:57357)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1sWItR-0004Jm-Ib
 for 72254 <at> debbugs.gnu.org; Tue, 23 Jul 2024 13:01:44 -0400
Received: by mail-wm1-f44.google.com with SMTP id
 5b1f17b1804b1-427d8f1f363so32599255e9.2
 for <72254 <at> debbugs.gnu.org>; Tue, 23 Jul 2024 10:01:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721754036; x=1722358836; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=JJWADtjIlVCwp5SKi47r1wJcRtpgMuyKZqai22P1H5w=;
 b=gk6ks2udyxMARhci1s3YGgK19pBXWe9OFVv5n2sV3ICkBT9wmOOrLR1qIgg2hPCGfM
 cZduxoCY21Ot9HzQkoeOsRtXpjSRJcIRhulfEZkSAaj2NsBLz1qnyL7H/4prWSyBIJFA
 BkZS0qvI7jRZviL2Qr38AEy4JawG6bcK0+nXh3SezYO85yBwIDa9PhTO8NiFjJMW3fLl
 sLE6dxnUPVUUrePEtZ0ZadE+KNAoklZJxbXqa8xwRBClBcz2KD5oye/oQj7I+9VYn5Bq
 KKnv91Fpz+OlleKw8ngC6O7sbHKzWorv9hZ1ykzeJsaS7lgj8ULIKhyPMv0D0hVL/m9/
 pojw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721754036; x=1722358836;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=JJWADtjIlVCwp5SKi47r1wJcRtpgMuyKZqai22P1H5w=;
 b=aUKY+910lFLF1qZuM4/2YI59igmBJWSNwZ7pIFyvHMcV/gxEmZ1RntTOkCZclryKXx
 eghEz72AaAaPHsic475jEaReJ5vxZPnNptJlR5KcTZkZmyfIdZUU7dLw3KEmkgtFGIWM
 b0xhGBQ80y1bnUuNy53f/o2Km+OiZSRsyMZECfBrLoVgs4iE1PU1MaPdlk//gyjtvZFp
 tp/8/50Xye94q7tuHdXJ3gxcFX9jUJo3vEFOid1owMxI9C+TEk5IXaoEWk+inHmC9Ada
 HuvW0PQZS7ISBXIO2fLbdXhFmam9GGukjNhQalxQasTlewBeSHBuOvmfkKEk9HC+Ln/v
 HENw==
X-Forwarded-Encrypted: i=1;
 AJvYcCWEA65UyjNA3sDXRI2grwJJNu5RlqjvmAIKQ9CBwfHw43cc3+iNOZLBKwTswRqvOHGj9w6LTbgdQ5WS0k4XF+39IQEbPNA=
X-Gm-Message-State: AOJu0YwSU45+RNvc+dwyyrFae7Y76A/CG+KEN81XHokzrvMcdi8U74uR
 8lEqYq78nUAx5puTK9Y5nBY/l5jBSLVTNMgAXgxOz8h6oD14lclFYntZdQ==
X-Google-Smtp-Source: AGHT+IGoGRJ9WsdbK2mRinnoVVN+2xyQQp9BJKF7ArO2tYCombLEpFNM8oGcCcS4TKiWDPdzkRYb0Q==
X-Received: by 2002:a05:600c:1388:b0:426:6455:f124 with SMTP id
 5b1f17b1804b1-427dc4700acmr86294865e9.0.1721754035449; 
 Tue, 23 Jul 2024 10:00:35 -0700 (PDT)
Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-427d6697c3fsm181532705e9.0.2024.07.23.10.00.34
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 23 Jul 2024 10:00:34 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87a5i8oyax.fsf@HIDDEN> ("=?UTF-8?Q?S=C3=A9bastien?=
 Gendre"'s message of "Tue, 23 Jul 2024 18:41:58 +0200")
References: <87y15sqstb.fsf@HIDDEN> <87wmlc9wvz.fsf@HIDDEN>
 <87plr4qpqy.fsf@HIDDEN> <87o76o9tvl.fsf@HIDDEN>
 <87ed7kqoe4.fsf@HIDDEN> <87ed7k9srp.fsf@HIDDEN>
 <87ttggp8e0.fsf@HIDDEN> <87a5i89run.fsf@HIDDEN>
 <87le1sp7ts.fsf@HIDDEN> <875xsw9nac.fsf@HIDDEN>
 <87ikww3w4s.fsf@HIDDEN> <87a5i8oyax.fsf@HIDDEN>
Date: Tue, 23 Jul 2024 19:00:34 +0200
Message-ID: <871q3k9h71.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Tue, 23 Jul 2024 18:41:58 +0200, S=C3=A9bastien Gendre <seb@HIDDEN=
> said:

    S=C3=A9bastien> Yes, the Emacs version in Fedora repo is PGTK. And I us=
e Wayland.

Ah, that would have been good to know from the beginning.

    S=C3=A9bastien> But if I copy an image to clipboard from Firefox, I can=
 past it into an
    S=C3=A9bastien> org-mode buffer with `yank-media`.

Try this `cl-defmethod' instead.

diff --git a/lisp/term/pgtk-win.el b/lisp/term/pgtk-win.el
index 505174048f6..d0dbf11cc48 100644
--- a/lisp/term/pgtk-win.el
+++ b/lisp/term/pgtk-win.el
@@ -140,6 +140,15 @@ gui-backend-get-selection
                                          &context (window-system pgtk))
   (pgtk-get-selection-internal selection-symbol target-type))
=20
+(cl-defmethod gui-backend-get-selection ((selection-symbol (eql 'CLIPBOARD=
))
+                                         (target-type (eql 'TARGETS))
+                                         &context (window-system pgtk))
+  (let ((sel (pgtk-get-selection-internal selection-symbol target-type
+                                          time-stamp terminal)))
+    (if (vectorp sel)
+        sel
+      (vector sel))))
+
=20
 (defvar pgtk-preedit-overlay nil)
=20


Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 24 Jul 2024 07:19:01 +0000
Resent-Message-ID: <handler.72254.B72254.17218054833164 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>
Cc: Po Lu <luangruo@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 72254 <at> debbugs.gnu.org, Visuwesh <visuweshm@HIDDEN>
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.17218054833164
          (code B ref 72254); Wed, 24 Jul 2024 07:19:01 +0000
Received: (at 72254) by debbugs.gnu.org; 24 Jul 2024 07:18:03 +0000
Received: from localhost ([127.0.0.1]:33038 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWWGA-0000oy-Te
	for submit <at> debbugs.gnu.org; Wed, 24 Jul 2024 03:18:03 -0400
Received: from mail-wm1-f51.google.com ([209.85.128.51]:48267)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1sWWG6-0000oX-Tm
 for 72254 <at> debbugs.gnu.org; Wed, 24 Jul 2024 03:18:01 -0400
Received: by mail-wm1-f51.google.com with SMTP id
 5b1f17b1804b1-42793fc0a6dso46385645e9.0
 for <72254 <at> debbugs.gnu.org>; Wed, 24 Jul 2024 00:17:53 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721805412; x=1722410212; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=5/0VN+XX/5gIdDMnNO+M/SEBJoTXjlPmR3JLQkRMCFE=;
 b=Rpcbic71JQb83idmiMhJcMPvWkI9kYMcU9jTzdQJyk/im1lVrJ8aasFVSX2K04LEjX
 8r0GdNl9lsxnqKquVqpTKpgXmit0epd9REPCak/rPt6aRJmE8/07MlWphb0iuuYXcWKu
 t0qYyxpNOHOafzuCXUfEW0FkZF0ChhW8nSxzCt7SujN0eLD064P1NxzlhrAujtU69glm
 kwYGhFyWTRIu/7EOqpAtkUGq6LvA5MJ3KOI0mXxKi92Jkwdw8gEMtyGCpdn4AD218BCI
 f7fIs1LpgW/glTtRn81Ed59WPvxC/0e5H3B7yGfJUI0H/gW+0TpQKwMIS6wib0pMUxVU
 ppFw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721805412; x=1722410212;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=5/0VN+XX/5gIdDMnNO+M/SEBJoTXjlPmR3JLQkRMCFE=;
 b=qMMecGOQb36XdK5Pl1yr8BECzBrSFpmN2O4jFw01KIpBf0i9+tshcscpx0SyppO/bO
 xRpl4ZA/x2leQ3mZxnmb+e8u+nO0WHrM6VIPM7fXQ5w26UabLR6BGmA9YoQfLLYMPEzm
 XZ0FlRNvhApLw+54UfJvq9qhYJJNUffWdoVvBUk/CozD2DJ729DBLp/rq5r96rhD1kGb
 WW1m8WHiMLirsqfAh14VZB+K4HJVIx8QD9EbuO/iUg7qSWxcpt03TOhvwXyAeE0KyVg/
 T+nFydP90PZab5bo8ZWxDgYaW5dIfqdi03OxPRtEw+OHNasrjsba9BE56TAcl0DfV2+9
 RZUQ==
X-Forwarded-Encrypted: i=1;
 AJvYcCUL43Nx7MFOn6QezJhQvLeuC7nBdN5OLE7e2J8BhrnzONfh43IX6oeBMQg66mpycVSnhQcfxXFn1tm6LiaoLcszeQZTGa4=
X-Gm-Message-State: AOJu0YzWc2otYtGva6vQakGF4l9Ph6O5fvspuePv5nWRTyJGPWTvuz/H
 ys6QkXt6t+bFdP4EgsuvVtyBvzrTke4dx+r8npb5SrpDlfHM3JKTNWaN1Q==
X-Google-Smtp-Source: AGHT+IERaNL+Emp446jHjd9+ny9pCmp8/bBbd15P3vmyiXwfKgYTTCflTFSfMv8fk8cBcMcNJwAHuQ==
X-Received: by 2002:a05:600c:4fd5:b0:426:62a0:eb6b with SMTP id
 5b1f17b1804b1-427f9558ec3mr8264855e9.13.1721805412196; 
 Wed, 24 Jul 2024 00:16:52 -0700 (PDT)
Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id
 5b1f17b1804b1-427f935dc32sm15719995e9.7.2024.07.24.00.16.51
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 24 Jul 2024 00:16:51 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87sew058rc.fsf@HIDDEN> ("=?UTF-8?Q?S=C3=A9bastien?=
 Gendre"'s message of "Tue, 23 Jul 2024 19:16:23 +0200")
References: <87y15sqstb.fsf@HIDDEN> <87wmlc9wvz.fsf@HIDDEN>
 <87plr4qpqy.fsf@HIDDEN> <87o76o9tvl.fsf@HIDDEN>
 <87ed7kqoe4.fsf@HIDDEN> <87ed7k9srp.fsf@HIDDEN>
 <87ttggp8e0.fsf@HIDDEN> <87a5i89run.fsf@HIDDEN>
 <87le1sp7ts.fsf@HIDDEN> <875xsw9nac.fsf@HIDDEN>
 <87ikww3w4s.fsf@HIDDEN> <87a5i8oyax.fsf@HIDDEN>
 <871q3k9h71.fsf@HIDDEN> <87sew058rc.fsf@HIDDEN>
Date: Wed, 24 Jul 2024 09:16:49 +0200
Message-ID: <87wmlb8djy.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Tue, 23 Jul 2024 19:16:23 +0200, S=C3=A9bastien Gendre <seb@HIDDEN=
> said:

    S=C3=A9bastien> If I evaluate this `cl-defmethod', and then evaluate (g=
ui-get-selection
    S=C3=A9bastien> 'CLIPBOARD 'TARGETS) from an Org-mode buffer after taki=
ng an screenshot,
    S=C3=A9bastien> I get this error:

My bad. Try this instead:

diff --git a/lisp/term/pgtk-win.el b/lisp/term/pgtk-win.el
index 505174048f6..06f962ff714 100644
--- a/lisp/term/pgtk-win.el
+++ b/lisp/term/pgtk-win.el
@@ -140,6 +140,14 @@ gui-backend-get-selection
                                          &context (window-system pgtk))
   (pgtk-get-selection-internal selection-symbol target-type))
=20
+(cl-defmethod gui-backend-get-selection ((selection-symbol (eql 'CLIPBOARD=
))
+                                         (target-type (eql 'TARGETS))
+                                         &context (window-system pgtk))
+  (let ((sel (pgtk-get-selection-internal selection-symbol target-type)))
+    (if (vectorp sel)
+        sel
+      (vector sel))))
+
=20
 (defvar pgtk-preedit-overlay nil)
=20

Po Lu, is this the right level to fix this? Or should we handle
'CLIPBOARD + 'TARGETS specially in `pgtk-get-selection-internal'? (And
maybe we should add "&optional time_stamp terminal" to the
`cl-defmethods' in pgtk-win.el)

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Po Lu <luangruo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 24 Jul 2024 09:31:01 +0000
Resent-Message-ID: <handler.72254.B72254.172181343015533 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Robert Pluim <rpluim@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 72254 <at> debbugs.gnu.org, =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>, Visuwesh <visuweshm@HIDDEN>
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.172181343015533
          (code B ref 72254); Wed, 24 Jul 2024 09:31:01 +0000
Received: (at 72254) by debbugs.gnu.org; 24 Jul 2024 09:30:30 +0000
Received: from localhost ([127.0.0.1]:33143 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWYKL-00042S-Nv
	for submit <at> debbugs.gnu.org; Wed, 24 Jul 2024 05:30:30 -0400
Received: from sonic308-56.consmr.mail.ne1.yahoo.com ([66.163.187.31]:40498)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sWYKH-00042D-P1
 for 72254 <at> debbugs.gnu.org; Wed, 24 Jul 2024 05:30:28 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1721813414; bh=hcO+AOWB+j2OUeypew4u++e0FhXzfLkdaQ4h7lPckO8=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=ePLczj1kD3bYS0hCROWVTR/GG6NFX2sI2Hwa2/K69lgHu7t+18jCrXm/g5n+MDMVxJXIiOGzbplDE3BUILjsSbSjojT0PX/hQQ+FLLPY2QdJ3uzROrICGw8iREWJZde29w8dJjDvEjVESAjij8Tu8/oHShId4LjcfFSQRLGt8C0oAv4JJcVByY9melKwiyAK4/w7A0TwxhM7CFMuIyrXMgz2EWngNo0PaOHAHXJuwmgVdOgjtAMDw3RLhriBL4opPu+l5nC5CkWDL7oACg3otpPSL1lwK6q0sYdU1H5eTB+c3iMkcfbgGsn6m5em3M/9Lx+xjG+FKDTWKXKQXogRhQ==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1721813414; bh=xxllf6haLeFyILWRVNmXw1VsAWm8zx83HH7AAXrv01Z=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=B/dxLA8BMYGKztpoisburYTEgBSIE8oA0wrmD4YAE9vMgcJ7dOBwyIsrhXJm7YcqECeMk9zbpn7wmAfW9t4HAD7C+fiOb7Fkwwg7+PL1E/sEUDu9IMCOq5nr2u7KFCj4z9VNq3fgXLv0Ok/rWJ0tBpXidUE9cev9MVApjOgHUEizJF/z5RCoFO/rO73xK3XSK9wb/6A0xERMJ3QvXHYJ1FoPC3CuFj3o5k0npzIEpZDh+WUOodIP9LLm0JSqrtXHafumv2tUhIQpvgjUdR1qqGUOTvtCmiR1dDMujRAwjEX/wp1xUlS5wQo0VxpWlhUxQKLZBQiFRLL5ETPsZTA7fA==
X-YMail-OSG: MYc8Sb8VM1kZg2bsJV8c1D3kjBXTVKfULEGwTkXuVqybEaPansCEGbaUXTeZmK5
 tzqimGpvB7MKbJ__2PXpxNdTqoeMkf38Dk7xgSnuPNNfaiUINeLaMcuqBJVabPVPy3wW5zCE5DTy
 j_GKdFX0gt5rgOn1Tf76YKxiibgrqqed7vXlQirjq9__oKFDV6VSn_S84nRBtXVA8J9Yk.lx131H
 68Qzs3rUKzY9Y6sMT9Fr7Jq6cDk3PQfQK0EXJrnXQH0YnK2kyMMRsYvvTaa_ABJls6oKynzA4UF4
 fI6xPeNqNRja4bm_KlutygGt5NFU47V6qsrCQD5sbcIAhl50EcUPjZH9hgMYODzE.vzg6yu_7HRG
 lldXzS2u8Ew6zSi.HuS1oHzYjr0nOjfzOaA5XzNHBvWqUdT.ivGslkFpmb_294l97ov4OZB0wQ6n
 5r5kZtDdXuOIkA0BLvUdpnfo_Gm0Pijio3N4YCBRHviJRjAi45Duwsx1TvcmTTg8kmZlJjMm5.e7
 frR132pjCgBQciCGLWuMROFK4PsobierifM0ixqtDUeyDYAI2_aiexm6Jj69SFyZyTRV_SMOkU30
 DD9u16n45C8BiRApjM_3Qg0CCmjCoN7ZVIhq58cQ8XfVAnBu4jUTjfuX.WX1oT6ycq96zlFW1NBU
 GA1z94R_VrcRQDH9bymOT2HRDEL0a8OiBFM5JN4IJvI_9tzA3F5eQyBugZnRNYsZPYs92IxA5wnf
 v0q7uj96OMKHXljSUmSUISXbLlGwbN56EtLgm7jKvoFxEYrzZxBkm5Gp70cSp9zhAZ1HsMVrRFAZ
 PJvZW8EcBiqAqeHtbZRZxO6uWXqnh1jGXCFndxnJE4tN9Q2R4yBTSAvTudWYQc22h44yCwrtc6W8
 .5ColRmN9vWYDNGCFfWlOfNFfopUVJFiQ2oK8bYyIwq0F.CGf9JBHmWDl4dKTKycIIWOuf_UMWcl
 R0JXyOv0KJ8nYWF_6dC4EdvHsHgPUbZ3gaGPusjHdyD2TSV5XiFOZzC6QaLNAHtNqt7lA8t7EVnf
 Huxxww2b_aRkg6PwcCt8PB12XUS6Y.zKTS4nOb2p2HwS8gQiGaW1AQtfB4Mcjh30iaPqByhjsKuY
 206gIQh6W.GJahE8hihl3TGOCiZrV4kr2b_G6MTOY8ZhCRt2CYsCSCH4HViKGQnDSCtBlt0a1PFx
 0n2FRYNWXu4QzbFis1ommQMvW_OeaFKksyg29BaAdXDftxx4rvmsj9XahFPqC01EfJfOKcX_LqG5
 6w_vcFj6_KMah7yfHD1Y9Kie24nBQg8skKaEFDv0SuAZISqMWu2sI1somowp12vBKPVSniNWux9E
 n_hAa0KtY3zw2dHo7Wok68PiESKMjIbZtHptkoAuo9ZMOggMbsQZtyYIEuJgmDdrofHov3o7lY8r
 0g_mcSp2.T3yD0HoIFucpkONHXSL4XCTI8P1FfVn0tljASJO7V4vdq76aHrva8NRC5P6_uRKEsJR
 tZmvYNIuBqAhvd7Xyd32FgDr3zxUR1fVIT1.UJ_4s95aEWvib30RtKpFk7aH4FzB1N2h7NnGEAUh
 jIW1_fc4sfERpRgU2pruRSiN15xehyONfRj_hogysI7h8EM39OXbtm.OVMcaT88TjnQzsqMJFXqm
 VhEFQWcoO_WYX6HCZzQN88O01SNRzwHjhW0Rrt7K4bbF61Vlg_mIYzjSAhQOAb4D_QnrErdsO6eF
 5TZCp3LOHAzigbC.SQz4E_GIXKvoM.rhqEXoIfzGmPsZEprju0vtF6WgN0uqpmlEm6Lg1ccaWL1j
 vJEAzpHzX8UNhtIadqsUvge_XIm9iKbA3f8mc4IjZHZ2HYtQTkubMJxcNFwXXaIUFU8J8SovqehQ
 19wh03dXFpsT3Mxbj45U3cN7e2uWejM_apguTKkvkJVPn1PmVCHoz8iy5QCFz5oAcltgxiGhJW1j
 _0H6EaHMFTO7xnWLwSj9fniXftQV01Ql9uruApWV5.2NO28GfGg6EpQBlLtADTABsDySEKpUsmqm
 vj7nZJKL9D2o9j.e8o34gRVfBF4HdPmdb34Hcce2zvdF5ZwZGJvOQjTRxQPZpbzjCZsyL7lzXjUl
 qafqHUs_nbnK7sL8ZueQnayzlZEaVp1U8Q9tlfe9GN7.vLsI_PcE.BYWF_dDo.w.qXLvoccIPS85
 4jqC4kcEFIwDirAGVk17NpCIhReZlCu.aSHgedUQHNKFOESaj91giJ1a04cCepaBtTRKxt25._ey
 eVmgdhBvSVTwl01zLIWRpcx3WXsT5kwI_ryhuTHkWnNC611BY6cXU
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: 451e230f-e8e7-42e2-86a1-dcb8d2602ede
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic308.consmr.mail.ne1.yahoo.com with HTTP; Wed, 24 Jul 2024 09:30:14 +0000
Received: by hermes--production-sg3-85fdb5cfc8-8z4tk (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID ee7855d1599540c4db654440b1e0a870; 
 Wed, 24 Jul 2024 09:30:12 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
In-Reply-To: <87wmlb8djy.fsf@HIDDEN> (Robert Pluim's message of "Wed, 24
 Jul 2024 09:16:49 +0200")
References: <87y15sqstb.fsf@HIDDEN> <87wmlc9wvz.fsf@HIDDEN>
 <87plr4qpqy.fsf@HIDDEN> <87o76o9tvl.fsf@HIDDEN>
 <87ed7kqoe4.fsf@HIDDEN> <87ed7k9srp.fsf@HIDDEN>
 <87ttggp8e0.fsf@HIDDEN> <87a5i89run.fsf@HIDDEN>
 <87le1sp7ts.fsf@HIDDEN> <875xsw9nac.fsf@HIDDEN>
 <87ikww3w4s.fsf@HIDDEN> <87a5i8oyax.fsf@HIDDEN>
 <871q3k9h71.fsf@HIDDEN> <87sew058rc.fsf@HIDDEN>
 <87wmlb8djy.fsf@HIDDEN>
Date: Wed, 24 Jul 2024 17:29:54 +0800
Message-ID: <87wmlbw31p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailer: WebService/1.1.22501
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 2841
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Robert Pluim <rpluim@HIDDEN> writes:

>>>>>> On Tue, 23 Jul 2024 19:16:23 +0200, S=C3=A9bastien Gendre <seb@HIDDEN=
h> said:
>
>     S=C3=A9bastien> If I evaluate this `cl-defmethod', and then evaluate =
(gui-get-selection
>     S=C3=A9bastien> 'CLIPBOARD 'TARGETS) from an Org-mode buffer after ta=
king an screenshot,
>     S=C3=A9bastien> I get this error:
>
> My bad. Try this instead:
>
> diff --git a/lisp/term/pgtk-win.el b/lisp/term/pgtk-win.el
> index 505174048f6..06f962ff714 100644
> --- a/lisp/term/pgtk-win.el
> +++ b/lisp/term/pgtk-win.el
> @@ -140,6 +140,14 @@ gui-backend-get-selection
>                                           &context (window-system pgtk))
>    (pgtk-get-selection-internal selection-symbol target-type))
>=20=20
> +(cl-defmethod gui-backend-get-selection ((selection-symbol (eql 'CLIPBOA=
RD))
> +                                         (target-type (eql 'TARGETS))
> +                                         &context (window-system pgtk))
> +  (let ((sel (pgtk-get-selection-internal selection-symbol target-type)))
> +    (if (vectorp sel)
> +        sel
> +      (vector sel))))
> +
>=20=20
>  (defvar pgtk-preedit-overlay nil)
>=20=20
>
> Po Lu, is this the right level to fix this? Or should we handle
> 'CLIPBOARD + 'TARGETS specially in `pgtk-get-selection-internal'? (And
> maybe we should add "&optional time_stamp terminal" to the
> `cl-defmethods' in pgtk-win.el)

I would prefer to treat this as a bug in GTK by installing a workaround,
perhaps in the spirit of:

diff --git a/src/pgtkselect.c b/src/pgtkselect.c
index c9f117126b2..0535482b8de 100644
--- a/src/pgtkselect.c
+++ b/src/pgtkselect.c
@@ -1644,10 +1644,24 @@ DEFUN ("pgtk-get-selection-internal", Fpgtk_get_sel=
ection_internal,
=20
   if (NILP (val) && FRAME_LIVE_P (f))
     {
-      Lisp_Object frame;
+      Lisp_Object frame, val;
       XSETFRAME (frame, f);
-      return pgtk_get_foreign_selection (selection_symbol, target_type,
-					 time_stamp, frame);
+
+      val =3D pgtk_get_foreign_selection (selection_symbol, target_type,
+					time_stamp, frame);
+
+      /* A window property holding just one item is indistinguishable
+	 from an array of one element, and is always decoded as the
+	 former, producing issues with programs that expect the TARGETS
+	 property always to return vectors, even when the toolkit
+	 reports just one data type.  Though X sidesteps this ambiguity
+	 by defining TARGETS as returning at least two properties
+	 TARGETS and MULTIPLE, GTK knows no such scruples, and therefore
+	 symbol values (or nil) should be enclosed in vectors when
+	 TARGETS is being requested.  (bug#72254) */
+      if (EQ (target_type, QTARGETS) && (NILP (val) || SYMBOLP (val)))
+	val =3D make_vector (NILP (val) ? 0 : 1, &val);
+      return val;
     }
=20
   if (CONSP (val) && SYMBOLP (XCAR (val)))




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 24 Jul 2024 10:52:01 +0000
Resent-Message-ID: <handler.72254.B72254.172181830312453 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Po Lu <luangruo@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 72254 <at> debbugs.gnu.org, =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>, Visuwesh <visuweshm@HIDDEN>
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.172181830312453
          (code B ref 72254); Wed, 24 Jul 2024 10:52:01 +0000
Received: (at 72254) by debbugs.gnu.org; 24 Jul 2024 10:51:43 +0000
Received: from localhost ([127.0.0.1]:33203 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWZaw-0003En-NL
	for submit <at> debbugs.gnu.org; Wed, 24 Jul 2024 06:51:42 -0400
Received: from mail-wr1-f43.google.com ([209.85.221.43]:59838)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1sWZau-0003Ea-Lm
 for 72254 <at> debbugs.gnu.org; Wed, 24 Jul 2024 06:51:41 -0400
Received: by mail-wr1-f43.google.com with SMTP id
 ffacd0b85a97d-3687f8fcab5so3155649f8f.3
 for <72254 <at> debbugs.gnu.org>; Wed, 24 Jul 2024 03:51:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721818229; x=1722423029; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=RAZwTgTXHiz+RZ0AsQt9V+XOHQMTRzeqo0COhG/Uts8=;
 b=Rd36o3WuTM6mYVmKmchseP7BXTHRVBNqyQxyWnm5BZ2pSU5xeY01VnOXH9kGY03uff
 iVy1Hnv20cdkVOHhNDToIn6oUAZZYPbm3nouEf/3bwfOuQGH+PodifxTTkIDqg9CH99o
 mSWQBS3DgDc5SH0Vp3eblbG4rrhoo+sVJxt0BfECFRp7XcyNpHjcyl8ZLL04Cgc4e+s5
 Z6pJ5CdKsgx8LuyNGxUAFf/c5e13HHrkW8x9+nUnR68jqquKFrPbpq0HkCk7k+XUbE0q
 ni+hDNmXkm4X73auzuM+Tfj7tr86AkKqzR2ba9UTkreqnIjn0bH4TVnlJF4CIhQmuyPU
 DWmw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721818229; x=1722423029;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=RAZwTgTXHiz+RZ0AsQt9V+XOHQMTRzeqo0COhG/Uts8=;
 b=uKv8OKPM7JaNOI8cscQmyPJ6GiNsaoe589/n8acz4Y3c+Ni5Cd57YpQLjRiA0rl7Rh
 e1Vz7wx79bbd7gNdPdW1xZfa1f6HwDchsOcYgyCLK1To5g+VJnI96eQBtHgODK/rtrfM
 StuSfAMTReGtjUyvjAL4/a0N7uOOLb11AhCSEPIjBRLoszb0hJtWzZRjit9RfrJ7YjJq
 jaiJoS0X/wJ/veMY9+PBIVi1Fmcm2LW0jYtw2Z2Y7s74WQg3vP71fR+FDKAXEBRNKh7h
 tVw46YskVzQmLrsVTE46/dD7Q4sepFHAO3rennyup+haClkO0LHSb3n6oeXCsSDKTRwS
 E3cA==
X-Forwarded-Encrypted: i=1;
 AJvYcCVmGKapa6vDwvHdNBEJX/EI8x98TwFELL3GQa4JYil+fNznWQ5uL66RCXg2/mQ0YO27vDJrYid1vftDzrEwi9CtnFhFL5s=
X-Gm-Message-State: AOJu0YzaCnXUaBBnlnVy4KwWhluS75qQpgru70WV7E59srMlyuXsv1Dt
 zEbAdO9rtUJvw8H+ljD+3x7u27g92BXsdY/Wp3DDdwzlr3RU4xPWV55ksg==
X-Google-Smtp-Source: AGHT+IEdsB5GgKn8rDb3aHvuv1nutuV24ihpQCgUrn9qdD5epM38LCmNX+j5ssVSa5gZjDtXypaoDw==
X-Received: by 2002:a5d:6192:0:b0:368:3717:10b3 with SMTP id
 ffacd0b85a97d-369bae23a3bmr9630322f8f.8.1721818228549; 
 Wed, 24 Jul 2024 03:50:28 -0700 (PDT)
Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-368787ed580sm13863228f8f.112.2024.07.24.03.50.27
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 24 Jul 2024 03:50:28 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87wmlbw31p.fsf@HIDDEN> (Po Lu's message of "Wed, 24 Jul 2024
 17:29:54 +0800")
References: <87y15sqstb.fsf@HIDDEN> <87wmlc9wvz.fsf@HIDDEN>
 <87plr4qpqy.fsf@HIDDEN> <87o76o9tvl.fsf@HIDDEN>
 <87ed7kqoe4.fsf@HIDDEN> <87ed7k9srp.fsf@HIDDEN>
 <87ttggp8e0.fsf@HIDDEN> <87a5i89run.fsf@HIDDEN>
 <87le1sp7ts.fsf@HIDDEN> <875xsw9nac.fsf@HIDDEN>
 <87ikww3w4s.fsf@HIDDEN> <87a5i8oyax.fsf@HIDDEN>
 <871q3k9h71.fsf@HIDDEN> <87sew058rc.fsf@HIDDEN>
 <87wmlb8djy.fsf@HIDDEN> <87wmlbw31p.fsf@HIDDEN>
Date: Wed, 24 Jul 2024 12:50:26 +0200
Message-ID: <87sevz83nx.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Wed, 24 Jul 2024 17:29:54 +0800, Po Lu <luangruo@HIDDEN> said:

    Po Lu> I would prefer to treat this as a bug in GTK by installing a wor=
karound,
    Po Lu> perhaps in the spirit of:

That works for me (once I remove the '&' from `val' in the make_vector
call) on Fedora 40 with a pgtk emacs.

An x11 emacs on the same system doesn=CA=BCt need a similar fix. I guess
this is the GTK folks removing 'legacy' stuff.

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Robert Pluim <rpluim@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 24 Jul 2024 10:57:02 +0000
Resent-Message-ID: <handler.72254.B72254.172181861712914 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>
Cc: Po Lu <luangruo@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>, 72254 <at> debbugs.gnu.org, Visuwesh <visuweshm@HIDDEN>
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.172181861712914
          (code B ref 72254); Wed, 24 Jul 2024 10:57:02 +0000
Received: (at 72254) by debbugs.gnu.org; 24 Jul 2024 10:56:57 +0000
Received: from localhost ([127.0.0.1]:33208 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWZg1-0003ME-DZ
	for submit <at> debbugs.gnu.org; Wed, 24 Jul 2024 06:56:57 -0400
Received: from mail-wr1-f49.google.com ([209.85.221.49]:61756)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rpluim@HIDDEN>) id 1sWZfz-0003M2-0H
 for 72254 <at> debbugs.gnu.org; Wed, 24 Jul 2024 06:56:56 -0400
Received: by mail-wr1-f49.google.com with SMTP id
 ffacd0b85a97d-3684bea9728so3952711f8f.3
 for <72254 <at> debbugs.gnu.org>; Wed, 24 Jul 2024 03:56:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1721818548; x=1722423348; darn=debbugs.gnu.org;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:from:to:cc:subject:date:message-id
 :reply-to; bh=MNzzR2HJHUFbroqQSxXFSMpEhO9UOsSL8ZH/+cW8WFI=;
 b=eqnJ5vsGlEIErFSJlxBHnwlTomFKD2OpY4vVcoLVFqg0froGpi8GG/bCXrLt9k2LJ2
 iQ+8Q7JI9KKYminlT8HwfXumNibQLzKZqvMSlDWjacdRb8YiI4m+HLbOCcfJqZjqxNvJ
 hgGzEJfKqoy44euoxVurU/Y4KnJk66Iz9h6JJRvInkVvwSoMU9eSIhkI6mjYmQx0TtaL
 090Rkr9CjuALyL10Q+cAOj1Ql0s0UzC/UTKHELmFIpVtfaQdW5z5fEecQ+Dy/HWSZXJV
 90nJlm/hZ7NBFnSrWZwW93kiXqE8CTqlxCwYhcHn8qBggalKMipmuMjgDzey76jfdTNa
 3GUw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1721818548; x=1722423348;
 h=content-transfer-encoding:mime-version:message-id:date:references
 :in-reply-to:subject:cc:to:from:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=MNzzR2HJHUFbroqQSxXFSMpEhO9UOsSL8ZH/+cW8WFI=;
 b=MMGu2fCw/qiSA+8wo2n0jUjNy8QiwtcriVCzOaJLvP5rtcd4Pj3xszG++7AEnjcBJQ
 TQig7QTBZYnTKY++ZMbkXPkappU603fqBxNsTa/rYq2TDYIE5/yuNegAHbGh3xL69XTZ
 gwTBSmq9/U/zpezf+NMFWWSPJuJsUnpFWuVJKfQwcblKEbywk+b8d6KqpeLyH/O316qj
 oj7g2Tzlq4YcYMMFaLjK7Y8DHi2/j4Trm+Y2I/xhi39kH5hMvdF3INitGKt1HAVmcjE4
 Z3OODGhPC+f2/4Ym6QSY6sh4SepfAvnihQo0Zmohp2igz+wg/VcnBWRBjPZlylhs4p/u
 fN2A==
X-Forwarded-Encrypted: i=1;
 AJvYcCXum0ofwlVY5GR5VJZXxVtXrxnjOhxYg3ZybMQmWX1Qs4iOCOCln7SHkx8tFiPWalMUy6vuDO6fiv4B/ztcIn5f6A7+Lrg=
X-Gm-Message-State: AOJu0YwyQKuPxbiA7BpPTuBA/rMXBfMmqffZDPNaBgwxpmUpYRvfkrra
 BCiHkUprs14s4baTbzqV5T9cRnQWmWUuWdc4WPZp3FzGpqlSPjfS
X-Google-Smtp-Source: AGHT+IEXBG/31zBkPj5E8C9rAGkXsoAsf84/p8PxYbrKS/hBaR41wRQ+6hOXEdARX7zbbKV5lSkOpg==
X-Received: by 2002:a05:6000:cc3:b0:367:9803:bfe7 with SMTP id
 ffacd0b85a97d-369dee44287mr4140509f8f.53.1721818548157; 
 Wed, 24 Jul 2024 03:55:48 -0700 (PDT)
Received: from rltb ([82.66.8.55]) by smtp.gmail.com with ESMTPSA id
 ffacd0b85a97d-368786848basm14023415f8f.15.2024.07.24.03.55.47
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 24 Jul 2024 03:55:47 -0700 (PDT)
From: Robert Pluim <rpluim@HIDDEN>
In-Reply-To: <87wmlbul4a.fsf@HIDDEN> ("=?UTF-8?Q?S=C3=A9bastien?=
 Gendre"'s message of "Wed, 24 Jul 2024 12:42:29 +0200")
References: <87y15sqstb.fsf@HIDDEN> <87wmlc9wvz.fsf@HIDDEN>
 <87plr4qpqy.fsf@HIDDEN> <87o76o9tvl.fsf@HIDDEN>
 <87ed7kqoe4.fsf@HIDDEN> <87ed7k9srp.fsf@HIDDEN>
 <87ttggp8e0.fsf@HIDDEN> <87a5i89run.fsf@HIDDEN>
 <87le1sp7ts.fsf@HIDDEN> <875xsw9nac.fsf@HIDDEN>
 <87ikww3w4s.fsf@HIDDEN> <87a5i8oyax.fsf@HIDDEN>
 <871q3k9h71.fsf@HIDDEN> <87sew058rc.fsf@HIDDEN>
 <87wmlb8djy.fsf@HIDDEN> <87wmlbul4a.fsf@HIDDEN>
Date: Wed, 24 Jul 2024 12:55:46 +0200
Message-ID: <87o76n83f1.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

>>>>> On Wed, 24 Jul 2024 12:42:29 +0200, S=C3=A9bastien Gendre <seb@HIDDEN=
> said:
    S=C3=A9bastien> After:

    S=C3=A9bastien> * Evaluated this new `cl-defmethod'

    S=C3=A9bastien> * Taking a screenshot

    S=C3=A9bastien> * Executed (gui-get-selection 'CLIPBOARD 'TARGETS) from=
 an org-mode
    S=C3=A9bastien>   buffer

    S=C3=A9bastien> I got the result:
    S=C3=A9bastien> [image/png]

    S=C3=A9bastien> And `yank-media' work mow on an org-mode buffer.


    S=C3=A9bastien> Thank you very much. :)

Thank you for reporting and testing.

Robert
--=20




Message sent to bug-gnu-emacs@HIDDEN:


X-Loop: help-debbugs@HIDDEN
Subject: bug#72254: 29.4; Cannot yank media when image come from Gnome-shell screenshot
Resent-From: Po Lu <luangruo@HIDDEN>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@HIDDEN
Resent-Date: Wed, 24 Jul 2024 12:13:01 +0000
Resent-Message-ID: <handler.72254.B72254.172182317832349 <at> debbugs.gnu.org>
Resent-Sender: help-debbugs@HIDDEN
X-GNU-PR-Message: followup 72254
X-GNU-PR-Package: emacs
X-GNU-PR-Keywords: 
To: Robert Pluim <rpluim@HIDDEN>
Cc: Eli Zaretskii <eliz@HIDDEN>, 72254 <at> debbugs.gnu.org, =?UTF-8?Q?S=C3=A9bastien?= Gendre <seb@HIDDEN>, Visuwesh <visuweshm@HIDDEN>
Received: via spool by 72254-submit <at> debbugs.gnu.org id=B72254.172182317832349
          (code B ref 72254); Wed, 24 Jul 2024 12:13:01 +0000
Received: (at 72254) by debbugs.gnu.org; 24 Jul 2024 12:12:58 +0000
Received: from localhost ([127.0.0.1]:33275 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1sWarZ-0008Ph-RJ
	for submit <at> debbugs.gnu.org; Wed, 24 Jul 2024 08:12:58 -0400
Received: from sonic312-23.consmr.mail.ne1.yahoo.com ([66.163.191.204]:40302)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <luangruo@HIDDEN>) id 1sWarY-0008PT-5k
 for 72254 <at> debbugs.gnu.org; Wed, 24 Jul 2024 08:12:56 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1721823164; bh=PO65G1piWQEvHVq7/zTdM58Azqy2tcnsLsyQ4gG7orE=;
 h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To;
 b=jqERSPC4mO0akFgCX4laiEzwxDD4DNDiXn16xdRyPan0sOFqAWsvK5/Rwn/lMFMzuwzhBCLOONHX3a18EkxCia530wKaT6emp/UBeR4hyYRkkTxF4xbbddgMR3/VufEOw2PuKacr7xG60OAM32Ry+X1RhpzGTxPeAc5Kqn7J1/VTd4YaSdmYgV2y3x5+I7q3JK+7eWe9VSahr9rhzGH0FQdD9SwQMXLTIBAnC7W+pv20oBOtiUp+D+oW/Ab4HmIQCRX8MWbXFBs7W7DzcchQDJDC6VkxfUNEg3s0UQE2mxlLzgxHSK6xMIuC5Qr8rbANrJJEAyL+q7RP54UCdUF6yA==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048;
 t=1721823164; bh=PrUEc08AVFvBGGf/oQ5JDA31YiclRKYWpdiUwUxTc6l=;
 h=X-Sonic-MF:From:To:Subject:Date:From:Subject;
 b=K6Y1q5NjyM1/pDHrbDxgUjh71y2jba6r+l4MsKTpZzCIfUXGRp4Tuo8JLjdsSR/ZFKomB2FYAiw2MFpmvoaXQu9O0biZdbNJjIT2L08swPLF+qu+WGXpdVpR8Cnj9o3m9N9za6WXHHDAj7y+qTT5ugCSJstcENzVtqGreO4wrAJ55vIYVLAYZiYLEFjYnC4knCjwXo7kp1zNmXg1SlixSz3weaF53lKAE2YAfNzannlWD7ovHGMansbMVgTJ+EeCsOlJZKxJRJIO8fBXC8/5hZlZ/Q28MJvYp5g5yzCX3Klrg+zz7pDqEjdFbkJn1E3h4vAHvrc2JaGMnGpBIRXZlw==
X-YMail-OSG: kuEpELgVM1mB3jY4F3d7Ct4pHNyzoMQrvGJxFDTuWRqPrGnmAUTCYlC2clZUHW9
 SERXYQO2VrVpiAT7kZjMjj.ugq.9dUW6.UGpH91641B7V6MyFAVwB5BdiVCVZXoeRCktMyNBijK.
 nIOL0ILdtlp1jvpYBVk1K7XmrXrcA.9.LFe0zqQ81twMbOizESCyiIoR5.nFkAV0mrc87apJJJ0j
 caBI.gAvltJQudZEVrx74TDrQD8aOfDlWArJ10WS7zUJBFgmX.ALu7BED7aztdOdjA3DoRGbJ7UC
 ufrF0mBLaILgywKNbxX.uRpuWfw0k8CHmlELOKEUZna8T6.5S8kBF.DgHLUtbrcXGdiYHBSqZqRh
 U5w35WSMoaxdNgL4zbDro5lZCFHcziVjuIJrayDYkvNBsS4BcYK7NxsJGnkpDOdCq7MbsflMZF.d
 oCTZkD.UJICuz6L9doy7O5tUXLp3PpK_CG8HGpzkW6oP_XS9Nb84IiHCxOBoA5.BPy8eWnAP89Xy
 JqyS1QR_Pe_9XgerlZqsAFo7KWNJAjT9A1RkMNsHAf7mpMLGR_yekQxJw9LVrUo66bNeUbJotaoM
 jGofwBkz.kIj_3QhOKEHmZjbfIX9TXwaXtI2TXJLcWgGc20VvveIUJlTbvo.MAyeQV9UcGJTQJQl
 RQ68NA7iGfvp6F57XBKeD0NsQDgZ02rLzbhlIEhG5Hnw0Cp9wY.4FW83Xvty10SQixHw9W_1hncD
 2.0V8SUPSUYNUQkXyiQrT1iwFcPGJn6fePfbWlN8ZuzWCQ7YIidTlTysZ6vtsue8E5DQ2ex_KDOj
 KxTSwyLnP3Jqb4KB3nCoSBmUCKcQsNZu7GfH1e8qkR1luHBHK1d0D8Uh3weIo6.DM5CqBLl5XfeE
 fkIWfcGv2TZkywgWdQx_w.jYKsg.anwBmr.gufPnbW6k6q2nsqIC6umeKic4r7Wn_PcDvXCCxBi0
 X03.qfOBfZO0LbcCKj5PiYQYODEor00VtKg2XM2iOgXKP8ormcdMHyEtUCT2IP_Bcf3PkOJyAIHM
 Ar9mHqsHzCbQgqqBQnyaqMNcYHVa9iNA03GPa9JeVD0Q003GNzJKgSFOPUhr5TwURR5NEWiX04sy
 LmbNAbrJ826erg9uh7gfD.63kC5OxFosUeh0SRzPQxA4xMoDGC1ZKHY3xoDw1Bgo.48DDtvurV_7
 XDkSKTCXkY9ZT40r58Gt7ZJzc1pkvmEVlOSLjc8x_85Xblz0S9GKqq4eMzRxTA._7ZKyW82ogAmX
 SxaY2FDB81kRPXEzrfbceicucdHdCbm3u.__DzQCN10tt_EzBOs1NDAI4PUMlL9Gtw7SUKUgaVwO
 2xjFHooha_ORYwfx.lyPSuKNkJVMDRUjv7nTRn.teAsg.GdYKgKFQ0d98LU7TEmMkGOkxJk0RgEp
 nac3p2d1CrcUR0Ocj8MuyXKtvJG0.bomYQ1PjOcnfRe_4efU4Dzjg_tlW7zi5M8ERgiu4Gc5utc7
 zjVvhQ6qXIwrlVBsSrbKuKR7hy9qHuNhUAcmgq0NJJbeS2S0i0fSwo4KGDTLZkYOOX9KuQs0eaVI
 0XmP7dwF9SCLa2ZFlsGaSpm.z958dchoAG1hE6yEWmkoynwzSr96Xe8I2gGh2Yp_uFLHe9GeEAFb
 gFeCpnwBJ0_fQh0CwddKMlpr38Jhe4z2VmpUW.PyOmYamuHf2EN2_Pz8mw36XYlakz1Qp9.ue96v
 5yu6vzXOAJIgb0HdGksldmbZKp5kZoMdoRWdc.Jje2UDMIa9AeIxCQmbA9Jc6pPksDuNoIbrFwoo
 hZriueJPD3feMoxLfnk2du6b247jdpa6rsMuuZGHYlnSYD3YO6jST1XrWK7LHx_GbYAWkqJXL8x.
 Oa0HEgPb1ZPmmqPBouPerLkIHzOEWt3qkb0QD2gh0iucnnWgy5JFNCkHvQiGA4wKWDXsGEAUdAS7
 LoVNUT2h27E2ZPsKrzuvDCVBoCtRB61E_EP8BEe2l_EXTB8vdTbwwkk6ekSKjLXSmLMv_xK0JRqB
 q6CYJtN_X_vLY0.Xl5f73lC5kEZ4pkyb09rxdkAb_2ImT5NSqaMweZqwMYKfy.4.8FZ5FhHafQPC
 gPKcoelSjmOYKxFG2nordEHGKn2xuaymcnIp7b.qfN7U5TGsuwoEZiElA8qjbjvqL8UynBs8xPr_
 2yDoFdghCypbgZ9_6NR.tPz0A_9a2DUDbaVpaSQ9WCZBhF0OvdlhvkEjAYLLMdZdhXmdIKBesa63
 vTxPdPSdJv8Zwdp7cqr3aJ_S9sPHb8z_83tThg0xe8mDs5Z6A4sqM5vi.tA--
X-Sonic-MF: <luangruo@HIDDEN>
X-Sonic-ID: b506cadb-fd1a-40d3-aa7d-8902c7a22ea2
Received: from sonic.gate.mail.ne1.yahoo.com by
 sonic312.consmr.mail.ne1.yahoo.com with HTTP; Wed, 24 Jul 2024 12:12:44 +0000
Received: by hermes--production-sg3-85fdb5cfc8-t847h (Yahoo Inc. Hermes SMTP
 Server) with ESMTPA ID 6a291583955d6a03cadd0335c4394916; 
 Wed, 24 Jul 2024 12:12:40 +0000 (UTC)
From: Po Lu <luangruo@HIDDEN>
In-Reply-To: <87sevz83nx.fsf@HIDDEN> (Robert Pluim's message of "Wed, 24
 Jul 2024 12:50:26 +0200")
References: <87y15sqstb.fsf@HIDDEN> <87wmlc9wvz.fsf@HIDDEN>
 <87plr4qpqy.fsf@HIDDEN> <87o76o9tvl.fsf@HIDDEN>
 <87ed7kqoe4.fsf@HIDDEN> <87ed7k9srp.fsf@HIDDEN>
 <87ttggp8e0.fsf@HIDDEN> <87a5i89run.fsf@HIDDEN>
 <87le1sp7ts.fsf@HIDDEN> <875xsw9nac.fsf@HIDDEN>
 <87ikww3w4s.fsf@HIDDEN> <87a5i8oyax.fsf@HIDDEN>
 <871q3k9h71.fsf@HIDDEN> <87sew058rc.fsf@HIDDEN>
 <87wmlb8djy.fsf@HIDDEN> <87wmlbw31p.fsf@HIDDEN>
 <87sevz83nx.fsf@HIDDEN>
Date: Wed, 24 Jul 2024 20:12:30 +0800
Message-ID: <87le1rvvip.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable
X-Mailer: WebService/1.1.22501
 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo
Content-Length: 568
X-Spam-Score: 0.0 (/)
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Robert Pluim <rpluim@HIDDEN> writes:

>>>>>> On Wed, 24 Jul 2024 17:29:54 +0800, Po Lu <luangruo@HIDDEN> said:
>
>     Po Lu> I would prefer to treat this as a bug in GTK by installing a w=
orkaround,
>     Po Lu> perhaps in the spirit of:
>
> That works for me (once I remove the '&' from `val' in the make_vector
> call) on Fedora 40 with a pgtk emacs.
>
> An x11 emacs on the same system doesn=CA=BCt need a similar fix. I guess
> this is the GTK folks removing 'legacy' stuff.
>
> Robert

Right.  Has anyone anything further to say before this is installed?





Last modified: Wed, 24 Jul 2024 12:15:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.