emacs-orgmode
[Top][All Lists]
Advanced

[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



reply via email to

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