From: Oleh <ohwoeowho@gmail.com>
To: Oleh <ohwoeowho@gmail.com>, org mode <emacs-orgmode@gnu.org>
Subject: Re: [PATCH] org-src: allow `org-babel-edit-prep:.*' to mark region
Date: Sat, 29 Nov 2014 14:47:01 +0100 [thread overview]
Message-ID: <CAA01p3pkLxxOpNfeLxUUzWAffz56bhq8wPrKo09CYO_wtzeT6A@mail.gmail.com> (raw)
In-Reply-To: <8761dynnca.fsf@nicolasgoaziou.fr>
Hi Nicolas,
> I don't understand what your use-case is. Note that `org-edit-special'
> already preserves region.
That's good, but not what I need. I want to go from an unmarked region
in an org file with markup
to a marked region without markup in the *Org Src* buffer.
I've defined a custom `org-babel-edit-prep:elisp' that does this, but
it's not allowed to mark region in this function. A patch to
`org-edit-src-code' is required for this.
Just to sum it up: I want a custom `org-babel-edit-prep:elisp' to be
able to mark region, even if it wasn't marked before.
regards,
Oleh
next prev parent reply other threads:[~2014-11-29 13:47 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-29 12:43 [PATCH] org-src: allow `org-babel-edit-prep:.*' to mark region Oleh
2014-11-29 13:33 ` Nicolas Goaziou
2014-11-29 13:47 ` Oleh [this message]
2014-11-29 14:15 ` Nicolas Goaziou
2014-11-29 14:34 ` Oleh
2014-12-07 23:37 ` Nicolas Goaziou
2014-12-09 11:03 ` Oleh
2014-12-09 16:12 ` Nicolas Goaziou
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=CAA01p3pkLxxOpNfeLxUUzWAffz56bhq8wPrKo09CYO_wtzeT6A@mail.gmail.com \
--to=ohwoeowho@gmail.com \
--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).