From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: [BR] Clipboard support on macOS and Org 9.7 Date: Mon, 17 Jun 2024 14:00:54 +0300 Message-ID: <86a5jjsujd.fsf@gnu.org> References: <1a472cbc-7e1e-4a9d-97fc-5cfbf3ff58fb@gmx.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33676"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, yantar92@posteo.net, visuweshm@gmail.com, numbchild@gmail.com To: Juergen Fenn Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jun 17 13:01:30 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sJA78-0008aX-83 for ged-emacs-devel@m.gmane-mx.org; Mon, 17 Jun 2024 13:01:30 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sJA6i-0001Dw-RV; Mon, 17 Jun 2024 07:01:04 -0400 Original-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 1sJA6e-00014L-3g for emacs-devel@gnu.org; Mon, 17 Jun 2024 07:01:01 -0400 Original-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 ) id 1sJA6d-0006Jz-Fk; Mon, 17 Jun 2024 07:00:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=q+yBWC3E2ButuLItHjMzjDJxH81ZusYKD5zp+/xSgoc=; b=lMwE8ZHOLVqN 0JejWsMtLU5VHWkkbTnXN1WhAmFvq0WCgHnXVNH1dCHe91kKPW5NkKeWyDOgAWo3FPWm4lo5hIvsQ 8fC1P6uh04E8R6lWSAgix4hg050CFs29XYJEu2ME7METd3y0LPlwjosABeWHt9/56DYXb/noOv6u+ VAfnamrpM8pGpglbGMI4379UOnoIK1lyk4FB9tVKHjNYlAzCvgiHd3DjtYbbDt54TJ/rHReyCq7Jc Xk3awN9ikdLU43vKOBzGJ/seiWDLx92UKcZqa+PKXlhTxsyHFdtSqugVRdsFm7silezYM/VxL9I4V +3Qol/jIpV19KD1W9AEEYQ==; In-Reply-To: <1a472cbc-7e1e-4a9d-97fc-5cfbf3ff58fb@gmx.net> (message from Juergen Fenn on Sun, 16 Jun 2024 23:22:14 +0200) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:320204 Archived-At: > Date: Sun, 16 Jun 2024 23:22:14 +0200 > From: Juergen Fenn > Cc: Ihor Radchenko , Visuwesh , > "Christopher M. Miles" > > over at the Org mode mailinglist, Ihor and Visuwesh asked me to post a > bug report to emacs-devel about how Emacs handles the macOS clipboard. Bug reports should be sent to the Emacs bug tracker, preferably by using report-emacs-bug. If Ihor indeed told you to post this here, I think he made a mistake. > Anyway, I have tested the clipboard bug with Org 9.7.4 on GNU Emacs 29.3 > (build 1, aarch64-apple-darwin23.5.0, NS appkit-2487.60 Version 14.5 > (Build 23F79)) of 2024-06-09. Here is what I can reproduce: > > - Open the file manager Finder and select a local jpg file. > - Press Command-c to copy the file to the clipboard. > - Switch to an Org buffer in Emacs. > - M-x yank-media. > > It turns out that any file, regardless of its real format, gets attached > with a TIFF file ending. > > M-x yank-media-type yields: > > (1/3) Yank type: > clipboard:image/tiff > clipboard:STRING > clipboard:text/plain > > Ihor found out that MIME type support in macOS indeed is incomplete: > > https://lists.gnu.org/archive/html/emacs-orgmode/2024-06/msg00063.html > > So, you might like to have a look into this. If you can try the latest master branch of the Emacs Git repository, perhaps this is now improved (not sure). In any case, this will need a developer who knows about selections on macOS. Can anyone look into this, please?