From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [PATCH] org-src: allow `org-babel-edit-prep:.*' to mark region Date: Sat, 29 Nov 2014 15:15:37 +0100 Message-ID: <871tomnldi.fsf@nicolasgoaziou.fr> References: <8761dynnca.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51715) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuinW-0006Lh-H9 for emacs-orgmode@gnu.org; Sat, 29 Nov 2014 09:15:04 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XuinM-0003EG-Cr for emacs-orgmode@gnu.org; Sat, 29 Nov 2014 09:14:54 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:35851) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XuinM-0003E4-6F for emacs-orgmode@gnu.org; Sat, 29 Nov 2014 09:14:44 -0500 In-Reply-To: (Oleh's message of "Sat, 29 Nov 2014 14:47:01 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Oleh Cc: org mode >> 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. That still doesn't explain why you need it. > I've defined a custom `org-babel-edit-prep:elisp' that does this, but > it's not allowed to mark region in this function. Why? > 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. Your markup is very personal. I still don't see the need to turn it into a general mechanism. Isn't an advice enough? Regards,