From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juergen Fenn Newsgroups: gmane.emacs.devel Subject: [BR] Clipboard support on macOS and Org 9.7 Date: Sun, 16 Jun 2024 23:22:14 +0200 Message-ID: <1a472cbc-7e1e-4a9d-97fc-5cfbf3ff58fb@gmx.net> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="33915"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: Ihor Radchenko , Visuwesh , "Christopher M. Miles" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jun 16 23:23:10 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 1sIxLB-0008aJ-J5 for ged-emacs-devel@m.gmane-mx.org; Sun, 16 Jun 2024 23:23:09 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sIxKS-0000Ey-Qu; Sun, 16 Jun 2024 17:22:24 -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 1sIxKR-0000Ek-Dj for emacs-devel@gnu.org; Sun, 16 Jun 2024 17:22:23 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sIxKP-0006V7-F1 for emacs-devel@gnu.org; Sun, 16 Jun 2024 17:22:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.net; s=s31663417; t=1718572936; x=1719177736; i=jfenn@gmx.net; bh=g6aMVCfFOeqi5lYvid9ciX+iH6V8q74cd4h7I9RjDx4=; h=X-UI-Sender-Class:Message-ID:Date:MIME-Version:From:Subject:To: Cc:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=nPFSEAEQ3mto4axmPiDosFY/Wd1IDhm2r9TTvhVkGhMXvLwCrj1pIcI8wL60Za+d X9pa8nXzv9dou3P9RlqTTsd6oFAYrbvX/RrCG0F7ybLejWr2UEq3dHNTz/YrVnUCw TfE68Pq8qYIvyci6QDKVGAsVoofswndX+SxURqtcbQ2xbn4iv/CqSJIPpdsosYShg /+VdDbr271r3mPY/v0LzXYOmx8CWN7kCZq0x1zpLwW2yPp4DdOT8AXgDuwvNNiFwQ I8TGfbdK14fgxYEdYj4GE2he9y6e2WAY1y90h1ER0usiGXG27mIBUDtlEr5ishazj yuVLEh8NUORtXfVo0Q== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.178.22] ([91.17.165.236]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MCsUC-1sABtv3yU4-008QYZ; Sun, 16 Jun 2024 23:22:16 +0200 Content-Language: de-DE X-Provags-ID: V03:K1:zEy8/eJUAaFJKQLbWZ2ATDyvirI+/6B+uLCfcrMB4wFiZr1RWwR PpO1zAFjd9O3LQZX6pOmOVeIwvio93LOlc6N6METv4EpdpKenNNjg5/2PENzoMZzKGHW9SH sSfcBo1wvWopKI9ui4DS7TKFU86GBqwqkdbPlBJM6qKWvYR7ZWenlxSdP89PTV/aHVv9PyX BAq3ZDISwrvlSbXAhvuwQ== UI-OutboundReport: notjunk:1;M01:P0:mMbozeREGDY=;g6ejDSw/q+q69fXMTSEGGGopM4p k9c672maQJRwj20c7JWY15tAqgGH1sKlJ661mTZUNpIYcukZ+koINxkJ4ahJaH2L8Unmjo1kW JSUwytSc08fsv7THxi/7gmLVFEzJpi3BDIkc537drJDN44usyTpD3MtB6U294IPimuwpHn5nj deS3FodujHHPDnU4HPz5JB1SyGC3Ri/MrqHyBjwYD8ysBPumQlMvBDPmxpHOiifch93OSGEfS ixdqoMckrWyYnm/CEQju9cECyy4uT7SVYwbEMsbRKmfR4P/tj/VRmnIH9Y3BLvj6SBB5Y4Doi Y3sBmXGmtpHY/SbIB5xuOuAA7DZlPNLY53a1XBkBU3Imt2XAzDAb0tVK23rx8I68o3WknXve/ cn0nPmtJ0a0F0I8OlMXdKBJ9lrk+jr87PcliohJsvLfvXUoVG0CDIlGOkl8fAVw+Y2SZ0x6io Ue7SCr1ES93DmCgSdvwKtoUDcnLITsyWtvdryvcCrheVm20Tp3uwsaZC2TXTPL1NYC0DqSdpk w77K9dKkBwkREkpDVYRJJ3uA8suCYVAGL/T+UOldP2iwHrstjY7Mj2nrZE2zss4xJHhhsGWzp I6qJC5MxuSF5WecajGeeVf6C4phJo+woTmcchxcEyKT91UYyCUr2ynkvunX5sbuLOvHUTQ19b bxU0Ept25aVvTTSb8T0o/2ci0e+yfH/D+29BGClRiJvVjLXShlx/zzN0x5o+82W2/elZr9AUm mUdvdUvdBZtBRdAGW8oTHKlXDA8+1MvCPIiL2ay5XtK0FNyP5++Zse8yROt6WakN3lWp6Ggb Received-SPF: pass client-ip=212.227.17.21; envelope-from=jfenn@gmx.net; helo=mout.gmx.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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-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:320197 Archived-At: Dear all, 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. I ran into troubles with a new feature that was introduced with Org 9.7 for attaching images to Org documents from the clipboard. We found out that this does not work as expected under macOS. Please see our thread starting at: https://lists.gnu.org/archive/html/emacs-orgmode/2024-06/msg00014.html I am sorry it took me a moment to respond to their request because (1) in the meanwhile I had to upgrade from macOS Ventura to Sonoma and and re-compile Emacs, and (2) there were some more unexpected technical and real-life matters. So, here we go. You might like to know that upgrading to Sonoma meant that I had to re-compile my Emacs 29.3 because the one I had built under Ventura would not run any more on the new platform. I managed to re-compile Emacs from the 29.3 tarball I had used on Ventura, but I realised that I cannot compile Emacs under Sonoma with gnutls. Although the latest gnutls is installed on my machine (I even re-installed gnutls over Homebrew) and though this posed no problem under Ventura, I had to use =3D./configure =2D-with-gnutls=3Difavailable=3D. Perhaps there were some changes to the A= pple Command Line Tools, too, that I re-installed for Sonoma. I can install new packages with package.el, but Emacs now keeps telling me that =3DPackage tls is deprecated=3D. 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. My observations were confirmed by Christopher, another user on macOS, I have included in CC. Many thanks in advance. Regards, J=C3=BCrgen.