emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: Leo <leo@relevant-information.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: S-RET
Date: Mon, 16 Nov 2020 11:49:53 +0200	[thread overview]
Message-ID: <87h7ppeim6.fsf@mail.linkov.net> (raw)
In-Reply-To: <87eekt7l4l.fsf@leo-B85-HD3.i-did-not-set--mail-host-address--so-tickle-me> (leo@relevant-information.com's message of "Mon, 16 Nov 2020 09:37:30 +0100")

>> What I miss in Org Babel is an equivalent of 'S-RET' that in Jupyter
>> creates a new code block relative to the current code block.
>
> 'C-c C-v C-d' (org-babel-demarcate-block) splits current code block into
> two with the same settings. It might be what you want. Just bind it to
> something easier to access maybe :P

Thanks, I tried 'C-c C-v C-d', but it's not exactly what is needed,
just an approximation.

When #+RESULTS: already exists after the #+END_SRC line,
'C-c C-v C-d' doesn't add a new #+BEGIN_SRC after #+RESULTS:,
it adds before it (however, this could be mitigated by evaluating
both blocks after splitting.)


      reply	other threads:[~2020-11-16  9:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-14 20:15 S-RET Juri Linkov
2020-11-14 22:27 ` S-RET John Kitchin
2020-11-15  9:31   ` S-RET Juri Linkov
2020-11-16 18:37     ` S-RET John Kitchin
2020-11-16  8:37 ` S-RET Leo
2020-11-16  9:49   ` Juri Linkov [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=87h7ppeim6.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=leo@relevant-information.com \
    /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).