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 12:02:48 +0200 [thread overview]
Message-ID: <8736stf2k7.fsf@portable.galex-713.eu> (raw)
In-Reply-To: <874ld9jbtc.fsf@gmail.com> (Eric S. Fraga's message of "Fri, 26 Oct 2018 10:29:19 +0100")
On 2018/10/26 at 10:29, Eric S Fraga wrote:
> 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.
I was doing from org-mode: I find want to see rest of the buffer while
writing (that’s why I’m using org-mode instead of just writing in a
plain file), and to have to type that keystrokes, again and again. And
anyway there’s org-src-tab-acts-natively for that (though it’s often
unperfect but I’m not complaining until I had the time to figure out
why).
next prev parent reply other threads:[~2018-10-26 10:03 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 [this message]
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=8736stf2k7.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).