Browse Source

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>
Oleh Krehel 10 years ago
parent
commit
433b66f2c7
1 changed files with 2 additions and 1 deletions
  1. 2 1
      lisp/org-src.el

+ 2 - 1
lisp/org-src.el

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