From: Bastien <bastien.guerry@wikimedia.fr>
To: "Łukasz Stelmach" <lukasz.stelmach@iem.pw.edu.pl>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: [PATCH] can't :include files in org-publish-project-alist
Date: Thu, 02 Sep 2010 16:03:19 +0200 [thread overview]
Message-ID: <87fwxs1bvc.fsf@gnu.org> (raw)
In-Reply-To: <87k4njkj6v.fsf@kotik.lan> ("Łukasz Stelmach"'s message of "Sat, 21 Aug 2010 18:46:16 +0200")
Łukasz Stelmach <lukasz.stelmach@iem.pw.edu.pl> 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
next prev parent reply other threads:[~2010-09-02 14:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-08-21 14:24 [PATCH] can't :include files in org-publish-project-alist Łukasz Stelmach
2010-08-21 14:34 ` Nick Dokos
2010-08-21 16:46 ` Łukasz Stelmach
2010-09-02 14:03 ` Bastien [this message]
2010-09-02 14:46 ` Łukasz Stelmach
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87fwxs1bvc.fsf@gnu.org \
--to=bastien.guerry@wikimedia.fr \
--cc=emacs-orgmode@gnu.org \
--cc=lukasz.stelmach@iem.pw.edu.pl \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.