emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: [PATCH] can't :include files in org-publish-project-al


From: Bastien
Subject: Re: [Orgmode] Re: [PATCH] can't :include files in org-publish-project-alist
Date: Thu, 02 Sep 2010 16:03:19 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.2 (gnu/linux)

Łukasz Stelmach <address@hidden> writes:

> Yes it was. I forgot to pull. However the part with appending "/" to b
> might still be valuable at least for building xm regexp. If
> :base-directory is set to "~/dydaktyka" (my example) then xm becomes
> "^/home/steelman/dydaktyka[^/]+\.\(org\)" which not necessarily makes
> sense. It may go like this
>
>    (xm (concat "^" b
>     (when (string-match "^[/]$" b) "/")
>     (if r ".+" "[^/]+")
>      "\\.\\(" x "\\)$")))

:base-directory now allows a directory name with no ending slash.

I did this in a slightly different way than the one you suggest:

,----
|         (let* ((r (plist-get (cdr prj) :recursive))
| -              (b (expand-file-name (plist-get (cdr prj) :base-directory)))
| +              (b (expand-file-name (file-name-as-directory
| +                                    (plist-get (cdr prj) :base-directory))))
|                (x (or (plist-get (cdr prj) :base-extension) "org"))
`----

Thanks!

-- 
 Bastien



reply via email to

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