emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Cannot export bash src: more details
@ 2016-02-23 10:54 Giuseppe Lipari
  2016-02-24 16:57 ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Giuseppe Lipari @ 2016-02-23 10:54 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

Hello,

regarding my previous message: I discovered that, by removing indentation,
the export works fine.

More specifically, the following snippet produces the error:

%--------- snippet ----------%
** CGI - producing output
   - Example in shell script:
     #+BEGIN_SRC bash
       echo "content-type: text/html"
       echo
       echo "<!doctype html publi\"-//w3c/dtd html 3.2 final/en\">"
       echo "<html>"
       echo "<body>"
       echo "it is <b>"`date`"</b>"
       echo "</body>"
       echo "</html>"
     #+END_SRC
%--------- snippet ----------%

%--------- Error ----------%
[...]
org-babel-exp process emacs-lisp at line 16...
org-babel-exp process html at line 114...
org-babel-exp process html at line 164...
org-babel-exp process bash at line 270...
byte-code: Invalid search bound (wrong side of point)
%--------- Error ----------%

The following snippet *does not* produce the error

%--------- snippet ----------%
** CGI - producing output
   - Example in shell script:
   #+BEGIN_SRC bash
     echo "content-type: text/html"
     echo
     echo "<!doctype html publi\"-//w3c/dtd html 3.2 final/en\">"
     echo "<html>"
     echo "<body>"
     echo "it is <b>"`date`"</b>"
     echo "</body>"
     echo "</html>"
   #+END_SRC
%--------- snippet ----------%

I cannot easily reproduce this behaviour outside of my complex file. I
tried on a simplified version containing only the snippet, and there
indentation makes no difference.

Unfortunately, I do not have time now to continue my investigation (I have
to prepare my slides for tomorrow), however I am available to provide more
information if necessary.

Org-mode version 8.3.4 (release_8.3.4-588-g924431 @
/home/lipari/elisp/org-mode/lisp/)

Best regards,

Giuseppe Lipari

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cannot export bash src: more details
  2016-02-23 10:54 Cannot export bash src: more details Giuseppe Lipari
@ 2016-02-24 16:57 ` Eric S Fraga
  2016-02-24 20:53   ` Giuseppe Lipari
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2016-02-24 16:57 UTC (permalink / raw)
  To: Giuseppe Lipari; +Cc: emacs-orgmode@gnu.org

On Tuesday, 23 Feb 2016 at 10:54, Giuseppe Lipari wrote:

[...]

> byte-code: Invalid search bound (wrong side of point)

I have also run into this problem lately (well, early last week or the
week before that) with src blocks that work just fine if moved to
another place.  Drove me crazy trying to debug this and got nowhere
other than I found that adding some text before and/or after the src
block made things work.

Like you, coming up with an ECM has proven impossible.  My case was also
a complex file.

Sorry that I cannot help directly but just wanted you to know that there
is a problem somewhere in current org...
-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cannot export bash src: more details
  2016-02-24 16:57 ` Eric S Fraga
@ 2016-02-24 20:53   ` Giuseppe Lipari
  2016-02-25  9:09     ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Giuseppe Lipari @ 2016-02-24 20:53 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

Hello,

thank you, although for the moment it does not help.

Unfortunately I have *a lot* of old slides that I am correcting and
regenerating step by step.
They used to compile just fine with the previous version, and now this
strange problem make me lose a lot of time just for changing indentation...
Maybe I should just revert to the old version of org.

I will tell you if I find a somehow smaller example.

Giuseppe Lipari



Le mer. 24 févr. 2016 à 18:30, Eric S Fraga <e.fraga@ucl.ac.uk> a écrit :

