emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Eric S Fraga <esflists@gmail.com>
To: "Garreau, Alexandre" <galex-713@galex-713.eu>
Cc: emacs-org list <emacs-orgmode@gnu.org>
Subject: Re: C-c C-c in src block interpret line as table
Date: Fri, 26 Oct 2018 10:29:19 +0100	[thread overview]
Message-ID: <874ld9jbtc.fsf@gmail.com> (raw)
In-Reply-To: <87in1pgq9d.fsf@portable.galex-713.eu> (Alexandre Garreau's message of "Fri, 26 Oct 2018 08:45:34 +0200")

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

  reply	other threads:[~2018-10-26  9:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-26  6:45 C-c C-c in src block interpret line as table Garreau, Alexandre
2018-10-26  9:29 ` Eric S Fraga [this message]
2018-10-26 10:02   ` Garreau, Alexandre
2018-10-26  9:34 ` Nicolas Goaziou
2018-10-26  9:58   ` Garreau, Alexandre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874ld9jbtc.fsf@gmail.com \
    --to=esflists@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=galex-713@galex-713.eu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).