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

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