From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 2ATgH22Ok2fNkwAAqHPOHw:P1 (envelope-from ) for ; Fri, 24 Jan 2025 12:58:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 2ATgH22Ok2fNkwAAqHPOHw (envelope-from ) for ; Fri, 24 Jan 2025 13:58:21 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=aOlbTcrS; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1737723501; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=kittoA4qOykS0TpZvJnbDuZ2rXRt39SThhC7Yt9Qaq0=; b=pzQDKxsRDY9myIfXcwiACHTivtCids9c7/qRRT3bAU8pwRi+O1H2EQkHJGbRnSAXjggM7B gp1c10QUVHIXTbjXrMLVPNNXktu/VTV4TiTw+mZWOioaeZmhsV3A09wyqn3cW7lv4/nkhT fTFut82LrQVVy6i1EFD2BrcLKOTq5ddTgeFmze8V5rShKrmzHxxzHDXyDra6k2hfYX7lwt g8IHptcdZDWl3lM9lCISsPT5drOsBYKoNfuRkwUz42EPfoA0MSszP3m04n5SXijbSnS2aA 0NFYoQ9U7fJm70koQYe6oSyEKDSV/9+r1+bU536Y2ShwsU6WJyX9kyXXISHqUA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=aOlbTcrS; 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"; dmarc=pass (policy=none) header.from=gmail.com ARC-Seal: i=1; s=key1; d=yhetil.org; t=1737723501; a=rsa-sha256; cv=none; b=WO2hZPOEmRc7Gvs3HezgIhW7MTHaSoZ0ry9YBtKCgsZ1Lq9H0HprDuPHqxbAdJflRBZnWM LYwzChgyhiakKvniYpNTRn3DML17v+6mwhdQrFPwCXvVoRpgSryO17gskd/4kJah39kVuz 2md3zqA+IN4/MHNMrSbf++ZxTeL9OJLmzHtU7vWKekUbHifEfkg/QEwZss/Ml1L3hF/Pfe vFXy3wovKDZ4zUlI1YTM8U9NJUHVz2xP/nnbpW3g/7JkL0kY102MyEOlQPd7EHaYCZ+48c zrEUmIPB7I3xWfw5OQbdAI8G3wkOz3I9OxTXjt468t+SMhe0F3CbS1jw4Q1zuQ== 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 0E30E8E192 for ; Fri, 24 Jan 2025 13:58:21 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tbJFb-0006SC-QG; Fri, 24 Jan 2025 07:57:31 -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 1tbJFa-0006Ry-TJ for emacs-orgmode@gnu.org; Fri, 24 Jan 2025 07:57:30 -0500 Received: from mail-pl1-x643.google.com ([2607:f8b0:4864:20::643]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tbJFZ-0006ZE-5r for emacs-orgmode@gnu.org; Fri, 24 Jan 2025 07:57:30 -0500 Received: by mail-pl1-x643.google.com with SMTP id d9443c01a7336-2164b662090so40079355ad.1 for ; Fri, 24 Jan 2025 04:57:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737723447; x=1738328247; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kittoA4qOykS0TpZvJnbDuZ2rXRt39SThhC7Yt9Qaq0=; b=aOlbTcrSmjqeG0+MfrfqWYlcXsV4bcm9g2dBKiA+OAD/MODeUbDrInfN4g7nywsS+7 ja/SvJLUqHSa331lwtkHpynYhFSJ5MZSWvwJjCywaHIIBUaofX7NaVpCvwLBfwc2uqMF 4waTw6uZAzN+sZeijsFvQ6YR3U3tf2ZHJQ36/OL3haEuHvTBxc2E/iVcx8r9jN0oDbL2 9AnTjVuPTPRN058ZorV3fxG3MJ9fLiPBRIfhKj5hLLvWfANBaWY7aV3EBtg41tgvY1vo ylGh5OEpZ/KMZmCZw327EqPlFHQnrwXI14itgzhmp6b/WD2+q+x+nKpyPmM4RFXLmhHm 1RCg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737723447; x=1738328247; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=kittoA4qOykS0TpZvJnbDuZ2rXRt39SThhC7Yt9Qaq0=; b=o2TYwMmCCskYBrQwgLvE1xq7hvCuop4jZK5CchpT7mPJq5yNAU6OByOOMIDJfFAL1C MK/L36TYvGyYhTJ2eRfCI98s4PqPvKjx1yMYV/QB6gGk21dei+G3HxacQiXproFQuDJ9 5XYJ7eVdb2hGs8Soye/yssQfIJr8LdHE8+1fROloikcDZhL5n8LMZGrayLe3WK4jWrMd OwXVOk4E7eWTG1XTPx+IMnEyi4FGqkq/3FX8wZxQwaHv5tji7pHjMhgrFIivqVOWN/8U LlW0IPGoazfWriHKbEqfeb4nxEOnDQlgvWsaEMVEAJUbH4J+pfmbi9w0U41kLukzxCCE RuaQ== X-Forwarded-Encrypted: i=1; AJvYcCVJikfno4IKnjm3ekANexj5/JcRH/E2bCxhuir/RY4rytDE38eQjE9QYaDdF4YQezWkxmkuKMv3o/cqjTnD@gnu.org X-Gm-Message-State: AOJu0YzVWJLr69o+o9sUAPDNsVURSX/WemP18YP5L483yGlMzjreKfNP LFVYLq9RTf7CHUFOlryzn+pBfk6KShFp4VA1K0kBVjmFYR/8mg3J5BRJ49ok X-Gm-Gg: ASbGncuLjHoob4mfFq+XmZHHHg0guHoMXddGdo13wvZ4koKJNsA9qjZZHTO7F5vnt/m NDhNhLtTPdealm73LNyW+k6I7oUnz7UZs3ttLhQqVnL6NKVf/+dBvOiDiMK5+9krrpR9tpDrgMk GvJzpId9QL9kZzXx2/uJ9YOIXedUKOxP+8S2AM3KaTNQeIUtPVdXOX2O5/1P711oPz7OgKz74i9 AGr0A0vqT8YkOvPu7k/DWr5Qao8QORC1368GvfEAMO3j7FRF1Et74WMVcJOxUzQzZ71iw3GSP8O EA== X-Google-Smtp-Source: AGHT+IF/H41C1A64IX5lMtgavgMC1sYZjwWiCPhOGnUdjl+cD2WAYYHlil9US9MglvmJt3abF51UXQ== X-Received: by 2002:a05:6a21:6d87:b0:1e6:5323:58cb with SMTP id adf61e73a8af0-1eb214afd38mr46709945637.23.1737723447510; Fri, 24 Jan 2025 04:57:27 -0800 (PST) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-72f8a69f5fdsm1770953b3a.5.2025.01.24.04.57.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 24 Jan 2025 04:57:27 -0800 (PST) From: Visuwesh To: Robert Pluim Cc: Ihor Radchenko , =?utf-8?Q?S=C3=A9bastien?= Gendre , org-mode-email Subject: Re: Cannot yank media when image come from Gnome screenshot In-Reply-To: <87cygc7aek.fsf@gmail.com> (Robert Pluim's message of "Fri, 24 Jan 2025 11:50:59 +0100") 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> <87o6zwpzwl.fsf@gmail.com> <87jzakpzom.fsf@gmail.com> <87cygc7aek.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Fri, 24 Jan 2025 18:27:23 +0530 Message-ID: <878qr0pdxo.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::643; envelope-from=visuweshm@gmail.com; helo=mail-pl1-x643.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, T_SCC_BODY_TEXT_LINE=-0.01 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -0.42 X-Spam-Score: -0.42 X-Migadu-Queue-Id: 0E30E8E192 X-Migadu-Scanner: mx11.migadu.com X-TUID: B4q2cbn/Ldmq [=E0=AE=B5=E0=AF=86=E0=AE=B3=E0=AF=8D=E0=AE=B3=E0=AE=BF =E0=AE=9C=E0=AE=A9= =E0=AE=B5=E0=AE=B0=E0=AE=BF 24, 2025] Robert Pluim wrote: >>>>>> On Fri, 24 Jan 2025 10:37:37 +0530, Visuwesh s= aid: > > Visuwesh> * lisp/org-compat.el: Add workaround proposed by Robert Plu= im > Visuwesh> to make yank-media work under GNOME reli= ably for > Visuwesh> Emacs 29. > > Did I propose it? I don=CA=BCt remember =F0=9F=98=80 You did, indeed. See https://yhetil.org/87wmlb8djy.fsf@gmail.com. > Visuwesh> Link: https://list.orgmode.org/orgmode/87ed7kttoa.fsf@k-7.ch > Visuwesh> Reported-by: S=C3=A9bastien Gendre > Visuwesh> --- > Visuwesh> lisp/org-compat.el | 15 +++++++++++++++ > Visuwesh> 1 file changed, 15 insertions(+) > > Visuwesh> diff --git a/lisp/org-compat.el b/lisp/org-compat.el > Visuwesh> index 91192629a..3ad330628 100644 > Visuwesh> --- a/lisp/org-compat.el > Visuwesh> +++ b/lisp/org-compat.el > Visuwesh> @@ -1992,6 +1992,21 @@ (make-obsolete-variable 'org-speed-c= ommands-user > Visuwesh> "configure `org-speed-commands' in= stead." "9.5") > Visuwesh> (provide 'org-compat) > > Visuwesh> +;;;; yank-media > Visuwesh> +;; Emacs 29's pgtk port has a bug where it might fail to r= eturn the > Visuwesh> +;; right TARGET. Install a workaround for Emacs <=3D29 si= nce the fix > Visuwesh> +;; went to Emacs 30. See bug#72254. > Visuwesh> +;; Org bug report link: https://list.orgmode.org/orgmode/8= 7ed7kttoa.fsf@k-7.ch > Visuwesh> +;; This should be removed once we drop Emacs 29 support. > Visuwesh> +(when (<=3D emacs-major-version 29) > > I thought Ihor wanted this to check for a pgtk build? Personally I > think the check for the window system in the cl-defmethod is enough, > but I=CA=BCm not Ihor. I think so too but let's hear from Ihor first. > One way to check for pgtk is checking the result of > (window-system). Or checking whether `pgtk-backend-display-class' is > `fboundp'. I don't think we should use (window-system) since the return value is FRAME dependent: if Someone=E2=84=A2 opens a terminal frame first and loads= Org while it is focused, they won't get this fix even if their build is a pgtk build. C: [ I think this will definitely break for daemon processes. ] We could rely on (fboundp 'pgtk-backend-display-class) but I somehow don't like it as compared to just leaving this extra check out.