From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giuseppe Lipari Subject: Cannot export bash src: more details Date: Tue, 23 Feb 2016 10:54:18 +0000 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7bfd0926ff49a5052c6dc5b4 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYAbu-0001kf-JH for emacs-orgmode@gnu.org; Tue, 23 Feb 2016 05:54:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYAbt-0001xH-EN for emacs-orgmode@gnu.org; Tue, 23 Feb 2016 05:54:30 -0500 Received: from mail-wm0-x236.google.com ([2a00:1450:400c:c09::236]:35902) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYAbt-0001wu-4f for emacs-orgmode@gnu.org; Tue, 23 Feb 2016 05:54:29 -0500 Received: by mail-wm0-x236.google.com with SMTP id g62so215659036wme.1 for ; Tue, 23 Feb 2016 02:54:28 -0800 (PST) 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-orgmode@gnu.org" --047d7bfd0926ff49a5052c6dc5b4 Content-Type: text/plain; charset=UTF-8 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 "" echo "" echo "" echo "it is "`date`"" echo "" echo "" #+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 "" echo "" echo "" echo "it is "`date`"" echo "" echo "" #+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 --047d7bfd0926ff49a5052c6dc5b4 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

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

More specifically, the following snippet produces the error:<= br>
%--------- snippet ----------%
** CGI - producing output
=C2= =A0=C2=A0 - Example in shell script:
=C2=A0=C2=A0=C2=A0=C2=A0 #+BEGIN_S= RC bash
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo "content-type: t= ext/html"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 echo
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 echo "<!doctype html publi\"-//w3c= /dtd html 3.2 final/en\">"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 echo "<html>"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0 echo "<body>"
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = echo "it is <b>"`date`"</b>"
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 echo "</body>"
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 echo "</html>"
=C2=A0=C2=A0=C2= =A0=C2=A0 #+END_SRC
%--------- snippet ----------%

%= --------- Error ----------%
[...]
org-babel-exp process emacs-lisp a= t 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)
%--------- Err= or ----------%

The following snippet *does not* produce the e= rror

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

I cannot easily reproduce this behavio= ur outside of my complex file. I tried on a simplified version containing o= nly the snippet, and there indentation makes no difference.

<= div>Unfortunately, I do not have time now to continue my investigation (I h= ave to prepare my slides for tomorrow), however I am available to provide m= ore information if necessary.

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

=
Best regards,

Giuseppe Lipari
--047d7bfd0926ff49a5052c6dc5b4--