emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Thorsten Jolitz <tjolitz@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [RFC] Add commmand for wrapping sexp/region in src-blocks to Org?
Date: Sat, 02 Aug 2014 11:25:09 +0200	[thread overview]
Message-ID: <87ha1v8cqy.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87k36wqirh.fsf@gmail.com> (Thorsten Jolitz's message of "Tue, 29 Jul 2014 17:36:34 +0200")


Thorsten Jolitz <tjolitz@gmail.com> writes:

> I often missed the following command for wrapping existing content into
> src-blocks in the past, besides knowing about
> `org-babel-demarcate-block' and easy template insertion. Would it make
> sense to add it to Org-mode?
> I made it cover several use cases:


>   - Wrap region between point and +/- N lines forward/backward (very
>     fast because no point movement is involved).

This is not really useful as, with muscle memory, you'll probably mark
the appropriate region instead of counting lines. Also it requires the
point to be at the center of the area you want to wrap.

>   - Wrap active region.

Why limiting it to source blocks? One may want to wrap region with,
e.g., a quote block.

Also, with a prefix argument, it would be nice to edit the block
containing point (change its type), or remove it completely.


Nicolas Goaziou

  parent reply	other threads:[~2014-08-02  9:24 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-29 15:36 [RFC] Add commmand for wrapping sexp/region in src-blocks to Org? Thorsten Jolitz
2014-07-30  9:23 ` Alan Schmitt
2014-08-02  8:44 ` Xebar Saram
2014-08-05 13:15   ` Thorsten Jolitz
2014-08-06 11:43     ` Xebar Saram
2014-08-06 12:14       ` Thorsten Jolitz
2014-08-06 12:25         ` Xebar Saram
2014-08-02  9:25 ` Nicolas Goaziou [this message]
2014-08-05 13:19   ` Thorsten Jolitz

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:

  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=87ha1v8cqy.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=tjolitz@gmail.com \


* 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


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).