emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [ANN] Export block syntax change


From: Kaushal Modi
Subject: Re: [O] [ANN] Export block syntax change
Date: Wed, 6 Jan 2016 11:04:25 -0500

Hi all,

I believe this change is breaking the ox-twbs package.

The error shown is:

Debugger entered--Lisp error: (error "Unknown keyword: :export-block")
  signal(error ("Unknown keyword: :export-block"))
  error("Unknown keyword: %s" :export-block)
  org-export-define-backend(twbs ((bold . org-twbs-bold) (center-block . org-twbs-center-block) (clock . org-twbs-clock) (code . org-twbs-code) (drawer . org-twbs-drawer) (dynamic-block . org-twbs-dynamic-block) (entity . org-twbs-entity) (example-block . org-twbs-example-block) (export-block . org-twbs-export-block) (export-snippet . org-twbs-export-snippet) (fixed-width . org-twbs-fixed-width) (footnote-definition . org-twbs-footnote-definition) (footnote-reference . org-twbs-footnote-reference) (headline . org-twbs-headline) (horizontal-rule . org-twbs-horizontal-rule) (inline-src-block . org-twbs-inline-src-block) (inlinetask . org-twbs-inlinetask) (inner-template . org-twbs-inner-template) (italic . org-twbs-italic) (item . org-twbs-item) (keyword . org-twbs-keyword) (latex-environment . org-twbs-latex-environment) (latex-fragment . org-twbs-latex-fragment) (line-break . org-twbs-line-break) (link . org-twbs-link) (paragraph . org-twbs-paragraph) (plain-list . org-twbs-plain-list) (plain-text . org-twbs-plain-text) (planning . org-twbs-planning) (property-drawer . org-twbs-property-drawer) (quote-block . org-twbs-quote-block) (quote-section . org-twbs-quote-section) (radio-target . org-twbs-radio-target) (section . org-twbs-section) (special-block . org-twbs-special-block) (src-block . org-twbs-src-block) (statistics-cookie . org-twbs-statistics-cookie) (strike-through . org-twbs-strike-through) (subscript . org-twbs-subscript) (superscript . org-twbs-superscript) (table . org-twbs-table) (table-cell . org-twbs-table-cell) (table-row . org-twbs-table-row) (target . org-twbs-target) (template . org-twbs-template) (timestamp . org-twbs-timestamp) (underline . org-twbs-underline) (verbatim . org-twbs-verbatim) (verse-block . org-twbs-verse-block)) :export-block "HTML" :filters-alist ((:filter-final-output . org-twbs-final-function)) :menu-entry (119 "Export to TWBS HTML" ((72 "As HTML buffer" org-twbs-export-as-html) (104 "As HTML file" org-twbs-export-to-html) (111 "As HTML file and open" (lambda (a s v b) (if a (org-twbs-export-to-html t s v b) (org-open-file (org-twbs-export-to-html nil s v b))))))) :options-alist ((:html-extension nil nil org-twbs-extension) (:html-link-org-as-html nil nil org-twbs-link-org-files-as-html) (:html-container "HTML_CONTAINER" nil org-twbs-container-element) (:html-link-use-abs-url nil "html-link-use-abs-url" org-twbs-link-use-abs-url) (:html-link-home "HTML_LINK_HOME" nil org-twbs-link-home) (:html-link-up "HTML_LINK_UP" nil org-twbs-link-up) (:html-mathjax "HTML_MATHJAX" nil "" space) (:html-postamble nil "html-postamble" org-twbs-postamble) (:html-preamble nil "html-preamble" org-twbs-preamble) (:html-head "HTML_HEAD" nil org-twbs-head newline) (:html-head-extra "HTML_HEAD_EXTRA" nil org-twbs-head-extra newline) (:html-head-include-default-style nil "html-style" org-twbs-head-include-default-style) (:html-head-include-scripts nil "html-scripts" org-twbs-head-include-scripts) (:html-table-attributes nil nil org-twbs-table-default-attributes) (:html-table-row-tags nil nil org-twbs-table-row-tags) (:html-inline-images nil nil org-twbs-inline-images) (:creator "CREATOR" nil org-twbs-creator-string) (:with-latex nil "tex" org-twbs-with-latex) (:with-toc nil nil 2) (:with-creator nil nil t) (:with-headline-numbers nil "whn" t) (:section-numbers nil nil t) (:latex-header "LATEX_HEADER" nil nil newline)))
  eval-buffer()  ; Reading at buffer position 5862


The error goes away after I comment out the line with :export-block keyword in the org-export-define-backend function call.

Example: https://github.com/marsmining/ox-twbs/blob/cfe67353d148e65a7676f1609d8cc22a4c8fbc78/ox-twbs.el#L108

What would be the proposed/correct fix for this?

Thanks.


--
Kaushal Modi

On Sat, Jan 2, 2016 at 9:40 AM, Suvayu Ali <address@hidden> wrote:
On Sat, Jan 02, 2016 at 11:54:42AM +0100, Nicolas Goaziou wrote:
> Hello,
>
> Suvayu Ali <address@hidden> writes:
>
>
> > On Sun, Dec 20, 2015 at 10:06:44PM +0100, Nicolas Goaziou wrote:
> >>
> >> I just finalized the syntax change for export blocks. As a reminder, the
> >> new syntax is:
> >>
> >>   #+BEGIN_EXPORT backend
> >>   ...
> >>   #+END_EXPORT
> >>
> >> instead of
> >>
> >>   #+BEGIN_backend
> >>   ...
> >>   #+END_backend
> >
> > This seems to not work for me.  The following block is completely
> > missing from the exported tex source.
> >
> >   #+begin_export latex
> >   \begin{equation}
> >     ct = (S.V. - P.V.) \times m/p.
> >   \end{equation}
> >   #+end_export
> >
>
> Fixed. Thank you.

Thanks!  It works now.

Cheers,

--
Suvayu

Open source is the future. It sets us free.



reply via email to

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