emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bastien <bzg@altern.org>
To: Emacs Org-mode <emacs-orgmode@gnu.org>
Subject: Re: Make [C-c C-o] open link to auto create non-existing directory
Date: Mon, 11 Feb 2013 15:37:19 +0100	[thread overview]
Message-ID: <87k3qej3u8.fsf@bzg.ath.cx> (raw)
In-Reply-To: <20130209061543.GB5518@stardiviner> (chris's message of "Sat, 9 Feb 2013 14:15:43 +0800")

Hi Chris,

chris <numbchild@gmail.com> writes:

> I found Emacs + Org-mode can not automatically create non-existing directory.
>
> For example:
>
> When I create a link [[file:Linux/Linux.org]], but this path does not exist.
> When I open this link with [C-c C-o]. Emacs shows into:
>     Use [M-x make-directory RET RET] to create the directory and its parents
>     Setting current directory: no such file or directory,
>     /home/chrsi/Org/Wiki/Linux/
>
> Is it possible make Org auto create non-existing directory ?

Org behaves like Emacs here: in Emacs, if you find a file in a
directory that does not exist, you get the same warning.

A solution to automatically create the directory (with maybe just
a confirmation step) would be needed for Emacs, not just for Org.

Or is your need very specific to Org?

-- 
 Bastien

      reply	other threads:[~2013-02-11 14:57 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-09  6:15 Make [C-c C-o] open link to auto create non-existing directory chris
2013-02-11 14:37 ` Bastien [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=87k3qej3u8.fsf@bzg.ath.cx \
    --to=bzg@altern.org \
    --cc=emacs-orgmode@gnu.org \
    /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).