emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Daniel Clemente <n142857@gmail.com>
Cc: org-mode Mailinglist <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] default base-extension .org for org-publish
Date: Tue, 6 Jul 2010 12:58:19 +0200	[thread overview]
Message-ID: <F3A53CCF-5C5C-457D-8F24-193ED5759CC6@gmail.com> (raw)
In-Reply-To: <87sk3y2vlo.wl%n142857@gmail.com>

Applied, thanks.

- Carsten

On Jul 5, 2010, at 10:14 AM, Daniel Clemente wrote:

>
> Org-publish: correctly find files in projects which didn't define a  
> base-extension.
> Previously, (org-publish-get-project-from-filename "~/org/file.org")  
> would return nil because the constructed regular expression "^/home/ 
> dc/org/.+\\.\\(\\)$" required a dot at the end.
>
> #+BEGIN_QUOTE
> diff --git a/lisp/org-publish.el b/lisp/org-publish.el
> index b387e7b..a50cf56 100644
> --- a/lisp/org-publish.el
> +++ b/lisp/org-publish.el
> @@ -466,7 +466,7 @@ matching filenames."
> 	  ;; [[info:org:Selecting%20files]] shows how this is supposed to  
> work:
> 	  (let* ((r (plist-get (cdr prj) :recursive))
> 		 (b (expand-file-name (plist-get (cdr prj) :base-directory)))
> -		 (x (plist-get (cdr prj) :base-extension))
> +		 (x (or (plist-get (cdr prj) :base-extension) "org"))
> 		 (e (plist-get (cdr prj) :exclude))
> 		 (i (plist-get (cdr prj) :include))
> 		 (xm (concat "^" b (if r ".+" "[^/]+") "\\.\\(" x "\\)$")))
>
> #+END_QUOTE
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode

- Carsten

      parent reply	other threads:[~2010-07-06 10:58 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-05  8:14 [PATCH] default base-extension .org for org-publish Daniel Clemente
2010-07-06 10:57 ` Patchwork: Patch 112 Accepted Carsten Dominik
2010-07-06 10:58 ` Carsten Dominik [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=F3A53CCF-5C5C-457D-8F24-193ED5759CC6@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n142857@gmail.com \
    /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).