unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Juergen Fenn <jfenn@gmx.net>
To: emacs-devel@gnu.org
Cc: Ihor Radchenko <yantar92@posteo.net>,
	Visuwesh <visuweshm@gmail.com>,
	"Christopher M. Miles" <numbchild@gmail.com>
Subject: [BR] Clipboard support on macOS and Org 9.7
Date: Sun, 16 Jun 2024 23:22:14 +0200	[thread overview]
Message-ID: <1a472cbc-7e1e-4a9d-97fc-5cfbf3ff58fb@gmx.net> (raw)

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 =./configure
--with-gnutls=ifavailable=. Perhaps there were some changes to the Apple
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
=Package tls is deprecated=.

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ürgen.



             reply	other threads:[~2024-06-16 21:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-16 21:22 Juergen Fenn [this message]
2024-06-17 11:00 ` [BR] Clipboard support on macOS and Org 9.7 Eli Zaretskii
2024-06-17 11:15   ` Ihor Radchenko
2024-06-17 12:07     ` Eli Zaretskii
2024-06-17 22:30       ` Juergen Fenn
2024-06-18  4:33         ` Visuwesh
2024-06-18 12:43           ` Eli Zaretskii
2024-06-17 12:05 ` Robert Pluim
2024-06-17 22:25   ` Juergen Fenn
2024-06-18  7:37     ` Robert Pluim
2024-06-22 20:16       ` Juergen Fenn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1a472cbc-7e1e-4a9d-97fc-5cfbf3ff58fb@gmx.net \
    --to=jfenn@gmx.net \
    --cc=emacs-devel@gnu.org \
    --cc=numbchild@gmail.com \
    --cc=visuweshm@gmail.com \
    --cc=yantar92@posteo.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).