From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: C-c C-c in src block interpret line as table Date: Fri, 26 Oct 2018 10:29:19 +0100 Message-ID: <874ld9jbtc.fsf@gmail.com> References: <87in1pgq9d.fsf@portable.galex-713.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFyR5-0005AD-6m for emacs-orgmode@gnu.org; Fri, 26 Oct 2018 05:29:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFyQv-00022h-LS for emacs-orgmode@gnu.org; Fri, 26 Oct 2018 05:29:40 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]:36633) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gFyQn-0001wb-NF for emacs-orgmode@gnu.org; Fri, 26 Oct 2018 05:29:25 -0400 Received: by mail-wm1-x32b.google.com with SMTP id a8-v6so763972wmf.1 for ; Fri, 26 Oct 2018 02:29:21 -0700 (PDT) In-Reply-To: <87in1pgq9d.fsf@portable.galex-713.eu> (Alexandre Garreau's message of "Fri, 26 Oct 2018 08:45:34 +0200") 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" To: "Garreau, Alexandre" Cc: emacs-org list 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 =E2=80=9C|=E2=80=9D, it was interpr= eted 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=E2=80=99s not even inside a > comment! > > #+BEGIN_SRC ocaml :results verbatim > let rec premiers =3D=20 > 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. --=20 Eric S Fraga via Emacs 27.0.50, Org release_9.1.11-620-ga548e4