From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kaushal Modi Subject: Re: [ANN] Export block syntax change Date: Wed, 6 Jan 2016 11:04:25 -0500 Message-ID: References: <87vb7sakyj.fsf@nicolasgoaziou.fr> <20160102075405.GC9169@chitra.no-ip.org> <87r3i0jlot.fsf@nicolasgoaziou.fr> <20160102144014.GD9169@chitra.no-ip.org> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=089e016348a8744fde0528ac84c8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54932) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGqaD-0004iq-9T for emacs-orgmode@gnu.org; Wed, 06 Jan 2016 11:05:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aGqaB-00035S-EV for emacs-orgmode@gnu.org; Wed, 06 Jan 2016 11:05:09 -0500 Received: from mail-ob0-x235.google.com ([2607:f8b0:4003:c01::235]:36271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aGqaB-00034B-5Z for emacs-orgmode@gnu.org; Wed, 06 Jan 2016 11:05:07 -0500 Received: by mail-ob0-x235.google.com with SMTP id ba1so302837461obb.3 for ; Wed, 06 Jan 2016 08:05:05 -0800 (PST) In-Reply-To: <20160102144014.GD9169@chitra.no-ip.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-org list --089e016348a8744fde0528ac84c8 Content-Type: text/plain; charset=UTF-8 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 wrote: > On Sat, Jan 02, 2016 at 11:54:42AM +0100, Nicolas Goaziou wrote: > > Hello, > > > > Suvayu Ali 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. > > --089e016348a8744fde0528ac84c8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all,

I believe this change is breaki= ng the ox-twbs package.

The error shown is:
<= div>
Debugger entered--Lisp error: (error "Unknown = keyword: :export-block")
=C2=A0 signal(error ("Unknown = keyword: :export-block"))
=C2=A0 error("Unknown keyword= : %s" :export-block)
=C2=A0 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-bloc= k . 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-f= ootnote-reference) (headline . org-twbs-headline) (horizontal-rule . org-tw= bs-horizontal-rule) (inline-src-block . org-twbs-inline-src-block) (inlinet= ask . org-twbs-inlinetask) (inner-template . org-twbs-inner-template) (ital= ic . 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-t= ext . org-twbs-plain-text) (planning . org-twbs-planning) (property-drawer = . org-twbs-property-drawer) (quote-block . org-twbs-quote-block) (quote-sec= tion . org-twbs-quote-section) (radio-target . org-twbs-radio-target) (sect= ion . org-twbs-section) (special-block . org-twbs-special-block) (src-block= . org-twbs-src-block) (statistics-cookie . org-twbs-statistics-cookie) (st= rike-through . org-twbs-strike-through) (subscript . org-twbs-subscript) (s= uperscript . org-twbs-superscript) (table . org-twbs-table) (table-cell . o= rg-twbs-table-cell) (table-row . org-twbs-table-row) (target . org-twbs-tar= get) (template . org-twbs-template) (timestamp . org-twbs-timestamp) (under= line . org-twbs-underline) (verbatim . org-twbs-verbatim) (verse-block . or= g-twbs-verse-block)) :export-block "HTML" :filters-alist ((:filte= r-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 fi= le 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&quo= t; nil org-twbs-container-element) (:html-link-use-abs-url nil "html-l= ink-use-abs-url" org-twbs-link-use-abs-url) (:html-link-home "HTM= L_LINK_HOME" nil org-twbs-link-home) (:html-link-up "HTML_LINK_UP= " nil org-twbs-link-up) (:html-mathjax "HTML_MATHJAX" nil &q= uot;" 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-e= xtra "HTML_HEAD_EXTRA" nil org-twbs-head-extra newline) (:html-he= ad-include-default-style nil "html-style" org-twbs-head-include-d= efault-style) (:html-head-include-scripts nil "html-scripts" org-= twbs-head-include-scripts) (:html-table-attributes nil nil org-twbs-table-d= efault-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-tw= bs-with-latex) (:with-toc nil nil 2) (:with-creator nil nil t) (:with-headl= ine-numbers nil "whn" t) (:section-numbers nil nil t) (:latex-hea= der "LATEX_HEADER" nil nil newline)))
=C2=A0 eval-buffe= r() =C2=A0; Reading at buffer position 5862

=
The error goes away after I comment out the line with :expor= t-block keyword in the org-export-define-backend function call.
<= br>

What would be the proposed/corre= ct fix for this?

Thanks.


--
Kaushal Modi

On Sat, Jan 2, 2016 at 9:40 AM, Suvayu Ali <= span dir=3D"ltr"><fatkasuvayu+linux@gmail.com> wrote:
On Sat, Jan 02, 2016 at 11:54:42AM +0= 100, Nicolas Goaziou wrote:
> Hello,
>
> Suvayu Ali <fatkas= uvayu+linux@gmail.com> writes:
>
>
> > On Sun, Dec 20, 2015 at 10:06:44PM +0100, Nicolas Goaziou wrote:<= br> > >>
> >> I just finalized the syntax change for export blocks. As a re= minder, the
> >> new syntax is:
> >>
> >>=C2=A0 =C2=A0#+BEGIN_EXPORT backend
> >>=C2=A0 =C2=A0...
> >>=C2=A0 =C2=A0#+END_EXPORT
> >>
> >> instead of
> >>
> >>=C2=A0 =C2=A0#+BEGIN_backend
> >>=C2=A0 =C2=A0...
> >>=C2=A0 =C2=A0#+END_backend
> >
> > This seems to not work for me.=C2=A0 The following block is compl= etely
> > missing from the exported tex source.
> >
> >=C2=A0 =C2=A0#+begin_export latex
> >=C2=A0 =C2=A0\begin{equation}
> >=C2=A0 =C2=A0 =C2=A0ct =3D (S.V. - P.V.) \times m/p.
> >=C2=A0 =C2=A0\end{equation}
> >=C2=A0 =C2=A0#+end_export
> >
>
> Fixed. Thank you.

Thanks!=C2=A0 It works now.

Cheers,

--
Suvayu

Open source is the future. It sets us free.


--089e016348a8744fde0528ac84c8--