[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 18:55:18 +0200 |
Hello,
Matt Lundin <address@hidden> writes:
> Clearly, this is still very inadequate, but it is an improvement. I
> would love to use the built in site-map functions, but they are simply
> to slow for any larger projects.
>
> Could we do something like this to speed it up?
>
> (with-temp-buffer
> (insert-file-contents file)
> (goto-char (point-min))
> (when (re-search-forward "^#\\+TITLE:" nil t)
> (org-element-at-point)))
No, you also need to parse #+SETUPFILE: keywords. You could also get
false positive within a verbatim block:
#+begin_example
#+title: something
#+end_example
However, it is possible to write a specialized function to extract
only #+TITLE.
Another option is to cache results. See `org-publish-cache-set' and
`org-publish-cache-get'.
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, 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, 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, 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 <=
- 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, 2014/07/30