emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [BUG] org 9.7 drag image down't make directory on Windows system [9.


From: Ihor Radchenko
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

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>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]