emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Garreau\, Alexandre" <galex-713@galex-713.eu>
To: 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 11:58:57 +0200	[thread overview]
Message-ID: <877ei5f2qm.fsf@portable.galex-713.eu> (raw)
In-Reply-To: <87va5pf3w3.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Fri, 26 Oct 2018 11:34:04 +0200")

On 2018/10/26 at 11:34, Nicolas Goaziou wrote:
> "Garreau, Alexandre" <galex-713@galex-713.eu> writes:
>
>> 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
>>
>> Note the remaining “|” at the end of the last line was added by org, not
>> me, not part of source code.
>
> I cannot reproduce it.

Never mind! orgtbl-mode was activated in org-mode, since org-mode is
based on text-mode and I was wanting it for all text-mode-based modes.
It seems to, in fact, not to very be integrated with org-mode, otherwise
it should have behaved like normal org tables (that is, not inside
source blocks).

Sorry for wasted time ^^'

      reply	other threads:[~2018-10-26  9:59 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
2018-10-26 10:02   ` Garreau, Alexandre
2018-10-26  9:34 ` Nicolas Goaziou
2018-10-26  9:58   ` Garreau, Alexandre [this message]

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=877ei5f2qm.fsf@portable.galex-713.eu \
    --to=galex-713@galex-713.eu \
    --cc=emacs-orgmode@gnu.org \
    /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).