From: Juergen Fenn <jfenn@gmx.net>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: [ANN] Org mode 9.7 is out
Date: Sun, 2 Jun 2024 17:21:15 +0200 [thread overview]
Message-ID: <0d0df2a7-0bd9-4985-8442-a205571fca66@gmx.net> (raw)
In-Reply-To: <878qzn1j1r.fsf@localhost>
Am 02.06.24 um 17:05 Uhr schrieb Ihor Radchenko:
>> When I drag and drop a jpg image to an Org buffer, Emacs opens the image
>> i new buffer, not in the Org buffer.
>
> Interesting.
> May you try M-x debug-on-entry RET dnd-open-local-file RET
> Then, drop an image, and share the backtrace displayed?
----
Debugger entered--entering a function:
* dnd-open-local-file("file:/Users/juergenfenn/Desktop/test-file.jpeg"
private)
dnd-handle-one-url(#<window 25 on notizbuch.org> private
"file:/Users/juergenfenn/Desktop/test-file.jpeg")
ns-drag-n-drop((drag-n-drop (#<window 25 on notizbuch.org> 46478 (115
. 566) 0 nil 46478 (12 . 31) nil (61 . 8) (9 . 18)) (file
(ns-drag-operation-generic ns-drag-operation-copy
ns-drag-operation-link) "/Users/juergenfenn/Desktop/test-file.jpeg")))
funcall-interactively(ns-drag-n-drop (drag-n-drop (#<window 25 on
notizbuch.org> 46478 (115 . 566) 0 nil 46478 (12 . 31) nil (61 . 8) (9 .
18)) (file (ns-drag-operation-generic ns-drag-operation-copy
ns-drag-operation-link) "/Users/juergenfenn/Desktop/test-file.jpeg")))
call-interactively(ns-drag-n-drop nil nil)
command-execute(ns-drag-n-drop)
----
>> When I copy the jpg file in Finder and paste it C-y to the Org buffer,
>> the file name appears. No org syntax for including an image is added.
>>
>> Is there anything else I have to do?
>
> Yes, you need to use M-x yank-media, not C-y.
Thank you, this indeed did the trick. Now, Org created an attachment,
but not the original jpeg was added. Instead org added a tiff file in a
subfolder of the org file working directory. However, I cannot open it
in Preview as a tiff file.
----
* Test
:ATTACH:
:PROPERTIES:
:ID: 063E1B8B-2EDA-47FD-88C6-A220F3DCA23F
:END:
[[attachment:clipboard-20240602T170643.tiff]]
----
An export to Markdown and preview from Markdown-Mode in Firefox does not
display the image:
----
# Inhaltsverzeichnis
1. [Test](#org82bf039):ATTACH:
<a id="org82bf039"></a>
# Test :ATTACH:
<file:///Users/juergenfenn/Documents/Projekte/org/data/06/3E1B8B-2EDA-47FD-88C6-A220F3DCA23F/clipboard-20240602T170643.tiff>
----
Thanks, again.
Regards,
Jürgen.
next prev parent reply other threads:[~2024-06-03 4:53 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 [this message]
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
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=0d0df2a7-0bd9-4985-8442-a205571fca66@gmx.net \
--to=jfenn@gmx.net \
--cc=emacs-orgmode@gnu.org \
--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.