From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id YI/sMm3/X2bDJQAAe85BDQ:P1 (envelope-from ) for ; Wed, 05 Jun 2024 08:02:22 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id YI/sMm3/X2bDJQAAe85BDQ (envelope-from ) for ; Wed, 05 Jun 2024 08:02:21 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CbQRkzuC; 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=1717567341; a=rsa-sha256; cv=none; b=vDp7truw/vmwQ0qdYR3Xj9HbMw5W/CtCs4EaErQqx1fo0kyGxJUOvO7Dkwc2ciEz4DaURa /G4ocmaWNB5e0iHOnN7GK13TErtt3Cig19OSDKZSHWF5k5YVRFrhg1KXlSV9HycOcTLh3j YGlAmQ+NouSDR1ztRSIMWM1TWTIL23g+eDAgbwDGuvTFhrb1ibAlfF5BtOHuQNb05gE2Bi US9rUbUFTorHOiZW36p2KSyYulh9FSCqOBVIy6lVxYNv5RVp8kNA/tc2qXNo2rFRGwlbZJ eSXTdT1H6STRMiTrUqv69OZqCJ8zi4h0uNztYbXBfGgPIp0ERq6gUT/PfM7Wyg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=CbQRkzuC; 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=1717567341; 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=PbxqCUaDiUD5Cn8LAS78Aa10c8/HVlib2uE4H3FBQyY=; b=mo7jcvIU6DWUtS1Fgn5pl4lshujIHLRQzS1ULBDD/Hqq8TJWfwXVYN9nPlPtbcVfY8yDhm 3+O8iTLCjd7u5BojHPSoxWk9G6C34G00vj6eCYnfzs4kcv/tnDvUuKTcoH7oaVk0LMrgOa MD5nz1REAQ+YoON5w8mklwRhun2SSPwsMqp0uMJcnCK7TeD3QveSqMMxO3S2xthV8X0QUg Dxn6xc+KYRn/8WtkaWfzTnUONnb+XJUkzBxnJ/uV3NgKqOEjLr+tNKiuJKAs/BqiCXsNGU hR+ZO3xIZFq5r7IKkjtdDNxH6QNK01/J6ixBtIJ/DdLb8GOFxgZISgDcSPumOQ== 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 925976177A for ; Wed, 5 Jun 2024 08:02:21 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sEjiI-0005qn-Ds; Wed, 05 Jun 2024 02:01:34 -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 ) id 1sEjiH-0005qf-SC for emacs-orgmode@gnu.org; Wed, 05 Jun 2024 02:01:33 -0400 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 1sEjiG-0006TE-3J for emacs-orgmode@gnu.org; Wed, 05 Jun 2024 02:01:33 -0400 Received: by mail-pl1-x643.google.com with SMTP id d9443c01a7336-1f61f775738so45662455ad.2 for ; Tue, 04 Jun 2024 23:01:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1717567290; x=1718172090; darn=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=PbxqCUaDiUD5Cn8LAS78Aa10c8/HVlib2uE4H3FBQyY=; b=CbQRkzuC72UAO6vxJuS28juo55zrMJdKxpTYrtAWcw6UtXEcyNTEthd7iKDiLn4P9b 831vZmAwiyZgjcjN2jovT9oIeqVxw5jZcH4rukfdusG9i87AUDnhj+WwWqED0p6RLKA7 QYggMO/BUnp8yzYcvKx5yVB/VDqCa4Okla6O1sG/d/RUbvReAjLJpEgmwN/oYOs1PJsK vX1FiqO7zwrWZxAiKyzRdSuK6iaq8DWG81Q1297rkwYJur4kD+jMc4TgV7c4WIzeTWia 7wnZ3pfTi6ue7ngfkRztT0YyMEUtlSoibtfqkp+1HrtPduVj/LczrfyXDy8Q1WNd/7vT bxrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1717567290; x=1718172090; 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=PbxqCUaDiUD5Cn8LAS78Aa10c8/HVlib2uE4H3FBQyY=; b=t/FoAOMqPc4f3o562gQXuaVbwxQt/tT/A3hwwrdxgkAnf3VG2MNTxsGRD5UmjRDTxC 0WJ5P8CtGuYHpBkAVq20RwZRut602HgINRGq1Ami6tJInU797B2j93EPDBXJ84SPkyuy m70VJRd3tTc00LFeYmZrVPHOYVUEW/FKseaKvhTjESoNrjW2kWn/qole2xjYIi1LaXXJ gFmhVAxkrI9i521TFGTwWgSbzYcyrXJE7DLM6qfdCwF3X9nDFkcDgYBzMeDNKoOG6ADp FyRvaapGSc/MilSItY46GnHRaF+0bQ7PvTLav+hLKS4M/L05X3Xz77MC5UqevhKLb+wk oCbQ== X-Forwarded-Encrypted: i=1; AJvYcCUCayJjSBcoYxmeFZqQcO62gxhDFvaCSjPccixsRwQOiGzwXg/hU4hkepc/I8bgKKjuWB/SfhTMkpzc0aotcRDNQcOFNMw= X-Gm-Message-State: AOJu0YyxmuN1hVmWkUJkjl+5AST5N6LsnmNTkSy83MiW4SEajbhzlZhx v4Ht/VYk9R/y9Aj/p8HteHxyssrs88HXrcLWJBRcuj3/6R6RC5MX X-Google-Smtp-Source: AGHT+IFuubMuuS68em7dOu9aQWDW0dqu/Rm590BwYP+qraRVhiB+seIh8CtqFQDcgZgkux7bOZ0XFQ== X-Received: by 2002:a17:903:234b:b0:1f6:7cc9:fb04 with SMTP id d9443c01a7336-1f6a5a0c1b1mr18537285ad.27.1717567290173; Tue, 04 Jun 2024 23:01:30 -0700 (PDT) Received: from localhost ([103.232.241.147]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-1f68822a4d9sm38369735ad.255.2024.06.04.23.01.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 23:01:29 -0700 (PDT) From: Visuwesh To: Juergen Fenn Cc: Ihor Radchenko , emacs-orgmode@gnu.org Subject: Re: [ANN] Org mode 9.7 is out In-Reply-To: <57b56164-65ec-4675-bb71-a1f4d4a3cd6d@gmx.net> (Juergen Fenn's message of "Wed, 5 Jun 2024 07:34:01 +0200") References: <87jzj7adfd.fsf@localhost> <87wmn7mv3h.fsf@web.de> <87h6eba6pm.fsf@localhost> <574bab16-4183-49f9-9691-c9e1665ffc4f@gmx.net> <878qzn1j1r.fsf@localhost> <0d0df2a7-0bd9-4985-8442-a205571fca66@gmx.net> <875xur1aql.fsf@localhost> <484850d7-6d2a-4178-9e30-f13b718ffc92@gmx.net> <8734pv14w6.fsf@localhost> <797a3e0a-b641-4a03-a024-ae055adb5380@gmx.net> <87plsy8vjb.fsf@gmail.com> <57b56164-65ec-4675-bb71-a1f4d4a3cd6d@gmx.net> Date: Wed, 05 Jun 2024 11:31:27 +0530 Message-ID: <877cf47wso.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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-Queue-Id: 925976177A X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.67 X-Spam-Score: -9.67 X-TUID: 7gT5hiFa5r6q [=E0=AE=AA=E0=AF=81=E0=AE=A4=E0=AE=A9=E0=AF=8D =E0=AE=9C=E0=AF=82=E0=AE=A9= =E0=AF=8D 05, 2024] Juergen Fenn wrote: > Am 03.06.24 um 07:06 Uhr schrieb Visuwesh: >> [=E0=AE=9E=E0=AE=BE=E0=AE=AF=E0=AE=BF=E0=AE=B1=E0=AF=81 =E0=AE=9C=E0=AF= =82=E0=AE=A9=E0=AF=8D 02, 2024] Juergen Fenn wrote: >>> [...] >>> I'm afraid I forgot to mention that I don't get prompted, and I did not >>> copy the image from my webbrowser. Rather, I downloaded the jpg file >>> over Europeana's proxy from Finnish National Library and then copied >>> this one with Command-c in Finder (the macOS file manager) from local >>> system SSD. I do not understand how the tiff comes in here. But is is >>> there in the data folder Org created. I tried to open it in Preview, I >>> even changed the file ending to .jpg, but I cannot open it. The tiff >>> file seems to be corrupt. >>> >> >> Please tell what is shown in the *Completions* buffer when you do M-x >> yank-media-types RET after you copy the image to the clipboard. I >> suspect the problem is with the regexp used to detect the mime-type. >> > > Sorry for my late reply. I have updated to Org 9.7.2 in the meanwhile. > > M-x yank-media-types RET yields: > > Yank type: > clipboard:image/tiff > clipboard:STRING > clipboard:text/plain I'm afraid there's nothing much we can do. IIUC, you copy the file from a file manager, so Org expects clipboard to be something like Possible completions are: clipboard:x-special/gnome-copied-files primary:... where clipboard:x-special/gnome-copied-files gives copy file:///home/viz/tmp/2-gnus_stipple.png but given there's neither image/jpeg nor a special type like the above, Org's yank-media copies the image/tiff data (the regexp used by Org looks for mime-types that match the regexp "image/.*"). I am guessing clipboard:text/plain contains the link to the file, am I right? But this feels fragile to rely on. What happens when you copy multiple images to the clipboard from the file manager? Is there a difference in yank-media-types' output? What if you copy a non-image file to the clipboard? Say a PDF file. I don't have access to a Mac but if you can find documentation on how Finder puts the relevant data in the clipboard, that would be useful. [ In Linux, you expect the x-special/gnome-copied-files or somesuch TARGET. ] BTW, we might have similar problems in Windows too. See this thread in emacs-devel when yank-media was initially added: https://yhetil.org/emacs-devel/837ddk9tc8.fsf@gnu.org > M-x yank-media RET still inserts an attachment with a tiff file that I > cannot open in Preview. Given the above, I hope you understand why this happens. HTH.