emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Kaushal Modi <kaushal.modi@gmail.com>
To: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: [ANN] Export block syntax change
Date: Wed, 6 Jan 2016 11:04:25 -0500	[thread overview]
Message-ID: <CAFyQvY2pO2CD++dtvaYPv+ajwzpx3SJYxOzqJ6Y86E=EveWqPA@mail.gmail.com> (raw)
In-Reply-To: <20160102144014.GD9169@chitra.no-ip.org>

[-- Attachment #1: Type: text/plain, Size: 4994 bytes --]

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 <fatkasuvayu+linux@gmail.com>
wrote:

> On Sat, Jan 02, 2016 at 11:54:42AM +0100, Nicolas Goaziou wrote:
> > Hello,
> >
> > Suvayu Ali <fatkasuvayu+linux@gmail.com> 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.
>
>

[-- Attachment #2: Type: text/html, Size: 6464 bytes --]

  reply	other threads:[~2016-01-06 16:05 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-20 21:06 [ANN] Export block syntax change Nicolas Goaziou
2015-12-20 23:02 ` Rasmus
2015-12-21  8:21   ` Nicolas Goaziou
2015-12-21 11:09 ` Ken Mankoff
2015-12-21 12:40   ` Nicolas Goaziou
2016-01-02  7:54 ` Suvayu Ali
2016-01-02  8:18   ` John Hendy
2016-01-02 10:54   ` Nicolas Goaziou
2016-01-02 14:40     ` Suvayu Ali
2016-01-06 16:04       ` Kaushal Modi [this message]
2016-01-06 18:06         ` Nicolas Goaziou
2016-01-06 19:57           ` Kaushal Modi
2016-01-06 21:52             ` Nicolas Goaziou
2016-01-06 22:26               ` Kaushal Modi
2016-01-11  3:56                 ` Kaushal Modi
2016-01-11  9:20                   ` Nicolas Goaziou

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='CAFyQvY2pO2CD++dtvaYPv+ajwzpx3SJYxOzqJ6Y86E=EveWqPA@mail.gmail.com' \
    --to=kaushal.modi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).