From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: Make [C-c C-o] open link to auto create non-existing directory Date: Mon, 11 Feb 2013 15:37:19 +0100 Message-ID: <87k3qej3u8.fsf@bzg.ath.cx> References: <20130209061543.GB5518@stardiviner> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:55388) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4up8-00052b-2K for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 09:57:39 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U4up6-0001za-IR for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 09:57:37 -0500 Received: from mail-wg0-f54.google.com ([74.125.82.54]:47536) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U4up6-0001zV-CB for emacs-orgmode@gnu.org; Mon, 11 Feb 2013 09:57:36 -0500 Received: by mail-wg0-f54.google.com with SMTP id fm10so4927753wgb.9 for ; Mon, 11 Feb 2013 06:57:35 -0800 (PST) In-Reply-To: <20130209061543.GB5518@stardiviner> (chris's message of "Sat, 9 Feb 2013 14:15:43 +0800") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs Org-mode Hi Chris, chris 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