From: Visuwesh <visuweshm@gmail.com>
To: Juergen Fenn <jfenn@gmx.net>
Cc: Ihor Radchenko <yantar92@posteo.net>, emacs-orgmode@gnu.org
Subject: Re: [ANN] Org mode 9.7 is out
Date: Wed, 05 Jun 2024 11:31:27 +0530 [thread overview]
Message-ID: <877cf47wso.fsf@gmail.com> (raw)
In-Reply-To: <57b56164-65ec-4675-bb71-a1f4d4a3cd6d@gmx.net> (Juergen Fenn's message of "Wed, 5 Jun 2024 07:34:01 +0200")
[புதன் ஜூன் 05, 2024] Juergen Fenn wrote:
> Am 03.06.24 um 07:06 Uhr schrieb Visuwesh:
>> [ஞாயிறு ஜூன் 02, 2024] Juergen Fenn wrote:
>>> [...]
>>> I'm afraid I forgot to mention that I don't get prompted, and I did not
>>> copy the image from my webbrowser. Rather, I downloaded the jpg file
>>> over Europeana's proxy from Finnish National Library and then copied
>>> this one with Command-c in Finder (the macOS file manager) from local
>>> system SSD. I do not understand how the tiff comes in here. But is is
>>> there in the data folder Org created. I tried to open it in Preview, I
>>> even changed the file ending to .jpg, but I cannot open it. The tiff
>>> file seems to be corrupt.
>>>
>>
>> Please tell what is shown in the *Completions* buffer when you do M-x
>> yank-media-types RET after you copy the image to the clipboard. I
>> suspect the problem is with the regexp used to detect the mime-type.
>>
>
> Sorry for my late reply. I have updated to Org 9.7.2 in the meanwhile.
>
> M-x yank-media-types RET yields:
>
> Yank type:
> clipboard:image/tiff
> clipboard:STRING
> clipboard:text/plain
I'm afraid there's nothing much we can do. IIUC, you copy the file from
a file manager, so Org expects clipboard to be something like
Possible completions are:
clipboard:x-special/gnome-copied-files
primary:...
where clipboard:x-special/gnome-copied-files gives
copy
file:///home/viz/tmp/2-gnus_stipple.png
but given there's neither image/jpeg nor a special type like the above,
Org's yank-media copies the image/tiff data (the regexp used by Org
looks for mime-types that match the regexp "image/.*").
I am guessing clipboard:text/plain contains the link to the file, am I
right? But this feels fragile to rely on.
What happens when you copy multiple images to the clipboard from the
file manager? Is there a difference in yank-media-types' output? What
if you copy a non-image file to the clipboard? Say a PDF file.
I don't have access to a Mac but if you can find documentation on how
Finder puts the relevant data in the clipboard, that would be useful.
[ In Linux, you expect the x-special/gnome-copied-files or somesuch
TARGET. ]
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.fsf@gnu.org
> M-x yank-media RET still inserts an attachment with a tiff file that I
> cannot open in Preview.
Given the above, I hope you understand why this happens.
HTH.
next prev parent reply other threads:[~2024-06-05 6:02 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-02 9:42 [ANN] Org mode 9.7 is out Ihor Radchenko
2024-06-02 11:40 ` Dr. Arne Babenhauserheide
2024-06-02 12:07 ` Ihor Radchenko
2024-06-02 14:01 ` Juergen Fenn
2024-06-02 15:05 ` Ihor Radchenko
2024-06-02 15:21 ` Juergen Fenn
2024-06-02 18:05 ` Ihor Radchenko
2024-06-02 19:13 ` Juergen Fenn
2024-06-02 20:11 ` Ihor Radchenko
2024-06-02 21:17 ` Juergen Fenn
2024-06-03 5:06 ` Visuwesh
2024-06-05 5:34 ` Juergen Fenn
2024-06-05 6:01 ` Visuwesh [this message]
2024-06-05 14:20 ` Ihor Radchenko
2024-06-06 6:20 ` Visuwesh
2024-06-06 11:55 ` Juergen Fenn
2024-06-06 15:17 ` Ihor Radchenko
2024-06-06 20:41 ` Juergen Fenn
2024-06-17 21:16 ` JD Smith
2024-06-18 1:03 ` JD Smith
2024-06-05 16:03 ` Juergen Fenn
2024-06-29 21:01 ` Juergen Fenn
2024-06-03 9:11 ` Ihor Radchenko
2024-06-02 16:30 ` Russell Adams
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877cf47wso.fsf@gmail.com \
--to=visuweshm@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=jfenn@gmx.net \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.