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 sPo4DU0gk2e8/QAA62LTzQ:P1 (envelope-from ) for ; Fri, 24 Jan 2025 05:08:29 +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 sPo4DU0gk2e8/QAA62LTzQ (envelope-from ) for ; Fri, 24 Jan 2025 06:08:29 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jy4M8IC1; 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=1737695308; a=rsa-sha256; cv=none; b=YtL/e+yBzhkGHGMm1ArhgsyIoI9TIn8UhOZALFOk+GAAqTxpCJ0XSS44jh8+3Pri2cRXxH hS5BfEa8rsG1SBYSXm8RFt2hLflrMKytmyRe4NirGIFR9kqEhezH0tdpeJawhsGTxUlx/N Rq88SATebgtYBjs1YU+D9Z+/f/tX+zdiP0LvpDdHJnfrZa6Z8r+7cScNsbXkrpQiaYUiSe vxRRuP+v37EJQ0ykzYTmphRENSRHz/c1WlwZO15m4hTBGSb30qzj73yP5iyGFD3faXVHDH COQtOUFelIOoy11dCNmbyiu5zOY8FboznzQJuuCGm5yB0IK8KbkFso6Cm+qxHA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=jy4M8IC1; 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=1737695308; 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=krUeqJb+uSEb/ZPWdl7LPDDJSwy6SP+PncUpXEP6+zg=; b=uCr68QnQBxGHcvKHqYjlBB8ZawThskme5QNqUT6ZFONr6i8M5vm0KVx6PpBGhTu611iXqD 9YA14Ir75mMvGIBobm5GUjG4ygO7sS7w5vPYdW8qgjkwe0sU7Cx6jt+bDDZn1h1uPbRdhl uLuPLIJp5DRCXl0WfNugX9m8R8cPRoCrE1f/dcqictL5wAPnvylc86cmNqSHl5Q2/mwIR8 aV09W4ew6IGnTr9Y6kOU2DuswcEUIMsyOUtBDIXMUoaL03J/VTVIZMKnbVuLbNZcIofa4S N3frL5xCc9vAEKwsjPTZHjndiA34QadWU2+o1YdX5k0D94Aqc/uCeeZFvK5LFw== 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 36CFD7C13D for ; Fri, 24 Jan 2025 06:08:28 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tbBuz-0001xi-C8; Fri, 24 Jan 2025 00:07:45 -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 1tbBuy-0001xZ-Nq for emacs-orgmode@gnu.org; Fri, 24 Jan 2025 00:07:44 -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 1tbBuw-0007vu-Tn for emacs-orgmode@gnu.org; Fri, 24 Jan 2025 00:07:44 -0500 Received: by mail-pl1-x644.google.com with SMTP id d9443c01a7336-216395e151bso22964135ad.0 for ; Thu, 23 Jan 2025 21:07:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737695261; x=1738300061; 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=krUeqJb+uSEb/ZPWdl7LPDDJSwy6SP+PncUpXEP6+zg=; b=jy4M8IC1NofXa3cD1KyWtXgBfvuHsmCzp3AmWOlItuIYQxr4G66MQma3J8BqIwOD3L ydcz2wR7SgO6TTY5bUFcDx+4G1GSNGN741IBSU3MAxJGPOijzp+F7YMun8g7eU9uppPe MQPhc9OsCgpfEtwCdRwVFT5tYjL7NCsvB6Z1VATjezBIFZTuINK9fWV1/Ath0JA+vsXp fq8Gk7yXcHQkWM+sn2FDl/9UvIS3D0ljUHoqLixSTtNuV8mdVZ3U+26N+b0Or/hXf0hn LfmrQOVCq+XTUDOTgeWS+6NX/c6Dl0bUli9L645qnRObrwOUKFg5A/SbV4ASNoIK87py kIDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737695261; x=1738300061; 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=krUeqJb+uSEb/ZPWdl7LPDDJSwy6SP+PncUpXEP6+zg=; b=SHrVhodK3pyTtvPM6WPmgAOHzvUkM8bVttE7NizG1PrHTr2dymg69Zgdk7sfNQmmsl t+nXNN+p8jVQZ1w3Maa0MUDtE+OoW7WoG8EwgIIZ9JpnZbSBYi4L58gb5g0SVegs3Kv4 Gg3AlIGAsMhzQ43UkTMEKFkBoF9sIkTjExrwp0a0/yQRamPCDQhod+auhI4WyJghO3O1 psd+ZiVyYjV3Lxwup83YMYA6zkrlbikmmsTLGrQqt3wwRNbSboVzkVnEMN1KwMueT31W TBe1/CKymqUnA8hcchdUQxUFXHkl3dRzJpfp7Advjh5tKSz7uCXoIK1IbqjzNVv7WjTM AOVQ== X-Forwarded-Encrypted: i=1; AJvYcCUL1Z7bOo5hW/v5j2CrMw1VxeMPGVjq4S/9yJRABHRWR5EACe1hzXMSfo4dzm2rCWN+J+T2ALsGs0RRFm/i@gnu.org X-Gm-Message-State: AOJu0YxCSJu8h34hgHWsPhU1YNemlMMDYciyPtGYsgbMQqMvbbQehuco kW5EPGCWVc+smBAaADX0ttm5+g/5E1J9PHTIvFIIbh0HT2s9nk7J X-Gm-Gg: ASbGnct5MXy9G16Px6n8+YlnViTDdz6N7tvCeb/zngnHzqCpL83r/D7LD7tHmq+Gn+5 V7FYaNHUM8spk6wvxrUlqUTj64ohxfM50TKBSxiqPhWl+WKEWo8OssaXjBUB2osYqDaetuRJvHp 3HU/0BMBHB/fAAhNoPa7Y/EKXFz3jWkUl/cXT2lXPEwZBUxF9AcmKKkd581470v8IyTw3hoInL7 LVpw/Tyv9ajEeXbllrM4W511CPMrTZXcVNDl3bzezsXKY5bk0Q7Yin9ZWmyUbIOgmHjnreJG7iq LA== X-Google-Smtp-Source: AGHT+IHJIVTAc1em2n8LVvtuwYeo6gCtAr7EkiveAjG+Alab/Tc9HeU7fLp6Brcxtoh/rJCWodBYow== X-Received: by 2002:a17:902:cf12:b0:215:9eac:1857 with SMTP id d9443c01a7336-21da4a119a1mr34582015ad.5.1737695261315; Thu, 23 Jan 2025 21:07:41 -0800 (PST) Received: from localhost ([115.240.90.130]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-21da424e7fasm7525545ad.223.2025.01.23.21.07.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jan 2025 21:07:40 -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: <87o6zwpzwl.fsf@gmail.com> (Visuwesh's message of "Fri, 24 Jan 2025 10:32:50 +0530") 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> Date: Fri, 24 Jan 2025 10:37:37 +0530 Message-ID: <87jzakpzom.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: 36CFD7C13D X-Migadu-Scanner: mx13.migadu.com X-TUID: 6mjJFBR87Pia --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable [=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] Visuwesh wrote: > [=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, a= fter >>>> 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? Ooops, made a silly mistake. Still need more coffee. Sorry for the noise! --=-=-= 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 0b8cc3d8ff40416c8fbb202e3c94fcf471a21f5d 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..3ad330628 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-major-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 --=-=-=--