[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] C-c C-c in src block interpret line as table
From: |
Eric S Fraga |
Subject: |
Re: [O] C-c C-c in src block interpret line as table |
Date: |
Fri, 26 Oct 2018 10:29:19 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
On Friday, 26 Oct 2018 at 08:45, Garreau, Alexandre wrote:
> I tried to eval the following block, and my point was on the last line,
> of course, but since it begins with a “|”, it was interpreted as a
> table, and block was not evaled: I believe this is a bug. Why would a
> org table be inside a non-org source block? it’s not even inside a
> comment!
>
> #+BEGIN_SRC ocaml :results verbatim
> let rec premiers =
> function [] -> []
> | (a,b) :: q -> a :: premiers q ;; |
> #+END_SRC
This may be a bug but how were you editing this code? From org mode or
by editing the src block using C-c ' (org-edit-special)? Code blocks
should generally be edited using the special edit mode which knows about
the language.
--
Eric S Fraga via Emacs 27.0.50, Org release_9.1.11-620-ga548e4