From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 0LwOCkMfk2d0CgEA62LTzQ:P1 (envelope-from ) for ; Fri, 24 Jan 2025 05:04:03 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 0LwOCkMfk2d0CgEA62LTzQ (envelope-from ) for ; Fri, 24 Jan 2025 06:04:03 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=h8nJYsVa; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1737695041; a=rsa-sha256; cv=none; b=N9zzz1bBwj6cUB0xWU2MUwS/f7ygplGxkPeA4+tgpOAgyWxmNa+c1jDqBM1pdcrkn8T6yw khvzl9foHzB21I0rf9C/OaMUugcVOSTZuL0InBO3Hg+g1qUMuDZWSWhzDDMcf4Uquyuqko 6cxYpah2+i2/Fp3IDIY0pCvEP8DNqZrpop3ENPa2FZHSThrbRonimkrSvpuXf1jW5e5v42 whBKelSEb19JQCqM0ORm/Vnzgk1G78xyORBudfDiRbSap3YGz6ODBszhpx9B9k5FWpDHWz RsZzWDdf66v5hzMT6g080J4NmlftVAMtVyIaIaFk7O8i3+6WlMX1JcIn1ONt/Q== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=h8nJYsVa; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1737695041; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Uxs/qzggGwwkNEOhtRYQNMjiWXt44rkmBL3Q3qnTbnk=; b=ho7UcToo4JefjQ20nKniARGsdEuipV3/7Ia2hgv/BSaDcSWRMBi36A+kUG0QEmirmJSqBw YIC8EUjIs9vyC5Ov2KkoqYrubYvbORczqnAON7SVgPVLb9AWRXo9yfIdBPxn82hHfpJemm FwibD8hmLnP+O24Gp+Vvvi9OofWEbzt4qqUvaAdBCTV1uZ2/nJD/yO4vhtWu0B2nfkQ47M VaXrxgAY6+r0jjLOxJalF+z3LIOKLJZw5FdcDWaSpaB+4cJB4nMJWb268HD2NnYxR4tk84 9v4VHOo+/p4TkaQ3LHqQLSnIgE2nf78zqAgC6VhKUp5y6pktatNo/DpRevWaXA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 58EA27BE77 for ; Fri, 24 Jan 2025 06:04:01 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tbBqT-0000De-J0; Fri, 24 Jan 2025 00:03:05 -0500 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 1tbBqO-0000Cu-6Y for emacs-orgmode@gnu.org; Fri, 24 Jan 2025 00:03:00 -0500 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tbBqL-0006pc-QM for emacs-orgmode@gnu.org; Fri, 24 Jan 2025 00:02:59 -0500 Received: by mail-pl1-x644.google.com with SMTP id d9443c01a7336-2164b662090so32793945ad.1 for ; Thu, 23 Jan 2025 21:02:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737694976; x=1738299776; darn=gnu.org; h=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=Uxs/qzggGwwkNEOhtRYQNMjiWXt44rkmBL3Q3qnTbnk=; b=h8nJYsVa77iAw15KUG2b02fnAjfhnNbtadO7rZ/5gdpYOwLOjdFzI+RPtp4zugpjdP /znpNknQXne7+hDHRvmBVjAGeEVfKwE3jEPDJwJG4prOf7fqZ/4LYk1YTNPLpPl2rlLG nt6Nm5n3sg1l4gdU35dE2f/qEtfVvNbYiMJSWrdYq/XVnQzQYTcV46Elj3hmZroN+6PW MczOnOn7U2Kq53iHW5M3c/fedTiu8SG1CUc+JcQpFxG04VRimeB9eU6m0izGUBhxqWiG oNGQPinv/k4y78e97ogfjcgsj9vYE8euH3d/FsCF6KKPW0CilzFMHOTIxz8vajL9zmAN reHQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737694976; x=1738299776; h=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=Uxs/qzggGwwkNEOhtRYQNMjiWXt44rkmBL3Q3qnTbnk=; b=cbd+grGyPPvlC7zV5fqKhoB7pwy4RTcCbkMCCu18nW4M4xvAU4kYd0zAI7GyR+M9SF bdtENebWwg4DwZZeLYAdT1RI6RROA/lQquek0vDGRmCTkcn43Pe0oLdbLpY7iNKsTRG2 84/e6O15F+mohyYavrEl9fllmSvGphJmw29d2gJ/2JpOfY2fjAPhz93c0rG72rTxbfd6 3/PgvH4oBN76LrN0N2Ou7BUe2QFSBDiaMly4bVFr8bdtrR0yEjs+PPoxfTk2inUvuyd8 TxbcStCkN6NqiuHwoliVbQlqsu84L39JzOX9c9/DsituWt1nfCguhoyb5L3e8kx/NN6J 92EA== X-Forwarded-Encrypted: i=1; AJvYcCVi8eLcU/5LcRT+FVfI6wjaHGWEDw3USe9eNwhtUJR8pYKno3h1cqdP7U8cmQZbHuwdf31VkDGhhisAjNGJ@gnu.org X-Gm-Message-State: AOJu0YyCiwMBr+loiRBeLln/Ylju5w3k/H7OA2H7wW0nmYegfUgM9B3c xSaMpYf7iMDvHh2z+cOVwzbhrLE7dL1nUCkYnKqTbGXR3/zgc1oh4DpibubS X-Gm-Gg: ASbGncsvu3kqgi++5f25GFKbd93BVhrTXRo+5G9eWsAfpMIaon6e4MmFr+9i82ZamId FikAU88d4Yum3mzROHdBgDcF6yjrUTxem+DHktJj7C0orbPk9hGUZYEb6EehWBHXFmbv5+XlmKD 2mNYP8NQ5sKO5U6kU6DYVBVVAdesyAF9hX9qb2LriTK9KrwcA8nGn4rBVsD/oNNXI+HNIyqlLCp xpp9VrGWefzC96bU9tzTklhwzz/SLAehDHAyW7Jm9wPvyMOPn6j28Z86O0v0NS/OufszeJnn5Fk lQ== X-Google-Smtp-Source: AGHT+IHlqonbHQKj0gh/l6HUgWNFgnKbqyPIjBNR4YwQb7nmHJRDF3ih34J23iig6p4AFU8RiAVeSw== X-Received: by 2002:a05:6a00:90a3:b0:725:e4b9:a600 with SMTP id d2e1a72fcca58-72dafb367d4mr42012191b3a.16.1737694975472; Thu, 23 Jan 2025 21:02:55 -0800 (PST) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72f8a763468sm887510b3a.106.2025.01.23.21.02.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 21:02:54 -0800 (PST) From: Visuwesh To: Ihor Radchenko Cc: Robert Pluim , =?utf-8?Q?S=C3=A9bastien?= Gendre , org-mode-email Subject: Re: Cannot yank media when image come from Gnome screenshot In-Reply-To: <87o701qpmk.fsf@localhost> (Ihor Radchenko's message of "Mon, 20 Jan 2025 18:58:11 +0000") References: <87ed7kttoa.fsf@k-7.ch> <877cdczb94.fsf@localhost> <87ikwws8wa.fsf@k-7.ch> <871q3kz9j9.fsf@localhost> <87v80sf1d6.fsf@localhost> <87y15ghj3u.fsf@gmail.com> <871q34dse3.fsf@localhost> <871q33vvdb.fsf@gmail.com> <87ttfykgok.fsf@localhost> <87wmkuvlkf.fsf@gmail.com> <87cymmkctu.fsf@localhost> <87o701qpmk.fsf@localhost> Date: Fri, 24 Jan 2025 10:32:50 +0530 Message-ID: <87o6zwpzwl.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2607:f8b0:4864:20::644; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x644.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -2.40 X-Spam-Score: -2.40 X-Migadu-Queue-Id: 58EA27BE77 X-Migadu-Scanner: mx13.migadu.com X-TUID: axEYOJBmNiWs --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable [=E0=AE=A4=E0=AE=BF=E0=AE=99=E0=AF=8D=E0=AE=95=E0=AE=B3=E0=AF=8D =E0=AE=9C= =E0=AE=A9=E0=AE=B5=E0=AE=B0=E0=AE=BF 20, 2025] Ihor Radchenko wrote: > Ihor Radchenko writes: > >>> Ihor> Yes, behind version check, pgtk build check, and, ideally, af= ter >>> Ihor> checking that such method is not yet defined. >>> >>> The cl-defmethod itself checks it=CA=BCs being run in a pgtk emacs, so = not >>> sure we need more than that. >> >> The idea is to avoid modifying things outside Org mode unless strictly >> necessary. > > Looks like this patch is not happening unless somebody else (who > actually uses Emacs GTK build) steps up and creates it against Org mode. > Visuwesh? How about the attached? --=-=-= Content-Type: text/x-diff; charset=utf-8 Content-Disposition: attachment; filename=0001-Add-workaround-to-make-yank-media-work-under-GNOME-f.patch Content-Transfer-Encoding: quoted-printable >From 2f7a6b0c30a64a6bfea0dc32f966e93652541b95 Mon Sep 17 00:00:00 2001 From: Visuwesh Date: Fri, 24 Jan 2025 10:32:15 +0530 Subject: [PATCH] Add workaround to make yank-media work under GNOME for Ema= cs 29 MIME-Version: 1.0 Content-Type: text/plain; charset=3DUTF-8 Content-Transfer-Encoding: 8bit * lisp/org-compat.el: Add workaround proposed by Robert Pluim to make yank-media work under GNOME reliably for Emacs 29. Link: https://list.orgmode.org/orgmode/87ed7kttoa.fsf@k-7.ch Reported-by: S=C3=A9bastien Gendre --- lisp/org-compat.el | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lisp/org-compat.el b/lisp/org-compat.el index 91192629a..18359a587 100644 --- a/lisp/org-compat.el +++ b/lisp/org-compat.el @@ -1992,6 +1992,21 @@ (make-obsolete-variable 'org-speed-commands-user "configure `org-speed-commands' instead." "9.5") (provide 'org-compat) =20 +;;;; yank-media +;; Emacs 29's pgtk port has a bug where it might fail to return the +;; right TARGET. Install a workaround for Emacs <=3D29 since the fix +;; went to Emacs 30. See bug#72254. +;; Org bug report link: https://list.orgmode.org/orgmode/87ed7kttoa.fsf@k-= 7.ch +;; This should be removed once we drop Emacs 29 support. +(when (<=3D emacs-version 29) + (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))))) + ;; Local variables: ;; generated-autoload-file: "org-loaddefs.el" ;; End: --=20 2.45.2 --=-=-=--