GNU bug report logs -
#71909
30.0.60; Can not use yank-media for pasting image from clipboad in org-mode on Windows platform
Previous Next
Reported by: Eason Huang <aqua0210 <at> foxmail.com>
Date: Wed, 3 Jul 2024 04:47:01 UTC
Severity: wishlist
Found in version 30.0.60
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #118 received at 71909 <at> debbugs.gnu.org (full text, mbox):
> Date: Wed, 30 Oct 2024 10:05:08 +0100
> From: Cecilio Pardo <cpardo <at> imayhem.com>
>
> >> The image conversion is done using GdiPlus functions, which are
> >> already used on w32image.c, but are static. I have splitted this file
> >> into .c and .h, to be able to reuse those definitions. The image
> >> conversion requires that native image functions are activated.
> >
> > What happens with yank-media if the user disables native image APIs?
> > Do we signal an error or is there some graceful degradation (like
> > using another MIME type)?
>
> The ability to yank DIBV5 will be lost. If there is no alternative such
> as PNG or image/*, then yank can't be done.
Is this because w32-use-native-image-API set to nil disables loading
of GDI+? If so, we could load it even if w32-use-native-image-API is
nil, but just return false from w32_can_use_native_image_api. This
would allow us to use the GDI+ functions needed for yanking, but not
those needed for image display. Does this make sense?
> > Why a unibyte string? Is this always binary data or something? If
> > this could be text (e.g., text/html), then a unibyte string is not the
> > best choice.
>
> It can be binary, but not always. Is unibyte ok for binary cases?
Yes. But we need to document that in the doc string.
> I can
> treat text/* differently, and make exceptions for types like image/svg+xml.
That'd be much better.
> > In any case, if the function must return a unibyte string in some
> > cases, that should be mentioned in the doc string, because callers
> > will otherwise not expect to get a unibyte string. Also, where will
> > this unibyte string be decoded?
>
> In the binary case, is there any decoding to do?
No.
This bug report was last modified 260 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.