[புதன் ஜூன் 05, 2024] Ihor Radchenko wrote: > Visuwesh <visuwe...@gmail.com> writes: > >> 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....@gnu.org > > Looking at that thread, I see > https://yhetil.org/emacs-devel/yz18w18vybg7cb%...@idiocy.org/ > > + /* Dictionary for looking up NS types from MIME types, and vice versa. */ > + typeLookup > + = [NSDictionary > + dictionaryWithObjectsAndKeys: > + @"text/plain", NSPasteboardTypeURL, > +#if NS_USE_NSPasteboardTypeFileURL > + @"text/plain", NSPasteboardTypeFileURL, > +#else > + @"text/plain", NSFilenamesPboardType, > +#endif > + @"text/html", NSPasteboardTypeHTML, > + @"text/plain", NSPasteboardTypeMultipleTextSelection, > + @"application/pdf", NSPasteboardTypePDF, > + @"image/png", NSPasteboardTypePNG, > + @"application/rtf", NSPasteboardTypeRTF, > + @"application/rtfd", NSPasteboardTypeRTFD, > + @"STRING", NSPasteboardTypeString, > + @"text/plain", NSPasteboardTypeTabularText, > + @"image/tiff", NSPasteboardTypeTIFF, > + nil]; > > For images, only image/png and image/tiff are listed for some reason. No > jpeg. (and no jpeg in the spec at > https://developer.apple.com/documentation/appkit/nspasteboardtype) > > I suspect that image/tiff entry in the clipboard is garbled by Emacs. > We may want to report this as a bug. > > We may also need to request a feature to support clipboard on MacOS > better. Using the same example image.
Thanks for the analysis. Given that Alan says GNUStep cannot handle non-text clipboard items, I cannot propose anything myself. It would be nice if a Mac user can write a report and send it to the Emacs developers. Perhaps Juergen can do it? There was a bug report about yank-media failing in Mac yesterday or thereabouts so I think the clipboard situation in Mac has a lot to improve. Hopefully with Org's yank-media support the situation will improve.