>> 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,