org-src: allow `org-babel-edit-prep:.*' to mark region

* lisp/org-src.el (org-edit-src-code): Let `deactivate-mark' nil.

<http://permalink.gmane.org/gmane.emacs.orgmode/93053>
This commit is contained in:
Oleh Krehel 2014-12-09 17:26:02 +01:00
parent 5d25e6e68e
commit 433b66f2c7
1 changed files with 2 additions and 1 deletions

View File

@ -710,7 +710,8 @@ name of the sub-editing buffer."
"example"))
(lang-f (and (eq type 'src-block) (org-src--get-lang-mode lang)))
(babel-info (and (eq type 'src-block)
(org-babel-get-src-block-info 'light))))
(org-babel-get-src-block-info 'light)))
deactivate-mark)
(when (and (eq type 'src-block) (not (functionp lang-f)))
(error "No such language mode: %s" lang-f))
(org-src--edit-element