[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish |
Date: |
Wed, 30 Jul 2014 22:59:31 +0200 |
Matt Lundin <address@hidden> writes:
> Thanks for the helpful information. I think the cache would be a nice
> way to go, especially if it were combined a timestamp check. E.g., only
> files that have been updated since the last publishing should be queried
> for titles; otherwise, use the cached file.
Unfortunately, in the following (unexpected) setup
== a.org ==
#+SETUPFILE: b.org
== b.org ==
#+TITLE: Something
modifying "b.org" changes title for "a.org", even though the latter is
not modified. A dag would be needed to handle this case.
The same goes for #+INCLUDE keywords.
Overkill, IMO.
> I notice that org-publish-find-title does cache the title, but AFAICT
> this is never used, since org-publish-format-file-entry calls
> org-publish-find-title with the reset argument. Perhaps we could add a
> variable to make this optional in org-publish-format-file-entry. E.g.,
>
> (defun org-publish-format-file-entry (fmt file project-plist)
> (format-spec
> fmt
> `((?t . ,(org-publish-find-title file org-publish-find-title-use-cache))
> [...]
>
> A similar option could be added to the date function date function.
>
> Would it be O.K. if I went ahead and implemented this?
Fine by me. I suggest to mention previous caveat in the docstring.
Regards,
--
Nicolas Goaziou
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, (continued)
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Matt Lundin, 2014/07/29
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Bastien, 2014/07/29
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Matt Lundin, 2014/07/29
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Matt Lundin, 2014/07/29
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Bastien, 2014/07/29
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Nicolas Goaziou, 2014/07/30
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish, Matt Lundin, 2014/07/30
- Re: [O] [PATCH] Remove unecesssary invocations of org-mode in ox-publish,
Nicolas Goaziou <=