> On Tuesday, 23 Feb 2016 at 10:54, Giuseppe Lipari wrote:
>
> [...]
>
> > byte-code: Invalid search bound (wrong side of point)
>
> I have also run into this problem lately (well, early last week or the
> week before that) with src blocks that work just fine if moved to
> another place.  Drove me crazy trying to debug this and got nowhere
> other than I found that adding some text before and/or after the src
> block made things work.
>
> Like you, coming up with an ECM has proven impossible.  My case was also
> a complex file.
>
> Sorry that I cannot help directly but just wanted you to know that there
> is a problem somewhere in current org...
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.90.1, Org release_8.3.3-535-g7213aa
>

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cannot export bash src: more details
  2016-02-24 20:53   ` Giuseppe Lipari
@ 2016-02-25  9:09     ` Nicolas Goaziou
  2016-02-25 14:04       ` Nicolas Goaziou
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2016-02-25  9:09 UTC (permalink / raw)
  To: Giuseppe Lipari; +Cc: emacs-orgmode@gnu.org

Hello,

Giuseppe Lipari <giulipari@gmail.com> writes:

> Unfortunately I have *a lot* of old slides that I am correcting and
> regenerating step by step.
> They used to compile just fine with the previous version, and now this
> strange problem make me lose a lot of time just for changing indentation...
> Maybe I should just revert to the old version of org.
>
> I will tell you if I find a somehow smaller example.

An ECM would be great. However, some backtrace using un-compiled Org
would help, too.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cannot export bash src: more details
  2016-02-25  9:09     ` Nicolas Goaziou
@ 2016-02-25 14:04       ` Nicolas Goaziou
  2016-02-25 18:09         ` Eric S Fraga
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Goaziou @ 2016-02-25 14:04 UTC (permalink / raw)
  To: Giuseppe Lipari; +Cc: emacs-orgmode@gnu.org

Completing myself,

> An ECM would be great. However, some backtrace using un-compiled Org
> would help, too.

Actually, the issue should now be fixed.

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cannot export bash src: more details
  2016-02-25 14:04       ` Nicolas Goaziou
@ 2016-02-25 18:09         ` Eric S Fraga
  2016-02-25 22:32           ` Giuseppe Lipari
  0 siblings, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2016-02-25 18:09 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

On Thursday, 25 Feb 2016 at 15:04, Nicolas Goaziou wrote:
> Completing myself,
>
>> An ECM would be great. However, some backtrace using un-compiled Org
>> would help, too.
>
> Actually, the issue should now be fixed.

Thanks!  I'm sorry we couldn't provide you with an ECM but very happy
you were able to track this down regardless.

-- 
: Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-619-gca1fb8

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Cannot export bash src: more details
  2016-02-25 18:09         ` Eric S Fraga
@ 2016-02-25 22:32           ` Giuseppe Lipari
  0 siblings, 0 replies; 7+ messages in thread
From: Giuseppe Lipari @ 2016-02-25 22:32 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

Great news, thanks a lot!

Giuseppe

Le jeu. 25 févr. 2016 à 19:10, Eric S Fraga <e.fraga@ucl.ac.uk> a écrit :

> On Thursday, 25 Feb 2016 at 15:04, Nicolas Goaziou wrote:
> > Completing myself,
> >
> >> An ECM would be great. However, some backtrace using un-compiled Org
> >> would help, too.
> >
> > Actually, the issue should now be fixed.
>
> Thanks!  I'm sorry we couldn't provide you with an ECM but very happy
> you were able to track this down regardless.
>
> --
> : Eric S Fraga (0xFFFCF67D), Emacs 25.0.91.1, Org release_8.3.3-619-gca1fb8
>
>

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2016-02-25 22:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-23 10:54 Cannot export bash src: more details Giuseppe Lipari
2016-02-24 16:57 ` Eric S Fraga
2016-02-24 20:53   ` Giuseppe Lipari
2016-02-25  9:09     ` Nicolas Goaziou
2016-02-25 14:04       ` Nicolas Goaziou
2016-02-25 18:09         ` Eric S Fraga
2016-02-25 22:32           ` Giuseppe Lipari

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).