From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: How to automatic list org files via Elisp and then, import them for an HTML export Date: Sat, 22 Dec 2012 19:50:54 +0100 Message-ID: <87ip7tvex0.fsf@bzg.ath.cx> References: <87bofombfr.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([208.118.235.92]:50441) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYbN-0006d7-3C for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 18:35:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TmYbE-0003wM-3O for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 18:35:32 -0500 Received: from mail-we0-f182.google.com ([74.125.82.182]:61218) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TmYbD-0003wA-Sz for emacs-orgmode@gnu.org; Sat, 22 Dec 2012 18:35:24 -0500 Received: by mail-we0-f182.google.com with SMTP id u54so2778294wey.41 for ; Sat, 22 Dec 2012 15:35:23 -0800 (PST) In-Reply-To: (flammable project's message of "Mon, 29 Oct 2012 09:34:22 +0100") 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: flammable project Cc: emacs-orgmode@gnu.org Hi, flammable project writes: > I was thinking that giving the more details will eliminated doubts > and misunderstanding. > > So to be clear enough, there was two questions in my previous > message: > > 1/ In E-LISP, how to parse a directory containing Org files and > import them with the "#+INCLUDE" function? MMhh... I've not explored this issue but I don't think including several files dynamically is a good idea. > I used those two functions. They parsed the directory and listed > the org files. But my lake of skills in elisp programming is > obvious! > #+BEGIN_SRC emacs-lisp :exports results > (let ((default-directory "~/path/to/the/directory/posts/")) >     (file-expand-wildcards "?org")) > #+END_SRC > > #+BEGIN_SRC emacs-lisp :exports results > (directory-files "~/path/to/the/directory/posts/" >                  nil         >                  "\\.org\\'") > #+END_SRC > > > > 2/ When I use "#+INCLUDE" for org files, the exporter mixed the > hierarchy in the HTML generated. Each time I used ":minlevel 1" as > argument but the exporter seem to create a sub-level of hierarchy, > which doesn't represent the true hierarchy in the imported org files? > Is it a bug? There we need something more concrete to chew on -- can you give the two source files (the one including and the one included) and explain why the HTML is wrong? Thanks, -- Bastien