From: Ihor Radchenko <yantar92@posteo.net>
To: ISouthRain <isouthrain@qq.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [BUG] org 9.7 drag image down't make directory on Windows system [9.7.3 (release_9.7.3 @ f:/App/emacs/share/emacs/30.0.50/lisp/org/)]
Date: Thu, 13 Jun 2024 16:05:08 +0000 [thread overview]
Message-ID: <878qz8de17.fsf@localhost> (raw)
In-Reply-To: <tencent_AABB2DEBF7ABFBC795348C288E0EBFCFDD0A@qq.com>
ISouthRain <isouthrain@qq.com> writes:
> Thanks you work!!
>
> Example:
> (setq org-yank-image-save-method "./myattach/")
> (setq org-yank-dnd-method 'attach)
> Filename: c:/users/abc/test.org
> No have dir: c:/users/abc/myattach/
> drag image down't work, no auto make directory c:/users/abc/myattach/
> Message out: Copying file: Operation not permitted, .............. and more
>
> I Have dir: c:/users/abc/myattach/
> drag image is work
>
> Because I saw the function: org--image-yank-media-handler
> (when (and (not (eq org-yank-image-save-method 'attach))
> (not (file-directory-p org-yank-image-save-method)))
> (make-directory org-yank-image-save-method t))
>
> I don't understand why the path is not created automatically??
A simple omission.
Fixed, on bugfix.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=d7b5c19da
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
prev parent reply other threads:[~2024-06-13 16:04 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <877ceuaogx.fsf@qq.com>
2024-06-12 2:23 ` [BUG] org 9.7 drag image down't make directory on Windows system [9.7.3 (release_9.7.3 @ f:/App/emacs/share/emacs/30.0.50/lisp/org/)] ISouthRain
2024-06-13 16:05 ` Ihor Radchenko [this message]
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.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=878qz8de17.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-orgmode@gnu.org \
--cc=isouthrain@qq.com \
/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/org-mode.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).